This commit is contained in:
Your Name 2023-11-04 22:19:51 +03:00
parent e82070ed99
commit e7a813d834
3 changed files with 9 additions and 20 deletions

View File

@ -1,7 +1,7 @@
# micro-utils # micro-utils
[Compile] [Compile]
cc builder.c -obuilder cc builder.c -obuilder
./buulder ./builder
[or] [or]
sh build.sh sh build.sh

5
TODO
View File

@ -53,11 +53,6 @@ Loginutils:
delgroup delgroup
getty getty
Console-tools:
loadkmap
openvt
chvt
Miscutils: Miscutils:
time time

View File

@ -59,14 +59,8 @@ int main(const int argc, const char **argv) {
else if (!strcmp(argv[i], "-z")) else if (!strcmp(argv[i], "-z"))
z_flag = 1; z_flag = 1;
else if (!strncmp(argv[i], "-n=", 3)) { else if (!strncmp(argv[i], "-n=", 3)
char *val = strchr(argv[i], '='); n_loops = atoi(argv[i] + 3);
if (!val)
break;
val[0] = '\0';
n_loops = atoi(val + 1);
}
else if (!strcmp(argv[i], "--help")) { else if (!strcmp(argv[i], "--help")) {
printf("shred [-n=N Overwrite N times (default 3)] [-z Final overwrite with zeros] [-u Remove file] [-f Chmod to ensure writability] [file file2...]\n"); printf("shred [-n=N Overwrite N times (default 3)] [-z Final overwrite with zeros] [-u Remove file] [-f Chmod to ensure writability] [file file2...]\n");