fsanchez13
Technical User
Ok when I VI a file I see the following
23:59:41^M SECTION 12: TRUNK GROUP^M
ID TGNAME^M
50^M
51^M
52^M
53^M
ID IPC OPC OFL MTU USG ITUSG OTUSG^M
50 0 7 0 0 0 0 0^M
51 0 18 0 0 2 0 2^M
52 0 0 0 0 0 0 0^M
53 0 4 0 0 0 0 0^M
ID IPCTT OPCTT OFLTT SILC EAIPC EAITU FAOUT^M
50 0 7 0 0 0 0 0^M
51 0 18 0 0 0 0 0^M
52 0 0 0 0 0 0 0^M
53 0 4 0 0 0 0 0^M
ID IAMRC RELI INSVC OOS^M
50 0 0 64 0^M
51 0 0 2 0^M
52 0 0 1 0^M
53 0 0 1 0^M
^M
^M
But when I cat the same file I see it like:
SECTION 12: TRUNK GROUP
ID TGNAME
50
51
52
53
ID IPC OPC OFL MTU USG ITUSG OTUSG
50 0 7 0 0 0 0 0
51 0 18 0 0 2 0 2
52 0 0 0 0 0 0 0
53 0 4 0 0 0 0 0
ID IPCTT OPCTT OFLTT SILC EAIPC EAITU FAOUT
50 0 7 0 0 0 0 0
51 0 18 0 0 0 0 0
52 0 0 0 0 0 0 0
53 0 4 0 0 0 0 0
ID IAMRC RELI INSVC OOS
50 0 0 64 0
51 0 0 2 0
52 0 0 1 0
53 0 0 1 0
How do I get rid of all the ^M from the file? I need it to look like the VI version just without the ^M.
23:59:41^M SECTION 12: TRUNK GROUP^M
ID TGNAME^M
50^M
51^M
52^M
53^M
ID IPC OPC OFL MTU USG ITUSG OTUSG^M
50 0 7 0 0 0 0 0^M
51 0 18 0 0 2 0 2^M
52 0 0 0 0 0 0 0^M
53 0 4 0 0 0 0 0^M
ID IPCTT OPCTT OFLTT SILC EAIPC EAITU FAOUT^M
50 0 7 0 0 0 0 0^M
51 0 18 0 0 0 0 0^M
52 0 0 0 0 0 0 0^M
53 0 4 0 0 0 0 0^M
ID IAMRC RELI INSVC OOS^M
50 0 0 64 0^M
51 0 0 2 0^M
52 0 0 1 0^M
53 0 0 1 0^M
^M
^M
But when I cat the same file I see it like:
SECTION 12: TRUNK GROUP
ID TGNAME
50
51
52
53
ID IPC OPC OFL MTU USG ITUSG OTUSG
50 0 7 0 0 0 0 0
51 0 18 0 0 2 0 2
52 0 0 0 0 0 0 0
53 0 4 0 0 0 0 0
ID IPCTT OPCTT OFLTT SILC EAIPC EAITU FAOUT
50 0 7 0 0 0 0 0
51 0 18 0 0 0 0 0
52 0 0 0 0 0 0 0
53 0 4 0 0 0 0 0
ID IAMRC RELI INSVC OOS
50 0 0 64 0
51 0 0 2 0
52 0 0 1 0
53 0 0 1 0
How do I get rid of all the ^M from the file? I need it to look like the VI version just without the ^M.