Atrixnet Code Share and Geek Resources | Can you grok it?

Dec/09

23

remove the first N characters from each line of output (bash)

If you want to remove the first, let’s say, 27 characters from each line of output, you would:

$ some command|sed 's/^.\{27\}//'

· · ·

No comments yet.

Leave a Reply

<<

>>

Atrixnet is owned and operated by me, Tommy Butler. Sometimes I do contract networking/programming jobs. Contact me for my résumé

 

Atrixnet is
Atrixnet is Linux Powered! - click to visit www.linux.com
Wikipedia Affiliate Button