AAA, NAC, Guest Access & BYOD

 View Only
last person joined: one year ago 

Solutions for legacy and existing products and solutions, including Clearpass, CPPM, OnBoard, OnGuard, Guest, QuickConnect, AirGroup, and Introspect

Convert patch from Dos to binary to trim the CR. 

Jul 05, 2014 08:41 PM

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
/
/g' input.file

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.