Advertisement
metalx1000

BASH print file without CAT

Jan 9th, 2025
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. cat msg.txt
  2. type cat
  3.  
  4. echo "$(<msg.txt)"
  5. type echo
  6.  
  7. printf "%s\n" "$(<msg.txt)"
  8. type printf
  9.  
  10. while read line
  11. do
  12.    echo "$line"
  13. done < msg.txt
  14.  
  15.  
  16. while read line
  17. do
  18.    echo "--$line--"
  19. done < msg.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement