Re: Linux Magazine for one liners

From: Mike Machado (mike@innercite.com)
Date: Wed Aug 11 1999 - 10:30:32 PDT


I got one I did not yet get a chance to share.

tr -d '\r' < msfile > unixfile

This will stript those annoying ^M's you get when you transfer a MS file
to linux.

Brian E. Lavender wrote:

> Free copy for one liner at tonights meeting
>
> I have some copies of Linux Magazine. If you have a
> cool one liner to give at the beginning of the meeting,
> I have a free copy of Linux Magazine for you. Here's an
> example:
>
> tar cf - .| (cd /var/named/; tar xfp -)
>
> This command will copy files from one directory to another
> while maintaining permissions and owner/group ownership. It
> works across NFS mounts too.
>
> cp -a
>
> works similar to this. The tar command is more bullet proof (IMHO)
>
> brian
> --
> Brian Lavender
> http://www.brie.com/brian/

--
Mike Machado
mike@innercite.com
InnerCite
Network Specialist



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:06 PST