Hard
In the following script:
#bin/bash
counter=0
for file in ./*.txt
do
line=$(wc -l $file | cut -d" " -f1);
counter=$(($counter+$line))
done
echo "$counter"
What does the cut -d" " -f1
part do?
Author: titouan lecampStatus: PublishedQuestion passed 179 times
Edit
Similar QuestionsMore questions about Bash