Linux Today: Linux News On Internet Time.

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


Complete Story

Related Stories: