Problem with Cygwin 1.7.17 + Bash and Grep...
Tue Feb 5 20:55:00 GMT 2013
Never heard of pspad, but I use Cygwin's dos2unix all the time for
this kind of thing.
On Tue, Feb 5, 2013 at 6:49 AM, Gates, Roger <Roger.Gates@goodrich.com> wrote:
> >I'm essentially trying to take the contents of one file, and use it as
> >input for a grep command against another file, but I do not get any
> >results, even though I know the 2nd file contains a match. In the
> >one-liner below, I include an "echo" to confirm the output is in the
> >variable that should be used with the grep command.
> >[vmorales@D630-Vmorales ~]# for i in `cat file-a.txt`; do echo $i;
> >grep $i file-b.txt; done
> >[vmorales@D630-Vmorales ~]# grep charlie file-b.txt
> File-a.txt must be in DOS format. Try this.
> for i in `cat file-a.txt | d2u`; do echo $i;
> grep $i file-b.txt; done
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin