89,136 reputation
12101215
bio website
location European Union
age
visits member for 2 years, 1 month
seen 2 hours ago

Aug
21
answered Remove duplicate fields in a given column (after ID check)
Aug
21
answered Remove duplicate fields in a given column
Aug
21
awarded  Nice Answer
Aug
21
comment What happens to the signals requested recursively?
It's not the shell sending the signal, it's the kernel (upon receiving that character from the terminal). Note that those signals are sent to the foreground process group (job), not necessarily a single process. SIGINT or SIGTERM (sent by kill) are not guaranteed to terminate a process as it can be intercepted or ignored or blocked by the process.
Aug
20
answered How can I determine the page count of djvu documents from the CLI?
Aug
20
answered How to kill a process running in specific script
Aug
20
answered Is there a way to tell sudo to set my username as owner for the files created instead of root?
Aug
20
comment change the extension of all files based on user input
mv will move the $f into $f.$EXTENSION if that's a directory instead of renaming it.
Aug
20
comment change the extension of all files based on user input
* doesn't match all files, just the non-hidden ones. It also expands non-regular files like directories or sockets (the requirements are not clear on that).
Aug
20
comment change the extension of all files based on user input
You should validate all the arguments before starting the job.
Aug
20
comment change the extension of all files based on user input
case $var in ???) or [ "${#var}" -eq 3 ] for var length. GNU expr gives you the length in bytes, not characters and has trouble for values like + or index...
Aug
20
comment change the extension of all files based on user input
What about -Efoo. You should use getopts.
Aug
20
comment Suppress warning from ps -aux on Linux
ps -ef (POSIX/SysV) or ps aux (BSD). Choose your side.
Aug
20
answered Count how many elements in the nth column in a whole file
Aug
20
comment How to remove text matching specific patterns from a file
For better legibility, I'd write trim() { sed...; }; diff <(trim < fileA) <(trim < fileB).
Aug
20
revised How to sort vertically and horizontally?
Improved legibility
Aug
20
revised How to sort vertically and horizontally?
deleted 8 characters in body
Aug
20
answered How to sort vertically and horizontally?
Aug
20
comment removing each . after ] appear in a line in complete text file
Note that it only replaces one . after each ]. (turns ]1.2.3 to ]12.3, but ]1.2]2.3 to ]12]23)
Aug
20
answered removing each . after ] appear in a line in complete text file