linux - Output redirection to file -


when i'm redirecting command output file > file created in "dos format", after have invoke dos2unix command on file if want file unix formated.

is there way directly redirecting command , avoid after processing file?

p.s. i'm using ubuntu, don't understand why file created in dos format in first place...

you can run multiple commands in 1 line separating commands colon ;

example:

your_cmd > your_outfile ; dos2unix your_outfile


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -