Loading ...
Sorry, an error occurred while loading the content.

Re: [NTS] Re: Regular Expression to Strip lines of "]"

Expand Messages
  • Larry Hamilton
    Thanks Alan. I ll have to try this one and see how it does. Larry Hamilton Kairos Computer Solutions http://www.kairoscomputers.com/ Sales Affiliate for
    Message 1 of 4 , May 26, 2005
    • 0 Attachment
      Thanks Alan.

      I'll have to try this one and see how it does.

      Larry Hamilton
      Kairos Computer Solutions
      http://www.kairoscomputers.com/
      Sales Affiliate for Grisoft Anti-Virus

      Alan C wrote:
      > perl -pe 's/\]+\n//g' < file.ddf > file.txt
      >
      > That did it here on Linux. Sometimes Win needs double quotes if trying
      > it on Windows.
      >
      > http://www.perl.com/pub/a/2004/08/09/commandline.html?page=2
      >
      > scroll down near bottom, entitled "In-place editing"
      >
      > tr can do lots. I never know when to use substitution operator (regex)
      > versus tr transliteration operator.
      >
      > Alan.
    Your message has been successfully submitted and would be delivered to recipients shortly.