[sanniolug] Re: Shell scripting

  • From: FEJ - <fejit@xxxxxxxxxx>
  • To: sanniolug@xxxxxxxxxxxxx
  • Date: Sun, 10 Oct 2004 10:57:59 +0200

On domenica 10 ottobre 2004, alle 01:15, Ivan Morgillo wrote:
> echo *.cdda.wav | wc -w > count
> read COUNT < count
> echo $COUNT

prova anche cosi`:

count=`echo *.cdda.wav | wc -w`
echo $count

oppure:

count=`ls -1 *.cdda.wav | wc -l`
echo $count

Ciao 

FEJ

Other related posts: