77,816 reputation
1082185
bio website
location European Union
age
visits member for 1 year, 11 months
seen 6 hours ago

Mar
17
answered Difference between xattr and chattr
Mar
17
comment How to only zip the files of a specific user?
You can do find /usr/something/. ! -name . -prune ... you don't need to cd into it or pass the whole file list to find using shell wildcards.
Mar
17
revised How to only zip the files of a specific user?
It's OK to call -prune on non-directory files.
Mar
16
revised Will $0 always include the path to the script?
typos
Mar
16
answered Will $0 always include the path to the script?
Mar
15
revised grep and directories containing spaces
added 307 characters in body
Mar
15
revised grep and directories containing spaces
**never** use {} inside the sh code. No need to call one sh per file. No need to know which value of exit status means true, typo.
Mar
15
revised identifying words in file 1 and matching them to second file and printing them
added 79 characters in body
Mar
15
comment identifying words in file 1 and matching them to second file and printing them
That was not intended as a negative critique on your answer, I was the 1st to upvote your answer and it most certainly fits the OP's need. Just a comment indicating a limitation for anyone coming here with a similar need (which is what SE is about)
Mar
15
revised identifying words in file 1 and matching them to second file and printing them
oops
Mar
15
answered identifying words in file 1 and matching them to second file and printing them
Mar
15
comment identifying words in file 1 and matching them to second file and printing them
May not work if there is more than one id=xxx; per line.
Mar
15
revised identifying words in file 1 and matching them to second file and printing them
added 93 characters in body
Mar
15
revised Can aptitude group or search for packages which nothing depends on?
added 984 characters in body
Mar
14
comment How to only zip the files of a specific user?
@Kiwy, There's no POSIX zip. The POSIX equivalent of -maxdepth 1 is \( -name . -o -prune \) though here chances are you want -mindepth 1 -maxdepth 1, that is ! -name . -prune.
Mar
14
answered How to only zip the files of a specific user?
Mar
14
revised Understanding `od -c` output
added 6 characters in body
Mar
14
answered Can aptitude group or search for packages which nothing depends on?
Mar
14
comment biggest possible number for sort -n
sort -g (a GNUism, but then you're using GNU stat) recognises "inf". perl -lne '$age = -M; $age = "inf" unless defined $age; print "$age $_"' | sort -g
Mar
14
awarded  Good Answer