Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- filename='ttt'
- n=1
- while read line; do
- # reading each line
- echo "Line No. $n : $line"
- n=$((n+1))
- done < $filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement