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
241 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
Comment Utility
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
Comment Utility
question partially right
0
 

Author Comment

by:ahmunre
Comment Utility
partially right question
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now