Can anyone explain to me how does this command work.
wc -l `ls`
while this command gives the total number of java lines or txt lines.
|
Can anyone explain to me how does this command work.
while this command gives the total number of java lines or txt lines. |
||||
|
`ls` will be replaced by the output of
And of course The same effect could be had by running:
Note that this only holds if none of the file names in the current directory contain any “weird” character (whitespace or |
|||||||||||||
|
echo wc -l `ls`– frostschutz Feb 8 at 23:08