Re: Regex for white space
From: William Park (opengeometry_at_yahoo.ca)
Date: 11/23/05
- Next message: Chris F.A. Johnson: "Re: Replacing embedded ^M with UNIX newline char"
- Previous message: William Park: "Re: How to search for string and assign the value on next line to a variable"
- In reply to: Ying Zu: "Regex for white space"
- Next in thread: Lew Pitcher: "Re: Regex for white space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Nov 2005 14:57:06 -0500
Ying Zu <nye@shao.ac.cn> wrote:
>
> Suppose a series of white spaces in between a string, just like"
>
> "foo fooo foooo fooooo"
>
> Now I wonder how can I get a new string contains no spaces or substuted by symbols like _
>
> Maybe a simple regex use but I am a newbie in shell script...
>
> thanks :)
man tr (-s)
-- William Park <opengeometry@yahoo.ca>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/
- Next message: Chris F.A. Johnson: "Re: Replacing embedded ^M with UNIX newline char"
- Previous message: William Park: "Re: How to search for string and assign the value on next line to a variable"
- In reply to: Ying Zu: "Regex for white space"
- Next in thread: Lew Pitcher: "Re: Regex for white space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading