This works
Perl -pi.bak -e "s/\\t/\t/g;" one.xml
But this doesnt work for all xmls in the folder
Perl -pi.bak -e "s/\\t/\t/g;" *.xml
Keep getting error cannot open *.xml
Have tried all sorts of things and recognise the *
as a wildcard
This works
Perl -pi.bak -e "s/\\t/\t/g;" one.xml
But this doesnt work for all xmls in the folder
Perl -pi.bak -e "s/\\t/\t/g;" *.xml
Keep getting error cannot open *.xml
Have tried all sorts of things and recognise the *
as a wildcard
You are seeing the cannot open *.xml
because, unlike Unix shells, the Windows CMD shell does not expand wild cards.
If you want to stay with cmd
, you can form a for
loop over files or you could switch to something more powerful like PowerShell and try this (untested): Perl -pi.bak -e "s/\\t/\t/g;" (Get-ChildItem *.xml | % { "$_" })
.