Re: kill job vs. pid

2008-07-26 Thread Paul Jarc
Daniel Norton <[EMAIL PROTECTED]> wrote: > How do I tell bash to kill job 1, rather than pid 1 ? man bash, in the section JOB CONTROL: # There are a number of ways to refer to a job in the shell. The # character % introduces a job name. Job number n may be referred to # as %n. A job may also

Re: How to create parameterized aliases in bashrc

2008-07-26 Thread Dave B
Aman Jain wrote: > Hi > > I would like to create an alias to show Nth line of a file. > > I tried something like > alias shline='head -$1 $2 | tail -1' #$1 is the line number and $2 > is the filename ># Usage should be : > $shline 5 fi

How to create parameterized aliases in bashrc

2008-07-26 Thread Aman Jain
Hi I would like to create an alias to show Nth line of a file. I tried something like alias shline='head -$1 $2 | tail -1' #$1 is the line number and $2 is the filename # Usage should be : $shline 5 file.txt But it isn't working..