Linux files

Tag: sed

un grande classico, conversione caratteri di fine linea formato DOS a formato Unix

by root on Feb.13, 2009, under scripts

Usando sed.

 sed 's/.$//'               # assumes that all lines end with CR/LF
 sed 's/^M$//'              # in bash/tcsh, press Ctrl-V then Ctrl-M
 sed 's/\x0D$//'            # gsed 3.02.80, but top script is easier
Leave a Comment : more...

Cerchi qualcosa?

Usa la form qui sotto per cercare nel sito

Links

Blogroll

Archivi

Tutti gli articoli in ordine cronologico...