Skip to content

Instantly share code, notes, and snippets.

@merin83
Last active October 30, 2017 13:25
Show Gist options
  • Select an option

  • Save merin83/d4dd6b77c20c18727413d89327bb7a4a to your computer and use it in GitHub Desktop.

Select an option

Save merin83/d4dd6b77c20c18727413d89327bb7a4a to your computer and use it in GitHub Desktop.
2nd and 7th position string
while read C; do
text=${C:1:1}
text=$text${C:6:1}
echo $text
done
or
while read C; do
cut -c 2,7 <<< ${C}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment