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: Mon, 20 Jan 2003 17:04:13 +0900
- From: "A. Sajjad Zaidi" <sajjad@example.com>
- Subject: Re: [tlug] fgrep: passing results to vi
- References: <3E2B8FD7.1050905@example.com>
- User-agent: Mutt/1.4i
On Mon, Jan 20, 2003 at 02:57:43PM +0900, Jean-Christian Imbeault wrote: > I'm using "fgrep -rI ..." to find files that contain certain patterns. > Then I use vi to edit the files. > > Is there a way for me to pass the results (filenames) to vi so that I > can jump right into vi and start editing the files? 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. -- A. Sajjad Zaidi gpg --keyserver pgp.mit.edu --recv-keys 267E0D0EAttachment: pgp00051.pgp
Description: PGP signature
- Follow-Ups:
- Re: [tlug] fgrep: passing results to vi
- From: bruno raoult
- References:
- [tlug] fgrep: passing results to vi
- From: Jean-Christian Imbeault
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] crashing mail
- Next by Date: [tlug] Re: /etc/host setup
- Previous by thread: [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