Re: How to go a file at a specific line number using the output from grep?

2009-11-19 Thread Gary Johnson
On 2009-11-18, Peng Yu wrote: > On Nov 18, 1:55 am, Gary Johnson wrote: > > A third way, that uses both the temporary file and the quickfix > > list, is to open your temporary file like this: > > > >     gvim --cmd 'let &efm=&gfm' -q /tmp/grep_output.txt > > I want to start with gvim as if ':co

Re: How to go a file at a specific line number using the output from grep?

2009-11-18 Thread Peng Yu
On Nov 18, 1:55 am, Gary Johnson wrote: > On 2009-11-17, Peng Yu wrote: > > > > > $grep-H -n if /etc/profile>/tmp/grep_output.txt > > $ cat /tmp/grep_output.txt > > /etc/profile:4:if [ -d /etc/profile.d ]; then > > /etc/profile:6:    if [ -r $i ]; then > > /etc/profile:13:if [ "$PS1" ]; then >

Re: How to go a file at a specific line number using the output from grep?

2009-11-18 Thread Markus Koch
On 09Nov17 21:32, Peng Yu wrote: > John Beckett wrote: > > Peng Yu wrote: > > > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > > > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > > > /etc/profile:6:if [ -r $i ]; then > > > /etc/profile:13:if [ "$PS1" ]; then > >

Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Gary Johnson
On 2009-11-17, Peng Yu wrote: > $ grep -H -n if /etc/profile>/tmp/grep_output.txt > $ cat /tmp/grep_output.txt > /etc/profile:4:if [ -d /etc/profile.d ]; then > /etc/profile:6:if [ -r $i ]; then > /etc/profile:13:if [ "$PS1" ]; then > /etc/profile:14: if [ "$BASH" ]; then > /etc/profile:16:

Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread bill lam
On Tue, 17 Nov 2009, Peng Yu wrote: > > > > John Beckett wrote: > > Peng Yu wrote: > > > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > > > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > > > /etc/profile:6:if [ -r $i ]; then > > > /etc/profile:13:if [ "$PS1"

Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Peng Yu
John Beckett wrote: > Peng Yu wrote: > > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > > /etc/profile:6:if [ -r $i ]; then > > /etc/profile:13:if [ "$PS1" ]; then > > /etc/profile:14: if [ "$BASH" ]; then > >

RE: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread John Beckett
Peng Yu wrote: > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > /etc/profile:6:if [ -r $i ]; then > /etc/profile:13:if [ "$PS1" ]; then > /etc/profile:14: if [ "$BASH" ]; then > /etc/profile:16:if [ -f /etc/ba

How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Peng Yu
$ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then /etc/profile:6:if [ -r $i ]; then /etc/profile:13:if [ "$PS1" ]; then /etc/profile:14: if [ "$BASH" ]; then /etc/profile:16:if [ -f /etc/bash.bashrc ]; then /etc/prof