bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

squeezing blanks out of command lines


From: Dan Jacobson
Subject: squeezing blanks out of command lines
Date: Sun, 30 Jan 2005 04:05:59 +0800

The challenge: at the prompt take a line like
$ this   is          a long        line  with lots of    space
and turn it into
$ this is a long line with lots of space

With GNU emacs, a mere M-h M-q does the job.  But I bet bash is helpless
here.

P.S., if one day implementing emacs' just-one-space, note it will take
an argument soon, for the number of spaces needed.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]