scripting help with sed

 1 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
Veteran Member
    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
    Brian K
    Advanced Member
    Posts: 20
    Advanced 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