AAA, NAC, Guest Access & BYOD

How do I remove ^M from the end of lines in a file that has been moved from Windows to Linux?

by on ‎06-30-2014 07:41 PM
Product and Software: This article applies to all ECS product and software versions.

^M corresponds to the Ctrl-M keystroke in Windows. When a file is edited in Windows and uploaded to Linux, the file may include ^M at the end of every line.

 

To delete ^M:

 

1) In the NAC appliance CLI, type:

vi

2) Click the Esc key.

3) Type:

:%s/^V^M//g

(For ^V, type Ctrl-V.)

The line then displays as:

:%s/^M//g

4) Save and exit the file.

 

Search Airheads
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.