in reply to Re: remove operating system delimiters?
in thread remove operating system delimiters?

Thank you so much for the magic. That works very fine.
Do you happen to know the patterns for any other OS delimiters for Linux redhat8?
I figured I need to prepare for all the possible inputs.
Wish you a happy holiday. ginger
  • Comment on Re: Re: remove operating system delimiters?

Replies are listed 'Best First'.
Re: Re: Re: remove operating system delimiters?
by iburrell (Chaplain) on Dec 05, 2003 at 21:09 UTC
    Those aren't OS delimiters. They are ANSI escape codes for displaying color. If you remove --color option from the ls command, they won't show up. You could also use --color=auto which causes to ls to only send color codes when it is talking to a terminal.
      Thank you so much for the professional explanation.
      I am wondering if there is any other weird chars I need to guard against in addition to the ANSI color codes.
      Is that possible that some other options of some other commands may include in the standardin some control chars
      I can not detect with regular perl regexp patterns?
      Have a good weekend. ginger