viborg86
asked on
Shell scripting
How do I remove control characters from a shell script command-line argument
A shell script is automatically invoked with a total of 9 command-line arguments. One argument is being received with an angled bracket embedded in the text - example follows:
Firewall PIX port 3 denied access > MAC unknown
Angled bracket is being processed as a redirect character and a file named "MAC unknown" is created
So, how do I remove angled bracket from command-line argument???
A shell script is automatically invoked with a total of 9 command-line arguments. One argument is being received with an angled bracket embedded in the text - example follows:
Firewall PIX port 3 denied access > MAC unknown
Angled bracket is being processed as a redirect character and a file named "MAC unknown" is created
So, how do I remove angled bracket from command-line argument???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Computer101
EE Admin