![]() |
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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Asterisk on IPCop Asterisk 1.4.23.2 for IPCop 1.4.21 (Default branch) | iBot | Software Releases - RSS News | 0 | 03-13-2009 06:40 AM |
| Asterisk on IPCop Asterisk 1.4.21.2 for IPCop 1.4.18 (Default branch) | iBot | Software Releases - RSS News | 0 | 07-23-2008 10:20 PM |
| Asterisk on IPCop Asterisk 1.4.21.1 for IPCop 1.4.18 (Default branch) | iBot | Software Releases - RSS News | 0 | 07-08-2008 06:30 PM |
| Asterisk on IPCop Asterisk 1.4.19.2 for IPCop 1.4.18 (Default branch) | iBot | Software Releases - RSS News | 0 | 05-14-2008 07:20 AM |
| Asterisk on IPCop Asterisk 1.4.19.1 for IPCop 1.4.18 (Default branch) | iBot | Software Releases - RSS News | 0 | 04-25-2008 04:10 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem in replacing asterisk in sed
Hi all,
Sed is the one which always trobules me here is my input : Code:
*** it industry need to be evolved *** in the world and hope so *** to be dream Code:
*** it industry need to be evolved *** in the world and hope so *** to be dream Code:
TESTING>sed '/ \*\*\* / i\ > > ' ravi_test.txt One more doubt : when using "tr" to replace the "\n" with " " , further i can't use this output in a filter to sed as sed expects "\n" at the end to consider it as a line ?.. any clue on how to use "tr" in this case( have to retain the last "\n") thanks and regards Panyam |
|
||||
|
if you have Python
Code:
#!/usr/bin/env python
for line in open("file"):
line=line.strip().split("***")
for i in line:
if i!="" : print "***"+i
Code:
# ./test.py *** it industry need to be evolved *** in the world and hope so *** to be dream |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|