99,759 reputation
12117248
bio website
location European Union
age
visits member for 2 years, 5 months
seen 6 hours ago

Dec
16
comment Where to download binaries of coreutils?
file is not part of GNU coreutils
Dec
16
revised Security Implications of using unsanitized data in Shell Arithmetic evaluation
added 23 characters in body
Dec
16
comment How was the Shellshock Bash vulnerability found?
If it gets reopen and you ping me, I'll try and answer it. However, I'm not sure it has a lot of value now. A lot of people wondered about it at the time of the disclosure, but I'd doubt many do now or would in a few months time.
Dec
16
revised Prevent application to tamper with terminal settings?
added 189 characters in body
Dec
16
answered Prevent application to tamper with terminal settings?
Dec
16
answered Using `find`, how can I get `rm` to print a fuller path name than it does when executed through `-execdir`?
Dec
15
comment Find and create empty files with the same name in another location
Note that's GNU only. It doesn't preserve attributes unless you tell it which ones to preserve with -p or -a. You might as well use -exec cp --attributes-only -t dummy/ {} + here to avoid running one cp per file.
Dec
15
revised Security implications of forgetting to quote a variable in bash/POSIX shells
added 3 characters in body
Dec
15
revised Why is using a shell loop to process text considered bad practice?
typos
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
@John, then I don't know. AFAIK, there's no limit on ext4 on the number of entries in a directory (or it's very high). It would make sense to ask a separate question for your "no space left" issue. Can you not create directories at all now, or only in specific directories?
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
What FS type (df -T /)?
Dec
15
revised What is the fastest way to create a list of directories specified in a file?
added 372 characters in body
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
@John, xargs runs as many instances of the command as needed so as to avoid the limit on the maximum number of arguments. So it will probably invoke many mkdir commands each one of them passed a few thousand of directories to create.
Dec
15
revised What is the fastest way to create a list of directories specified in a file?
added 8 characters in body
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
@Sree, expanding $(cat...) means reading the output of cat in memory, split+glob it and iterate over the resulting huge list.
Dec
15
answered What is the fastest way to create a list of directories specified in a file?
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
To read a line, it's IFS= read -r line, read line does extra processing. Leaving $line unquoted means invoking the split+glob operator. mkdir can take several arguments.
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
That's running one mkdir per directory and is flawed because of that wrong usage of read and the split+glob operator.
Dec
15
comment What is the fastest way to create a list of directories specified in a file?
That's running one mkdir per directory and is flawed because of that wrong usage of the split+glob operator. That also means storing that whole huge list in memory.
Dec
14
revised Replace %20 with a space in filenames?
more quotes missing, usage of echo, missing --