On 9/29/2010 5:25 PM, Michael Rasmussen wrote: > On Wed, Sep 29, 2010 at 05:17:02PM -0700, Michael Rasmussen wrote: >> On Wed, Sep 29, 2010 at 04:51:24PM -0700, glen e. p. ropella wrote: >>> logical american wrote circa 10-09-29 04:38 PM: >>>> This is a "noobie" linux question. >>>> >>>> I cannot seem to find a simple linux command to do the following: >>>> >>>> mv /one/long/path/on/a/partition/file >>>> /another/path/on/another/partition/file >>>> [...] >>>> Isn't there an easy way to do this? >>> How about: >>> >>> $ mkdir -p /another/path/on/another/partition/ >>> $ mv /one/long/path/on/a/partition/file /another/path/on/another/partition/ >> I'm more of a fan of: >> $ mkdir -p /another/path/on/another/partition/&& mv >> /one/long/path/on/a/partition/file !!$ > Which, by the way, is incorrect. > > > either > $ mkdir -p /another/path/on/another/partition/&& mv > /one/long/path/on/a/partition/file /another/path/on/another/partition/ > or > $ mkdir -p /another/path/on/another/partition/ > $ mv /one/long/path/on/a/partition/file !!$ > In all cases we keep ending up with at least 2 commands (I don't count conjoined & commands as one command)
So there really isn't one single command, is there? This is what I was afraid of. I am looking at the source code of cp now. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
