![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Code:
$ cat t1 se:mi:co:lons::: here:: and there. $ sed 's@:@:\\@g' t1 se:\mi:\co:\lons:\:\:\ here:\:\ and there. Code:
$ sed 's@:@:/@g' t1 se:/mi:/co:/lons:/:/:/ here:/:/ and there. |
|
||||
|
Code:
sed 's#;#;\n/#g' infile BTW Shouldn't the example above be: Code:
echo 'se:mi:co:lons::: here:: and there'|sed 's/:/;/g' ![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|