fixed
This commit is contained in:
parent
e82070ed99
commit
e7a813d834
14
README.md
14
README.md
@ -1,10 +1,10 @@
|
|||||||
# micro-utils
|
# micro-utils
|
||||||
[Compile]
|
[Compile]
|
||||||
cc builder.c -obuilder
|
cc builder.c -obuilder
|
||||||
./buulder
|
./builder
|
||||||
|
|
||||||
[or]
|
[or]
|
||||||
sh build.sh
|
sh build.sh
|
||||||
|
|
||||||
[Config]
|
[Config]
|
||||||
edit config.h
|
edit config.h
|
||||||
|
5
TODO
5
TODO
@ -53,11 +53,6 @@ Loginutils:
|
|||||||
delgroup
|
delgroup
|
||||||
getty
|
getty
|
||||||
|
|
||||||
Console-tools:
|
|
||||||
loadkmap
|
|
||||||
openvt
|
|
||||||
chvt
|
|
||||||
|
|
||||||
Miscutils:
|
Miscutils:
|
||||||
time
|
time
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user