User Tools

Site Tools


bash:commands:rev

BASH - Commands - rev

Reverses lines of a file or files.


Using with a string

echo this is to be reversed | rev

returns:

desrever eb ot si siht

Using with a file

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.txt · Last modified: 2021/01/26 16:08 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki