scripting help with sed

 1 Replies
 0 Subscribed to this topic
 28 Subscribed to this forum
Sort:
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
Veteran Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Hi, all!!

I have a sys admin type question.  I'm working with the PR292 final files and have found that we need to do a search/replace in them...  don't get me started, please.

I'm using the following:
sed -e 's/some text/other text/g' < final > output.txt

I'm getting nothing but zero byte files for output.txt does sed have a limitation on line length?  Some of those final files can get upwards of
30,000 characters on one line.  (That is how IL has to have them.)

Other ways to do this? 

Thanks much,
-Greg
Deleted User
New Member
Posts: 0
New Member
Greg,

Does this site help:
http://www.cims.nyu.edu/c...tml?(sed)Limitations

It says that certain versions limit line lengths.

Thanks,
Brian