65,961 reputation
863145
bio website
location European Union
age
visits member for 1 year, 7 months
seen 7 mins ago

Mar
7
answered What's the difference between print and head?
Mar
7
answered Wrapper command that runs program in temporary directory and deletes it after execution
Mar
7
answered Egrep multiple strings in an XML file
Mar
7
comment Egrep multiple strings in an XML file
Shouldn't it be </ELEMENT1> instead of </ELEMENT> above?
Mar
7
answered Show completions under the prompt in Fish
Mar
7
revised Show completions under the prompt in Fish
added 26 characters in body
Mar
7
revised Show completions under the prompt in Fish
no bash in there
Mar
7
revised syntax error in conditional expression while executing the shell script?
sorry, more than 4, not 3, added the POSIX reference.
Mar
7
revised syntax error in conditional expression while executing the shell script?
expand a bit on that otherwise fine answer. Hope you don't mind.
Mar
7
awarded  Nice Answer
Mar
6
comment Only print rows that have 2 or more fields?
@grebneke, you're right. Edited. Thanks.
Mar
6
revised Only print rows that have 2 or more fields?
deleted 2 characters in body
Mar
6
revised How to remove a specific character in a string but only if there are no numbers in that line in Linux
+ superfluous
Mar
6
revised How to remove a specific character in a string but only if there are no numbers in that line in Linux
wrong logic for the awk one. Note about `-r` being GNU
Mar
6
comment Only print rows that have 2 or more fields?
If the requirement is really to filter out lines with data in only one field, then that fails to exclude ,foo, and that wrongly excludes foo,bar,.
Mar
6
answered Only print rows that have 2 or more fields?
Mar
6
revised Only print rows that have 2 or more fields?
added 2 characters in body
Mar
6
comment Preventing deletion of system/shell aliased folders
@grebneke, I can reproduce your 1 above and it looks like a bug in bash. Binding an external command to ^M (like bind -x '"\C-m": /bin/true') is enough to trigger it (use Ctrl+J to accept the line as we do in our TIOCSTI ioctl).
Mar
6
comment Removing file which doesn't have any permissions and attributes
Here, the ???? indicate that the lstat fails, so ls -li won't make any difference.
Mar
6
comment Removing file which doesn't have any permissions and attributes
You can reproduce by doing set_inode_field path/to/file links_count 0 in debugfs. fsck would say: Entry 'file' in /path/to (2) has deleted/unused inode 12. Clear<y>?