Re: find can't redirect my output to a file
- From: Michael Tosch <eedmit@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Nov 2007 19:38:42 +0100
cozzmo1@xxxxxxxxxxx wrote:
$ find /* -name "*assw*" -print 2> /dev/null
With the above command, how would I redirect the output to a file?
I tried these unsuccessfully
$ find /* -name "*assw*" -print 2> /dev/null >> file1 !(no
output)
$ find /* -name "*assw*" -print 2> /dev/null | tee file1 !(no
output)
thanks,
Crzzy1
Because it does not find anything that matches "*assw*"?
Then it will create an empty file1 or append nothing.
Or it dies with "too many arguments" because /* has too many
matches? The 2>/dev/null suppresses the error message.
Try
find / -print 2> /dev/null | tee file1
--
Michael Tosch @ hp : com
.
- References:
- find can't redirect my output to a file
- From: cozzmo1
- find can't redirect my output to a file
- Prev by Date: Re: find can't redirect my output to a file
- Next by Date: Bash script as a "switch"
- Previous by thread: Re: find can't redirect my output to a file
- Next by thread: Re: find can't redirect my output to a file
- Index(es):
Relevant Pages
|