hpunixguy2 has a list of files with shell meta characters in them. He would like to process the list so the meta characters are quoted so that the list can be passed to a shell command. How does he do that?
use strict; use warnings; while (<DATA>) { #fix the file name here print; } __DATA__ File1^test File2!test File3-test File2\test
He'd like it to print
File1\^test File2\!test File3\-test File2\\test
In reply to The question hpunixguy2 was too scared to ask - How does he quote shell meta characters by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |