[bash – sed] show 1st 5 chars, del rest

 sed -e ‘s/^\(.\{,5\}\).*$/\1/g’

Published
Categorized as bash