Skip to content

Instantly share code, notes, and snippets.

@keyle
Created January 10, 2015 15:07
Show Gist options
  • Select an option

  • Save keyle/4bd9ee469308ac9e3026 to your computer and use it in GitHub Desktop.

Select an option

Save keyle/4bd9ee469308ac9e3026 to your computer and use it in GitHub Desktop.
Get the content piped into nim process
# option 1
let x = stdin.readAll
echo "^ " & x
# option 2
while not endoffile(stdin):
let x = stdin.readLine
echo "^ " & x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment