Skip to content

Instantly share code, notes, and snippets.

@schneems
Created January 5, 2012 14:05
Show Gist options
  • Select an option

  • Save schneems/1565390 to your computer and use it in GitHub Desktop.

Select an option

Save schneems/1565390 to your computer and use it in GitHub Desktop.
# Cut will do the trick
# to grab caracters 2 to 3 we can use
# `cut -c 2-3
echo 'hello' | cut -c 2-3
'el'
cat my-file-name.txt | cut -c 100000-101000
# output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment