how do i find all the names in a user's directory begginning with a specific letter and output the results to my home directory and errors into a bit bucket?

In unix what is the correct syntax to find a particular word in a file and have the output sent to a file in my home directory and the errors into a bit bucket?
ahmunreAsked:
Who is Participating?
 
TintinConnect With a Mentor Commented:
grep word file >$HOME/output

What type of errors do you mean?  Doing

grep word file >$HOME/output 2>/dev/null

will discard any errors if the file can't be read.
0
 
ahmunreAuthor Commented:
question partially right
0
 
ahmunreAuthor Commented:
partially right question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.