DEV Community


Discussion on: Processing Text with Linux Shell - Part 1

shamil profile image
Shamil Author

Why rescan the input 4-times to remove the l,i,n,u,x? Instead, use sed ‘s/L/l/;s/n/N/;s/l/L/;s/x/X/‘?

Guess I just missed that one.

I’ll have to play w/-i … it feels dangerous 😟 -i.bak makes me feel mkre comfortsble, though.

It is indeed. Once I messed up some logs files that I was going through.