Re: Xterm + Bash + Long command lines
From: William Park (opengeometry_at_yahoo.ca)
Date: 11/11/04
- Next message: Dan Mercer: "Re: Unix Process name to PID"
- Previous message: chris-usenet_at_roaima.co.uk: "Re: 2 articles in LinuxGazette.net (shameless self-PR)"
- In reply to: Shankar B: "Xterm + Bash + Long command lines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Nov 2004 15:24:56 GMT
Shankar B <shankar.sb@gmail.com> wrote:
> Hi all
>
> I wonder if there is an easy way to change the position of keyboard
> cursor on the Bash command line by clicking that location with the
> mouse. I use Bash 2.05b and Xterm 4.2.99. The reason I need is that I
> have long command lines like :
>
> paste -d" " aa bb |grep "N5" | cut -d" " -f8,16 | awk '{print $1-$2}'
> | sort -n | uniq -c | ~/bin/addup
>
> and I would like to change the cut option 16 to say 15 without using
> the left/right arrows to go to that location. I use such command lines
> as part of some quick and dirty work once in a while and I don't want
> to write shell scripts or anything of that sort.
set -o vi
<Esc>f,cw15<Enter>
- Next message: Dan Mercer: "Re: Unix Process name to PID"
- Previous message: chris-usenet_at_roaima.co.uk: "Re: 2 articles in LinuxGazette.net (shameless self-PR)"
- In reply to: Shankar B: "Xterm + Bash + Long command lines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|