Redirect stdout and stderr to a file

stdout

kwannoel@Kwans-MacBook-Pro uprooted % cat 1.in | ./uprooted 1> temp

stderr

kwannoel@Kwans-MacBook-Pro uprooted % cat 1.in | ./uprooted 1> temp

Filter stderr / stdout

remove stdout

kwannoel@Kwans-MacBook-Pro uprooted % cat 2.in | ./uprooted 1> /dev/null

remove stderr

kwannoel@Kwans-MacBook-Pro uprooted % cat 2.in | ./uprooted 2> /dev/null