Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/bin/bash
  2. filename='ttt'
  3. n=1
  4. while read line; do
  5. # reading each line
  6. echo "Line No. $n : $line"
  7. n=$((n+1))
  8. done < $filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement