John W. Krahn wrote:
bolega wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot
bolega wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot.
Output
On Aug 22, 1:11 pm, bolega wrote:
> sed/awk/perl:
>
> How to replace all spaces each with an underscore that occur before a
> specific string ?
>
> I really prefer a sed one liner.
Why?
> Example
> Input : This is my book. It is too thick to read. The author gets
22-08-2009 o 20:11:32 bolega wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
$ rm -rf /home/bolega ; python -c 'for i in xrange(1000): print "I will
never crosspost senselessly."'
;~]
--
Jan Kalisz
bolega wrote:
sed/awk/perl:
Better to post in the "sed" or "perl" mailing lists rather than a
Python list. I saw an awk solution flew by.
How to replace all spaces each with an underscore that occur
before a specific string ?
I really prefer a sed one liner.
Here's a one-liner sed solutio
On Aug 22, 1:11 pm, bolega wrote:
> sed/awk/perl:
>
> How to replace all spaces each with an underscore that occur before a
> specific string ?
>
> I really prefer a sed one liner.
>
> Example
> Input : This is my book. It is too thick to read. The author gets
> li
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot.
Output: This_is_my_book