Sponsored Content
Full Discussion: finding a file in Unix
Top Forums UNIX for Dummies Questions & Answers finding a file in Unix Post 27535 by Kelam_Magnus on Tuesday 3rd of September 2002 02:10:59 PM
Old 09-03-2002
If you don't want all that junk that goes along with a find output from /, then use the 2> /dev/null.

This will send all erroneous messages that would normally come from stderr to stdout and send them to /dev/null so your screen will only show you the result you are seeking or nothing if the search had no result.

find / -name myfile 2> /dev/null


My brain is your brain....

Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding files in Unix

I need help with the syntax to serach a directory and all the folders in that directorys for a single pdf file. I would than like to move that file to another folder. I don't know if this is possible with one command. Please Help. (2 Replies)
Discussion started by: johnlong
2 Replies

2. UNIX for Dummies Questions & Answers

finding directories in UNIX

I am accessing a UNIX server via FTP. I want to retieve a file in a directory. What is the UNIX command that I need to view and retrieve files from a directory? (1 Reply)
Discussion started by: yodaddy
1 Replies

3. UNIX for Dummies Questions & Answers

finding latest file in Unix

Hi, i want to search a file in the dir , if file exists for todays date print the message that file found or if file does not exist for todays date/ if file not found i want to display message saying that file not found. How to do this. Thx for your help. (2 Replies)
Discussion started by: nick12
2 Replies

4. UNIX for Dummies Questions & Answers

Finding Printer in unix

I am trying to find the list of printers(names) in the network from unix server. can anybody help me . I need the command. Thanks in advance. :) (2 Replies)
Discussion started by: vijisenthil
2 Replies

5. Shell Programming and Scripting

finding files in Unix

Hi 1)How do i find files in unix that end either in .pc or .h This does not return any output find . -name "*(pc|h)" 2)I have a file like this 001123456 .. ... i want the output to be like 001-123-456 any tricks in regular expression can do this in vi. regards Hrishy (7 Replies)
Discussion started by: xiamin
7 Replies

6. UNIX for Dummies Questions & Answers

Finding unix file system

Hi, I have here a hard drive from a computer that was damaged, and now the costumer needs the data on the hard drive, but doesn't have any other computer to read data. I don't really know what file system is on the disk. How can I find out what file system is on the disk so I can read the... (4 Replies)
Discussion started by: dmarques
4 Replies

7. UNIX for Dummies Questions & Answers

Finding out all users and their UNIX groups??

Is there a way to find out all users and the UNIX groups they belong to?? :) (3 Replies)
Discussion started by: Hangman2
3 Replies

8. Shell Programming and Scripting

Finding just unix user

I need to check for username that we are logged in.There are a lot of unix users and proceed according to that i.e find unix user if then echo "x" elif then echo "y' fi fi Now I dont know how to find and put user in if condition (8 Replies)
Discussion started by: sriki32
8 Replies

9. Homework & Coursework Questions

finding pattern without grep in unix

how can i find related pattern in a text file without using grep command in unix (2 Replies)
Discussion started by: feint
2 Replies

10. UNIX for Advanced & Expert Users

Finding a Particular Pattern In UNIX

Hi, Suppose I have a file with many lines as follows. Now I want to find the following questions from the file through shell script or commands. My name is XYZ. XYZ works for GHT and XYZ is part of PES. GHT is a good organization. XYZ knows swimming. XYZ is also very keen in reading. XYZ is a... (2 Replies)
Discussion started by: sktkpl
2 Replies
pipebench(1)															      pipebench(1)

NAME
pipebench - Shows speed of stdin/stdout communication SYNOPSIS
pipebench [ -ehqQIoru ] [ -s file | -S file ] [ -b bufsize ] DESCRIPTION
Measures the speed of stdin/stdout communication. OPTIONS
-h Displays a help message and exits. -e If an error occurs, exit (breaking the pipe between stdin and stdout. By default an error message is printed to stderr and the pro- gram continues. -q Only show summary stats. -Q Don't show running speed or summary stats. Same as -q -o. Can be used to play with buffer size. -o Don't show summary. -b bufsize Use this buffer size, in bytes. -r Just show raw speed, no fancy stuff. And no summary. -s file Write status to file instead of stderr. -S file Write status to file instead of stderr. -I Use 1kB = 1000B, instead of the default 1024B. -u Don't convet to units (kilo, Mega, etc...) EXAMPLES
Benchmark and show progress of backup # (cd /home/; tar cf - .) | pipebench | (cd /mnt/backup/; tar xf -) A number to brag to your friends about $ dd if=/dev/zero bs=80k count=60k 2> /dev/null | ./pipebench -q > /dev/null BUGS
No known bugs... yet. SEE ALSO
dd(1), cat(1) AUTHOR
Pipebench was written by Thomas Habets <thomas@habets.pp.se> pipebench 18th Apr, 2003 pipebench(1)
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy