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 196 times
Edit
1
Community Evaluations
Similar QuestionsMore questions about Bash