Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Evaluate expression inside another evaluation - bash script

Feb 06, 2009, 18:49 (1 Talkback[s])

"Lets discuss an example to see the good use of $( ) in bash shell.

"#Suppose 'offsetno' variable is set to 9 $ offsetno=9

"#Number of *.sh files under my directory (/tmp/mydir) is 29

"$ ls /tmp/mydir/*.sh | wc -l

"29"

Complete Story

Related Stories: