Results 1 to 4 of 4
Use fgrep to search two files (in the same command) for the word Tool (case-matters). The first file exists and is README and the second file does NOT exist and ...
- 01-28-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 3
what is the command of this in c shell
Use fgrep to search two files (in the same command) for the word Tool (case-matters). The first file exists and is README and the second file does NOT exist and is called nothing. Redirect the standard output (which shows all the matches) to a file called stdout.txt and redirect the standard error (which tells that there is no file called nothing) to a file called srderr.txt
so far what I got is:
but it gives me this error of ambigous output redirect. How can I fix this?Code:fgrep Tool nothing ~cs352/spring08/assign0/README > stdout.txt 2> stderr.txt
- 01-28-2008 #2
- 01-28-2008 #3Linux Newbie
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 211
Sorry did not read the small print I naturally went to bash so I deleted comment.
- 01-28-2008 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 3
I already resolve this problem, the code is this:
thanks all for the helpCode:$ (fgrep Tool nothing ~cs352/spring08/assign0/README > stdout.txt) >& stderr.txt


Reply With Quote