bash tricks

substr

start=3;stop=8; cat text.file | cut -c $start-$(($stop-1)) > out.dat
${Variable:2}

loop over text file

while read p; do
	echo $p
done < text.file

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.