User Tools

Site Tools


bash:commands:rev

This is an old revision of the document!


BASH - Commands - rev

Reverses lines of a file or files.


echo this is to be reversed | rev

returns:

desrever eb ot si siht

rev .bash_profile

returns:

eliforp_hsab. #
 
snoitcnuf dna sesaila eht teG #
neht ;] crhsab./~ f- [ fi
crhsab./~ .	
if
 
smargorp putrats dna tnemnorivne cificeps resU #
 
nib/EMOH$:HTAP$=HTAP
 
HTAP tropxe
bash/commands/rev.1611677275.txt.gz · Last modified: 2021/01/26 16:07 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki