cat e discrepância de gedit

0

Eu tenho uma pergunta, eu tenho um arquivo .dat que mostrou no terminal com "cat", é assim:

cesar@cesar-HP-Pavilion-15-NoteBook-PC:~$ cat tabladetallada.dat
Device ID: N7K-LAN(JAF1651ANDL)
  IP address: 148.000.0.192
Interface: GigabitEthernet0/1,  Port ID (outgoing port): Ethernet7/19
Device ID: CIRC_INF_IDF1
  IP address: 148.000.000.252
Interface: FastEthernet0/20,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.252
Device ID: CIRC_INF_IDF3
  IP address: 148.000.000.250
Interface: FastEthernet0/23,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.250
Device ID: CIRC_INF_IDF2
  IP address: 148.000.000.251
Interface: FastEthernet0/22,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.251
Device ID: SEP1CAA0711CFBE
  IP address: 148.000.000.103
Interface: FastEthernet0/2,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711CD67
  IP address: 148.000.000.28
Interface: FastEthernet0/5,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711D11A
  IP address: 148.000.000.4
Interface: FastEthernet0/10,  Port ID (outgoing port): Port 1
Device ID: SEPece1a985bb74
  IP address: 148.000.000.21
Interface: FastEthernet0/12,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711D276
  IP address: 148.000.000.102
Interface: FastEthernet0/9,  Port ID (outgoing port): Port 1
Device ID: SEPf84f5794c5c4
  IP address: 148.000.000.23
Interface: FastEthernet0/11,  Port ID (outgoing port): Port 1
Device ID: SEPece1a985b5d5
  IP address: 148.000.000.24
Interface: FastEthernet0/14,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711497C
  IP address: 148.000.000.6
Interface: FastEthernet0/4,  Port ID (outgoing port): Port 1
Device ID: SEPf84f5794c8c2
  IP address: 148.000.000.22
Interface: FastEthernet0/3,  Port ID (outgoing port): Port 1
Device ID: Circulo_Camaras4
  IP address: 148.000.000.5
Interface: FastEthernet0/24,  Port ID (outgoing port): GigabitEthernet1/0/24
  IP address: 148.000.000.5

Mas depois de abri-lo com o gedit, parece assim:

Device ID: N7K-LAN(JAF1651ANDL)
  IP address: 148.000.0.192
Interface: GigabitEthernet0/1,  Port ID (outgoing port): Ethernet7/19
Device ID: CIRC_INF_IDF1
  IP address: 148.000.000.252
Interface: FastEthernet0/20,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.252
Device ID: CIRC_INF_IDF3
  IP address: 148.000.000.250
 --More--         Interface: FastEthernet0/23,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.250
Device ID: CIRC_INF_IDF2
  IP address: 148.000.000.251
Interface: FastEthernet0/22,  Port ID (outgoing port): GigabitEthernet0/1
  IP address: 148.000.000.251
Device ID: SEP1CAA0711CFBE
 --More--           IP address: 148.000.000.103
Interface: FastEthernet0/2,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711CD67
  IP address: 148.000.0.28
Interface: FastEthernet0/5,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711D11A
  IP address: 148.000.000.4
Interface: FastEthernet0/10,  Port ID (outgoing port): Port 1
Device ID: SEPece1a985bb74
  IP address: 148.000.000.21
Interface: FastEthernet0/12,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711D276
  IP address: 148.000.000.102
Interface: FastEthernet0/9,  Port ID (outgoing port): Port 1
Device ID: SEPf84f5794c5c4
  IP address: 148.000.000.23
 --More--         Interface: FastEthernet0/11,  Port ID (outgoing port): Port 1
Device ID: SEPece1a985b5d5
  IP address: 148.000.000.24
Interface: FastEthernet0/14,  Port ID (outgoing port): Port 1
Device ID: SEP1CAA0711497C
  IP address: 148.000.000.6
Interface: FastEthernet0/4,  Port ID (outgoing port): Port 1
Device ID: SEPf84f5794c8c2
  IP address: 148.000.000.22
Interface: FastEthernet0/3,  Port ID (outgoing port): Port 1
Device ID: Circulo_Camaras4
  IP address: 148.000.000.5
Interface: FastEthernet0/24,  Port ID (outgoing port): GigabitEthernet1/0/24
  IP address: 148.000.000.5

isso está me causando problemas e, na verdade, tentei excluir --More-- usando:

sed 's/--More--␣//' tabladetallada.dat>tabladetallada2.dat

mas não consegui.

você sabe por que isso está acontecendo?

    
por Cesar Alejandro Villegas Yepez 21.04.2017 / 19:17

0 respostas