Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2009 11:02:00 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Fbsd1 <fbsd1@a1poweruser.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: link to dos2unix
Message-ID:  <20090301100200.GA36922@slackbox.xs4all.nl>
In-Reply-To: <49AA4EAB.8080009@a1poweruser.com>
References:  <49AA4EAB.8080009@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 01, 2009 at 05:00:27PM +0800, Fbsd1 wrote:
> I use the dos2unix console command all the time. I am tried to typing in=
=20
> that long name. I tried to do a hard link on it.
> ln /usr/local/bin/dos2unix /usr/local/bin/d2u
> This command is accepted without error, but when it execute it
> d2u xxxx.txt
> I get message =3D=3Doops you renamed me using unix2dos instead.
> I also tried
> ln -s /usr/local/bin/dos2unix /usr/local/bin/d2u
> and got same results. ls -l does not show dos2unix as linked all ready.
>=20
> What am I doing wrong here?

Usually, programs like this perform dos2unix or unix2dos translations
depending on how they are called. So renaming them won't work.

Try adding an alias to your favorite shell. That should work. E.g.put
'alias d2u dos2unix' and 'alias u2d unix2dos' in your .cshrc.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkmqXRgACgkQEnfvsMMhpyUnqACfWNnH1KdEC/LtJqLdLvn5FYIW
GR8AoJ47lAk6rbNs5niybUgQAGyoXONE
=XR0b
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090301100200.GA36922>