You are not logged in.
Pages: 1
Is it available via pacman? A search of the forums returned a few things about dos2unix, but not the reverse. Dell's biosdisk utility needs /usr/bin/unix2dos to create a BIOS upgrade boot image.
Thanks,
Cbeck
Dell Vostro A90 | 2GB RAM | 16GB Runcore SSD
Offline
Hi, try this...
sudo pacman -Ss dos2unix
extra/hd2u 1.0.3-1
Dos2Unix text file converter
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
BTW, it works both ways. dos2unix or unix2dos.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
[chris@babybeck ~]$ sudo pacman -S hd2u
Password:
warning: hd2u-1.0.3-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1): hd2u-1.0.3-1
Total Download Size: 0.00 MB
Total Installed Size: 0.02 MB
Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading hd2u [#####################] 100%
[chris@babybeck ~]$ unix2dos
bash: unix2dos: command not found
Am I being an idiot and doing something completely wrong? It's quite possible
Dell Vostro A90 | 2GB RAM | 16GB Runcore SSD
Offline
BTW, it works both ways. dos2unix or unix2dos.
unix2dos would not work unless you manually aliased it to dos2unix --u2d (or dos2unix -D).
% pacman -Ql hd2u
hd2u /usr/
hd2u /usr/bin/
hd2u /usr/bin/dos2unix
% dos2unix -h
...
--u2d, -D perform DOS -> UNIX conversion
...
Last edited by tdy (2009-05-25 22:19:42)
Offline
Running MS Office on the Windows side (maybe also OOo, you have to check), copy&pasting the contents to the workspace would sort it out.
Offline
Majorix: Either you don't understand the utility, or you've been doing it in a massively bloated fashion.
Offline
a quickie replacement for dos2unix:
tr -d '\r'
Last edited by perbh (2009-05-26 00:17:23)
Offline
Another set of replacements:
dos2unix() { awk "{ sub(\"\r\$\", \"\"); print }" $1 > $2; }
unix2dos() { awk "sub(\"\$\", \"\r\")" $1 > $2; }
Offline
Pages: 1