539 reputation
29
bio website
location
age
visits member for 4 years, 10 months
seen Jul 27 at 13:51

Oct
12
awarded  Supporter
Mar
22
answered Is there a standard UNIX tool to repeat a command any number of times?
Mar
10
revised a function in .bash_profile
added 6 characters in body
Mar
10
awarded  Editor
Mar
10
revised a function in .bash_profile
deleted 278 characters in body
Mar
10
answered a function in .bash_profile
Mar
10
answered How do I set $ variables in unix?
Mar
9
comment Why does this bash command take up all space on device?
One workaround: Tell find to exclude your results file, like so: find . -not -name results.txt -exec grep "modoule" {} + > results.txt
Mar
8
awarded  Teacher
Mar
8
comment how to `tail` the latest file in a directory
@TMN: The one true Unix way is not to rely on ls for non-human consumers. "If the output is to a terminal, the format is implementation-defined." - this is the spec. If you want to be sure you have to say ls -1 or ls -C.
Mar
8
comment how to `tail` the latest file in a directory
+1 for citing correct atime/mtime/ctime meaning.
Mar
8
comment how to `tail` the latest file in a directory
It's easy to be clean and simple if you sacrifice robust and correct.
Mar
8
comment how to `tail` the latest file in a directory
+1 for clever, -2 for parsing ls output, -1 for not quoting the subshell, -1 for a magic "field 8" assumption (it's not portable!) and finally -1 for too clever. Overall score: -4.
Mar
8
comment how to `tail` the latest file in a directory
But what happens when your latest file has spaces or special characters? Use $() instead of `` and quote your subshell to avoid this problem.
Mar
8
answered how to `tail` the latest file in a directory