The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Searching for file and stopping at first item found
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Searching for file and stopping at first item found
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
07-02-2009
scottn
VIP Member
Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,060
Code:
find . -type f -name *.doc 2>/dev/null |
sed
"q"
Last edited by scottn; 07-02-2009 at
06:10 AM
..
scottn
View Public Profile
Find all posts by scottn
Find scottn's past nominations received
Find scottn's present nominations given