Skip to content

Instantly share code, notes, and snippets.

@MinSomai
Last active May 1, 2021 16:50
Show Gist options
  • Save MinSomai/d3101a252826117f0329191a07fa00e7 to your computer and use it in GitHub Desktop.
Save MinSomai/d3101a252826117f0329191a07fa00e7 to your computer and use it in GitHub Desktop.
Bash read N lines and print 3rd Character of that line.
while read -r input; do
printf '%s\n' "$input" | cut -c3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment