Re: Tar and a gz Archive [OT]

2020-04-01 Thread Sean Cole (Pi) via use-livecode
I'm using

*put* shell("unzip -p '" & tZipPath & "'") into tTDProductList
-p is because it's password protected. It'll extract all contents
recursively. If you don't want it recursive you need to specify either what
you do want or don't want extracted. To specify just one file you want to
extract just add the subpath to it at the end, eg:

'unzip c:/myfile.zip subdir/subdir2/aFile.txt'

To exclude a file use the -x tag:

'unzip -x c:/myfile.zip subdir/subdir2/aFile.txt'

use unzip --help or --man to find out other uses. If unzip is not installed
(which it should be for Debian, CentOS and Ubuntu) then use:  sudo apt
install unzip

Sean Cole
*Pi Digital *


On Thu, 2 Apr 2020 at 01:58, Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm sorry... I forgot to mention it's Linux command line via ssh shell.
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf Of Bob Sneidar via use-livecode
> Sent: Wednesday, April 01, 2020 8:39 PM
> To: How to use LiveCode
> Cc: Bob Sneidar
> Subject: Re: Tar and a gz Archive [OT]
>
> Looks like Tar is a Windows 10 only command line utility. I’m sure you
> know but tar /? should get you the options available. Whether or not you
> can grok what they actually mean is another thing.
>
> There are some powershelgl scripts out there but not with the specificity
> you need.
>
> Bob S
>
>
>
> On Apr 1, 2020, at 5:13 PM, Ralph DiMola via use-livecode <
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> I'm under the gun and as with any new program the number of options and
> their interactions are difficult to comprehend. I've tried a few
> combinations with limited success. Any help would be appreciated.
>
> I need to extract from a .tar.gz archive at the command line using "tar"
> as follows:
> 1) Extract the files from a specific folder in the archive into another
> folder with no recursion keeping the security levels and have the files
> owned by the destination folder.
> 2) Same as 1 but to recurs n times.
>
> Thanks
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net<mailto:rdim...@evergreeninfo.net>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Tar and a gz Archive [OT]

2020-04-01 Thread Mark Wieder via use-livecode

On 4/1/20 5:13 PM, Ralph DiMola via use-livecode wrote:


I need to extract from a .tar.gz archive at the command line using "tar" as 
follows:
1) Extract the files from a specific folder in the archive into another folder 
with no recursion keeping the security levels and have the files owned by the 
destination folder.


tar xvf #doesn't do the trick? (after gunzipping of course)


2) Same as 1 but to recurs n times.


I'm not understanding this.
Of course, that probably means I'm misunderstanding the whole thing.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Tar and a gz Archive [OT]

2020-04-01 Thread Ralph DiMola via use-livecode
I'm sorry... I forgot to mention it's Linux command line via ssh shell.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Bob Sneidar via use-livecode
Sent: Wednesday, April 01, 2020 8:39 PM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Tar and a gz Archive [OT]

Looks like Tar is a Windows 10 only command line utility. I’m sure you know but 
tar /? should get you the options available. Whether or not you can grok what 
they actually mean is another thing.

There are some powershelgl scripts out there but not with the specificity you 
need.

Bob S



On Apr 1, 2020, at 5:13 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I'm under the gun and as with any new program the number of options and their 
interactions are difficult to comprehend. I've tried a few combinations with 
limited success. Any help would be appreciated.

I need to extract from a .tar.gz archive at the command line using "tar" as 
follows:
1) Extract the files from a specific folder in the archive into another folder 
with no recursion keeping the security levels and have the files owned by the 
destination folder.
2) Same as 1 but to recurs n times.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net<mailto:rdim...@evergreeninfo.net>

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Tar and a gz Archive [OT]

2020-04-01 Thread Bob Sneidar via use-livecode
Looks like Tar is a Windows 10 only command line utility. I’m sure you know but 
tar /? should get you the options available. Whether or not you can grok what 
they actually mean is another thing.

There are some powershelgl scripts out there but not with the specificity you 
need.

Bob S



On Apr 1, 2020, at 5:13 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I'm under the gun and as with any new program the number of options and their 
interactions are difficult to comprehend. I've tried a few combinations with 
limited success. Any help would be appreciated.

I need to extract from a .tar.gz archive at the command line using "tar" as 
follows:
1) Extract the files from a specific folder in the archive into another folder 
with no recursion keeping the security levels and have the files owned by the 
destination folder.
2) Same as 1 but to recurs n times.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode