for f in $(ls bar*.out | sort -V); do
echo $f
grep "text" $f | tail -n1
done > text.csv
This is useful only for a single coloumn. What if one coloumn is extracted (in something)? There will be N number of coloumns. How to save this in csv file, with each coloumn in different coloumn of a CSV file?
No comments:
Post a Comment