Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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?

Posted on 2008-10-12
3
246 Views
Last Modified: 2013-12-27
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?
0
Comment
Question by:ahmunre
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 22698860
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
 

Author Comment

by:ahmunre
ID: 22699027
question partially right
0
 

Author Comment

by:ahmunre
ID: 22699030
partially right question
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SIP / Streaming - real time communications testing 8 90
Use packet tracer to verify anyconnect VPN 11 59
BGP prefix and routing 3 58
Blacked by spamhaus? 26 68
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question