I am trying to read the file names outputed by 'ls --color -p' in my perl script using a pipe.
So the complete command is 'ls --color -p | myPerl'.
But the file names read in have some very strange chars around them, which are operating system delimiters (linux redhat8). They are not regarded as white spaces, they are even patterned as printable chars. If I match them with POSIX' [[[:print:]]], they look like [00m. However, I can not find any pattern to remove them. It is so frustrating. Could you please give me some help on this? Thank you so much.
All the best. ginger
In reply to remove operating system delimiters? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |