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,10 +1,10 @@
# micro-utils
[Compile]
cc builder.c -obuilder
./buulder
[Compile]
cc builder.c -obuilder
./builder
[or]
sh build.sh
[or]
sh build.sh
[Config]
edit config.h
[Config]
edit config.h

5
TODO
View File

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

View File

@ -59,14 +59,8 @@ int main(const int argc, const char **argv) {
else if (!strcmp(argv[i], "-z"))
z_flag = 1;
else if (!strncmp(argv[i], "-n=", 3)) {
char *val = strchr(argv[i], '=');
if (!val)
break;
val[0] = '\0';
n_loops = atoi(val + 1);
}
else if (!strncmp(argv[i], "-n=", 3)
n_loops = atoi(argv[i] + 3);
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");