My application picks up external files from host systems.
I then run a script to reformat them, and transfer them to other servers.
I am finding that, on occasions, strange characters, which might be control characters, are included in the filename, which cause my script to misbehave.
eg A file might look like abc.def, but is actually $abc.$def.
How to I enhance my script to remove the "$" signs, which might be separate characters, or might be part of the "a" and the "d" (i.e. all one character )?
I know about "tr -d", but this doesn't seem to work for filenames, just file contents.
Many thanks
I then run a script to reformat them, and transfer them to other servers.
I am finding that, on occasions, strange characters, which might be control characters, are included in the filename, which cause my script to misbehave.
eg A file might look like abc.def, but is actually $abc.$def.
How to I enhance my script to remove the "$" signs, which might be separate characters, or might be part of the "a" and the "d" (i.e. all one character )?
I know about "tr -d", but this doesn't seem to work for filenames, just file contents.
Many thanks