The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
please explain the below mail2sant Shell Programming and Scripting 1 04-04-2008 05:04 AM
Please can any one explain this ${0##/} gadege Shell Programming and Scripting 2 04-01-2008 12:26 PM
Can anyone explain plz r_W213 UNIX for Advanced & Expert Users 3 03-27-2007 01:52 AM
if [ $? -eq 0 ] .. can someone explain this? ranjita.c Shell Programming and Scripting 5 10-03-2006 04:50 PM
Explain awk hitmansilentass Shell Programming and Scripting 4 09-27-2006 11:14 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2006
Registered User
 

Join Date: Feb 2006
Posts: 27
Stumble this Post!
can anyone explain this?

:start
/@~/{
h
s/\(.*\)@~.*$/\1/
s/@~$//
s/@~/\
/g
p
g
s/.*@~\(.*\)/\1/
}
/[^@][^~]/{
N
s/\n/ /
b start
}
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-28-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,844
Stumble this Post!
It's a sed script. What are you trying to do?
Reply With Quote
  #3 (permalink)  
Old 02-28-2006
Registered User
 

Join Date: Feb 2006
Posts: 27
Stumble this Post!
trying to remove newline characters from the middle of a data field but leave the newline character at the end of the row returned.

does that make sense??
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0