Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BASH reverse lines in a file or standard input
12-30-2009, 06:25 AM (This post was last modified: 12-30-2009 06:27 AM by codecaine.)
Post: #1
BASH reverse lines in a file or standard input
output a files contents in with each line reversed
Code:
rev filename

reverse piped input
Code:
echo hello world | rev
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: