Link to home
Start Free TrialLog in
Avatar of viborg86
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???

ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin