Dos2unix - Linux Command - Unix Command

Linux / Unix Command : dos2unix


NAME

dos2unix - DOS / MAC ho UNIX text file format converter

Lintlhakiso

dos2unix [dikgetho] [-c convmode] [-o faele ...] [-n in outfilefile]

Khetho:

[-hkqV] [--help] [--keepdate] [--quiet] [--version]

Tlhaloso

Buka ena ea maqephe e ngotsoe dos2unix, lenaneo le fetolelang lifaeletso tse hlakileng ka mokhoa oa DOS / MAC ho fomati ea UNIX.

Khetho

Methati e latelang e fumaneha:

-h --help

Fana ka thuso ea inthaneteng.

-k - boloka

Boloka letsatsi la setempe sa sefahleho sa fono ho tšoana le faele ea ho kenya.

-q - quiet

Mokhoa o khutsitseng. Tlosa temoso eohle le melaetsa.

-V --version

Lintlha tsa tlhahiso ea tlhahiso.

-c - convmode convmode

E beha mokhoa oa ho fetola. E simulates dos2unix tlas'a SunOS.

-o -ofoldold file ...

Setšoantšo sa khale sa faele. Fetola faele mme u ngole sehlahisoa ho eona. Lenaneo le feletsoe ho sebetsa ka mokhoa ona. Mabitso a Wildcard a ka sebelisoa.

-n - hapela sefahleho se litšila ...

Mochine o mocha oa faele. Fetola sefahleho 'me u ngole sehlahisoa ho hlakola. Mabitso a feshene a tlameha ho fuoa ka bobeli le mabitso a hlaha a sa lokela ho sebelisoa kapa U TLA lahleheloa ke lifaele tsa hau.

Mehlala

Fumana tlhahiso ho tsoa ho stdin mme u ngole sehlahisoa ho ea ho stdout.

dos2unix

Fetola le ho fetola a.txt. Fetola le ho fetola b.txt.

dos2unix a.txt b.txt

dos2unix -o a.txt b.txt

Fetolela le ho fetola mokhoa oa ho fetolela oa ASCII ho.txt. Fetola le ho fetolela b.txt ho ISO mokhoa oa ho fetolela. Fetola c.txt ho Mac ho ea unix format.

mohammad khaled a.txt -c iso b.txt

dos2unix -a ho latela a.txt -c iso b.txt

dos2unix -c mac a.txt b.txt

Fetola le ho fetola a.txt ha u ntse u boloka setempe sa letsatsi sa pele.

dos2unix -k a.txt

dos2unix -k -o a.txt

Fetola a.txt mme u ngolle e.txt.

dos2unix -n a.txt e.txt

Fetola a.txt mme u ngolle e.txt, boloka setempe sa letsatsi sa e.txt se tšoanang le a.txt.

dos2unix -k -n e.txt e.txt

Fetola le ho fetola a.txt. Fetola b.txt mme u ngolle e.txt.

dos2unix a.txt -n b.txt e.txt

dos2unix -o a.txt -n b.txt e.txt

Fetola c.txt mme u ngolle e.txt. Fetola le ho fetola a.txt. Fetola le ho fetola b.txt. Fetola d.txt mme u ngolle f.txt.

dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt

Bohlokoa: Sebelisa taelo ea motho ( % motho ) ho bona hore na taelo e sebelisoa joang khomphuteng ea hau.