Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] fgrep: passing results to vi
- Date: 20 Jan 2003 19:59:10 +0900
- From: bruno raoult <br@example.com>
- Subject: Re: [tlug] fgrep: passing results to vi
- References: <3E2B8FD7.1050905@example.com> <20030120080413.GK26136@example.com> <1043059756.11042.3.camel@example.com>
On Mon, 2003-01-20 at 19:49, bruno raoult wrote: > > You could do something like: > > > > vi `fgrep -rI pattern /dir/to/check/ | awk -F: '{ print $1 }' | sort | uniq` > > > > There may be an option to only print the filenames in which case you > > dont need the awk statement. I can't find any such option though. > > vi `fgrep -rIl pattern /dir/to/check | sort -u` In fact, sort -u is no more necessary with the -l option of grep... The correct command to use is: vi `fgrep -rIl pattern /dir/to/check` br. -- GPG Key: 653514E5 (http://www.raoult.com/gpg) -- Avec Linux vous avez un noyau, avec Windows des pépins.Attachment: signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [tlug] fgrep: passing results to vi
- From: Jean-Christian Imbeault
- References:
- [tlug] fgrep: passing results to vi
- From: Jean-Christian Imbeault
- Re: [tlug] fgrep: passing results to vi
- From: A. Sajjad Zaidi
- Re: [tlug] fgrep: passing results to vi
- From: bruno raoult
Home | Main Index | Thread Index
- Prev by Date: [tlug] smbprint, cont.
- Next by Date: Re: [tlug] fgrep: passing results to vi
- Previous by thread: Re: [tlug] fgrep: passing results to vi
- Next by thread: Re: [tlug] fgrep: passing results to vi
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links