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][tlug] bash and grep and diff
- Date: Tue, 10 Aug 2010 20:28:14 +0900
- From: Darren Cook <darren@example.com>
- Subject: [tlug] bash and grep and diff
- User-agent: Thunderbird 2.0.0.24 (X11/20100317)
I often want to run diff on just a subset of two files. I.e. grep "ABC" a.txt >tmp1.txt grep "ABC" b.txt >tmp2.txt diff tmp1.txt tmp2.txt Is there a way to do that in a single line, without having to create temp files? (From a bash commandline, if at all possible.) (There is only one stdin pipe, so I'm guessing not, but thought it wouldn't hurt to ask...) Darren -- Darren Cook, Software Researcher/Developer http://dcook.org/gobet/ (Shodan Go Bet - who will win?) http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)
- Follow-Ups:
- Re: [tlug] bash and grep and diff
- From: Edmund Edgar
- Re: [tlug] bash and grep and diff
- From: Romeo Theriault
- Re: [tlug] bash and grep and diff
- From: Attila Kinali
- Re: [tlug] bash and grep and diff
- From: Pier Fumagalli
Home | Main Index | Thread Index
- Prev by Date: [tlug] New programming revision site - by a TLUG'er
- Next by Date: Re: [tlug] bash and grep and diff
- Previous by thread: Re: [tlug] New programming revision site - by a TLUG'er
- Next by thread: Re: [tlug] bash and grep and diff
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links