83,642 reputation
1092199
bio website
location European Union
age
visits member for 2 years
seen 5 hours ago

Aug
25
revised Why does MV(1) copy objects if permission to move denied?
remove reference to man section as `rename()` is more likely to be in section 2 (system calls).
Aug
25
answered How do you get a count of all file extensions on a hard drive using the gnu+linux terminal?
Aug
25
comment Is there any way to read lines from command output?
It's not necessarily faster. Because when reading from a pipe read has to read one byte at a time, while it can optimise things with reading larger chunks and seek backward when reading from a regular file. Best is to avoid while read loops altogether in the first place when possible. Also note that you need IFS= read -r line to read the line into $line. And leaving $line unquoted (invoking the split+glob operator) here probably doesn't make sense.
Aug
25
answered How can I tell if the pipe buffer is full?
Aug
25
revised Why is this binary file being changed?
added 3 characters in body
Aug
24
awarded  Nice Answer
Aug
24
revised Why is this binary file being changed?
typo formatting
Aug
24
revised Why is this binary file being changed?
typo formatting
Aug
24
revised Why is this binary file being changed?
added 4 characters in body
Aug
24
answered Why doesn't the tilde (~) expand inside double quotes?
Aug
24
revised Why is this binary file being changed?
added 88 characters in body
Aug
24
answered Why is this binary file being changed?
Aug
23
revised Get device node by major/minor numbers pair
added 324 characters in body
Aug
23
answered Get device node by major/minor numbers pair
Aug
23
revised Is there a downside to deleting all of the broken symbolic links in a system?
added 455 characters in body
Aug
23
comment How to pass argument with spaces to a shell script function?
@Gnouc. Not in dash. In yash yes. Though zsh also accepts ksh's function definition syntax, function() echo x; function will work in zsh. So the only shells where that is a problem are ksh, bash and yash.
Aug
23
comment gunzip a folder with many files
@Gnouc, not needed strictly speaking, except with nullglob. But doesn't harm and it's a good habit to have to use it unless you have a good reason not to.
Aug
23
answered gunzip a folder with many files
Aug
23
answered How use minimum number of commands to copy all .txt files from all subdirectories to one directory?
Aug
23
comment efficient cross-os file size shell function
zstat -L to get the size of the symlink like ls -dn or ls -Ldn to get the size of that target of the symlink like zstat alone.