Search Results

Search: Posts Made By: Prasad Rao
4,618
Posted By Corona688
Whenever you find yourself doing grep | grep |...
Whenever you find yourself doing grep | grep | grep | grep | grep, it's time to learn awk:

ls -ltcR $HOME | awk '!/^total/ && !/\// && !/^$/'
174,871
Posted By era
Experiment to see. vnix$ n=1 vnix$ echo...
Experiment to see.

vnix$ n=1
vnix$ echo $($n)
bash: 1: command not found
vnix$ n="date"
vnix$ echo $($n)
Wed May 21 20:39:00 EEST 2008

So it uses the value of $n as a command. (It's the...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy