[TriLUG] history
Chris MacLeod
stick at miscellaneous.net
Mon Feb 23 14:06:46 EST 2004
Or !!:gs/foo/bar/ will do s/foo/var/g (^foo^bar == s/foo/bar/ -- notice
the lack of 'g')
which you can then combine with ![regex]:gs/foo/bar/ to globally search
and replace on some arbitrary shell command matched with regex.
Stick
On Mon, Feb 23, 2004 at 01:46:49PM -0500, Mike Norwood wrote:
> On Mon, 23 Feb 2004, Dan wrote:
>
> > mkdir dir1
> >
> > I had an alias 'r' that would be
> >
> > r 1=2
> >
> > and the command run would be
> >
> > mkdir dir2
> >
> I think you can also just use ^1^2 to redo the previous line with changes.
>
> Mike N.
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
--
http://stick.miscellaneous.net
Chris MacLeod
More information about the TriLUG
mailing list