Skip to content

Instantly share code, notes, and snippets.

@kimschles
Last active June 20, 2018 22:29
Show Gist options
  • Select an option

  • Save kimschles/2ab4d4c08f98fe9ad05fcceb558e444d to your computer and use it in GitHub Desktop.

Select an option

Save kimschles/2ab4d4c08f98fe9ad05fcceb558e444d to your computer and use it in GitHub Desktop.
RO Onboarding Shell Commands Part 1
# Window 1
echo 'this is file one' > one.txt
echo 'this is file two' >> two.txt
cat one.txt two.txt
cat > three.txt
'this is file three'
^d
echo 'i am adding this to file three' >> three.txt
echo 'here is an additional line' >> three.txt
echo 'and another one...' >> three.txt
cat three.txt | sort
cat three.txt | wc -l
cat three.txt | sort | head -3
# Window 2
three.txt tail -f
^c
three.txt tail -f | grep 'file'
three.txt tail -f | grep -v 'file'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment