AAA, NAC, Guest Access & BYOD

Convert patch from Dos to binary to trim the CR.

Aruba Employee

DOS/ASCII format text files traditionally have carriage return and line feed pairs as their newline characters while Unix text files have the line feed as their newline character. These carriage returns will cause error while executing these patches/ shell script on a Linux system.

To avoid such issues, we need to first copy the patch file to Airwave server and run one of the following command from Airwave command line to convert the file to binary/unix format using any one of the following command based on the package availability.

Convert Dos TO Unix Using tr command: 


             # tr -d '\r' < input.file > output.file

Convert Dos TO Unix using perl command:

         
# perl -pi -e 's/\r\n/\n/g' input.file

Version history
Revision #:
1 of 1
Last update:
‎07-05-2014 05:41 PM
Updated by:
 
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.