Last active
October 30, 2017 13:25
-
-
Save merin83/d4dd6b77c20c18727413d89327bb7a4a to your computer and use it in GitHub Desktop.
2nd and 7th position string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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