mc Digest, Vol 124, Issue 2
chris glur
crglur at gmail.com
Sat Oct 25 02:22:20 UTC 2014
I'm confused. What's the point of tar<->detar,
unless you're moving it over a slow/expensive route?
The data-flow is:
Dsk->RAM->RAMtar->RANdetar->Dsk.
And if RAM fills, it's even more absurd, by 'swapping'.
What have I missed?
== Chris Glur.
PS. I'm assuming that Dsk is the SAME Dsk, as normal.
On 10/23/14, mc-request at gnome.org <mc-request at gnome.org> wrote:
> Send mc mailing list submissions to
> mc at gnome.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.gnome.org/mailman/listinfo/mc
> or, via email, send a message with subject or body 'help' to
> mc-request at gnome.org
>
> You can reach the person managing the list at
> mc-owner at gnome.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mc digest..."
>
>
> Today's Topics:
>
> 1. move/copy file by extension preserving directories hierarchy.
> (tizio incognito)
> 2. Re: move/copy file by extension preserving directories
> hierarchy. (Mike Smithson)
> 3. Re: move/copy file by extension preserving directories
> hierarchy. (Andrey Tataranovich)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 22 Oct 2014 23:25:27 +0100
> From: tizio incognito <jeeglio at yahoo.it>
> To: "mc at gnome.org" <mc at gnome.org>
> Subject: move/copy file by extension preserving directories hierarchy.
> Message-ID:
> <1414016727.46556.YahooMailNeo at web172804.mail.ir2.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
> I don't know if it has benn already asked, but it could be a nice feature
> the possibility to move/copy files recursively by extension preserving the
> directory structure. I'll better explain by an example:
>
>
> src dir
> |
> +- sub dir 1
>
> | +- file1.png
>
> | +- file1.jpeg
>
> |
>
> +- sub dir 2
>
> +- file2.png
>
> +- file2.jpeg
>
>
> command: move_by_ext *.pngsrc_dir dest_dir
>
> dest dir
> |
> +- sub dir 1
>
> | +- file1.png
>
> |
>
> +- sub dir 2
>
> +- file2.png
>
>
> Thanks in advance
> Daniele Giglio
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://mail.gnome.org/archives/mc/attachments/20141022/5b0abab9/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 22 Oct 2014 17:07:19 -0700
> From: "Mike Smithson" <mdooligan at gmail.com>
> To: "mc at gnome.org" <mc at gnome.org>
> Subject: Re: move/copy file by extension preserving directories
> hierarchy.
> Message-ID: <op.xn5o90eii2bjwi at timberwolf.electromag.net>
> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
>
> On Wed, 22 Oct 2014 15:25:27 -0700, tizio incognito <jeeglio at yahoo.it>
> wrote:
>
>> I don't know if it has benn already asked, but it could be a nice
>> feature the possibility to move/copy files recursively by extension
>> preserving the directory structure. I'll better explain by an example:
>>
>>
>> src dir
>> |
>> +- sub dir 1
>>
>> | +- file1.png
>>
>> | +- file1.jpeg
>>
>> |
>>
>> +- sub dir 2
>>
>> +- file2.png
>>
>> +- file2.jpeg
>>
>>
>> command: move_by_ext *.pngsrc_dir dest_dir
>>
>> dest dir
>> |
>> +- sub dir 1
>>
>> | +- file1.png
>>
>> |
>>
>> +- sub dir 2
>>
>> +- file2.png
>>
>>
>> Thanks in advance
>> Daniele Giglio
>
> I say this is a job for the F2 menu. That's where you can get
> all picky and funny with stuff like this. I have never once
> required this nitpicking of directory contents in 20 years of
> using mc, but I have many other bizarre scripts that do oddball
> things like this that I personally require all the time, so
> I'll give you a hint:
>
> tar cvf test.tar $(find /path/to/dir -name '*.png')
>
> then move the test.tar where you want, and un-tar it.
>
>
> --
> Peace and Cheer
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 23 Oct 2014 10:02:34 +0300
> From: Andrey Tataranovich <tataranovich at gmail.com>
> To: mc at gnome.org
> Subject: Re: move/copy file by extension preserving directories
> hierarchy.
> Message-ID: <20141023100234.688091e3 at dragoncore.local>
> Content-Type: text/plain; charset=UTF-8
>
> ? Wed, 22 Oct 2014 17:07:19 -0700
> "Mike Smithson" <mdooligan at gmail.com> ?????:
>
>> tar cvf test.tar $(find /path/to/dir -name '*.png')
>>
>> then move the test.tar where you want, and un-tar it.
>
> I suggest following example:
>
> cd /path/to/src && find -name '*.png' -print0 | tar -cf- --null -T- | \
> tar -xf- -C /path/to/dst
>
> This example correctly preserve directory structure and process
> files/dirs with spaces in names.
>
> --
> WBR, Andrey Tataranovich
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> mc mailing list
> https://mail.gnome.org/mailman/listinfo/mc
>
>
> ------------------------------
>
> End of mc Digest, Vol 124, Issue 2
> **********************************
>
More information about the mc
mailing list