Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #14311 > unrolled thread

Linux Shell Scripting

Started bygargoyle60 <gargoyle60@example.invalid>
First post2015-04-03 13:52 +0100
Last post2015-04-04 07:05 -0500
Articles 13 — 6 participants

Back to article view | Back to comp.os.linux.misc


Contents

  Linux Shell Scripting gargoyle60 <gargoyle60@example.invalid> - 2015-04-03 13:52 +0100
    Re: Linux Shell Scripting Bit Twister <BitTwister@mouse-potato.com> - 2015-04-03 13:42 +0000
      Re: Linux Shell Scripting "Rinaldi J. Montessi" <rinaldi@notaserver.com> - 2015-04-03 08:50 -0500
        Re: Linux Shell Scripting Bit Twister <BitTwister@mouse-potato.com> - 2015-04-03 14:16 +0000
          Re: Linux Shell Scripting "Rinaldi J. Montessi" <rinaldi@notaserver.com> - 2015-04-03 10:03 -0500
            Re: Linux Shell Scripting Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-04-03 11:19 -0400
              Re: Linux Shell Scripting "Rinaldi J. Montessi" <rinaldi@notaserver.com> - 2015-04-03 13:11 -0500
            Re: Linux Shell Scripting gargoyle60 <gargoyle60@example.invalid> - 2015-04-04 09:38 +0100
              Re: Linux Shell Scripting Richard Kettlewell <rjk@greenend.org.uk> - 2015-04-04 09:51 +0100
                Re: Linux Shell Scripting gargoyle60 <gargoyle60@example.invalid> - 2015-04-04 09:59 +0100
        Re: Linux Shell Scripting William Unruh <unruh@invalid.ca> - 2015-04-04 06:02 +0000
          Re: Linux Shell Scripting Richard Kettlewell <rjk@greenend.org.uk> - 2015-04-04 09:08 +0100
            Re: Linux Shell Scripting "Rinaldi J. Montessi" <rinaldi@notaserver.com> - 2015-04-04 07:05 -0500

#14311 — Linux Shell Scripting

Fromgargoyle60 <gargoyle60@example.invalid>
Date2015-04-03 13:52 +0100
SubjectLinux Shell Scripting
Message-ID<113thaht9td8nduhtjhdr9onvsfgi9cdfd@4ax.com>
What is the purpose of the "-@" component in the following...

find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@

I assume that it represents the piped result of the find command?

Thanks.

[toc] | [next] | [standalone]


#14312

FromBit Twister <BitTwister@mouse-potato.com>
Date2015-04-03 13:42 +0000
Message-ID<slrnmht679.bj4.BitTwister@wb.home.test>
In reply to#14311
On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
> What is the purpose of the "-@" component in the following...
>
> find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@
>
> I assume that it represents the piped result of the find command?

Good assumption. 
"man zip" has the definition of -@

[toc] | [prev] | [next] | [standalone]


#14313

From"Rinaldi J. Montessi" <rinaldi@notaserver.com>
Date2015-04-03 08:50 -0500
Message-ID<551E9AA1.1060905@notaserver.com>
In reply to#14312
Bit Twister decreed, Read These Runes!:
> On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
>> What is the purpose of the "-@" component in the following...
>>
>> find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@
>>
>> I assume that it represents the piped result of the find command?
> 
> Good assumption. 
> "man zip" has the definition of -@

True, yet apropos \@ returns:

ExtUtils::testlib [] (3)  - add blib/* directories to @INC
lib []               (3)  - manipulate @INC at compile time
libcaca []           (3)  - authors - Libcaca authors Sam Hocevar
<sam@zoy.org>
main programmer Jean [] (3)  - Yves Lamoureux <jylam@lnxscene.org>

-- 
Boy, life takes a long time to live.
		-- Steven Wright

[toc] | [prev] | [next] | [standalone]


#14314

FromBit Twister <BitTwister@mouse-potato.com>
Date2015-04-03 14:16 +0000
Message-ID<slrnmht87d.i6b.BitTwister@wb.home.test>
In reply to#14313
On Fri, 3 Apr 2015 08:50:25 -0500, Rinaldi J. Montessi wrote:
> Bit Twister decreed, Read These Runes!:
>> On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
>>> What is the purpose of the "-@" component in the following...
>>>
>>> find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@
>>>
>>> I assume that it represents the piped result of the find command?
>> 
>> Good assumption. 
>> "man zip" has the definition of -@
>
> True, yet apropos \@ returns:
>
> ExtUtils::testlib [] (3)  - add blib/* directories to @INC
> lib []               (3)  - manipulate @INC at compile time
> libcaca []           (3)  - authors - Libcaca authors Sam Hocevar
><sam@zoy.org>
> main programmer Jean [] (3)  - Yves Lamoureux <jylam@lnxscene.org>

Ah, but gargoyle60 showed -@ was an argument to zip, therefore the
first place to look would be in zip's man page.

If it was a general purpose command line expansion question then I suggest 
  man $(basename $SHELL)
with a search like
/\@

[toc] | [prev] | [next] | [standalone]


#14315

From"Rinaldi J. Montessi" <rinaldi@notaserver.com>
Date2015-04-03 10:03 -0500
Message-ID<551EABD0.9070808@notaserver.com>
In reply to#14314
Bit Twister decreed, Read These Runes!:
> On Fri, 3 Apr 2015 08:50:25 -0500, Rinaldi J. Montessi wrote:
>> Bit Twister decreed, Read These Runes!:
>>> On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
>>>> What is the purpose of the "-@" component in the following...
>>>>
>>>> find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@
>>>>
>>>> I assume that it represents the piped result of the find command?
>>> 
>>> Good assumption. 
>>> "man zip" has the definition of -@
>>
>> True, yet apropos \@ returns:
>>
>> ExtUtils::testlib [] (3)  - add blib/* directories to @INC
>> lib []               (3)  - manipulate @INC at compile time
>> libcaca []           (3)  - authors - Libcaca authors Sam Hocevar
>><sam@zoy.org>
>> main programmer Jean [] (3)  - Yves Lamoureux <jylam@lnxscene.org>
> 
> Ah, but gargoyle60 showed -@ was an argument to zip, therefore the
> first place to look would be in zip's man page.

Gargoyle60?  Google is not my friend with this one - unless I'm missing
something.  Not an impossibility ;-)

> If it was a general purpose command line expansion question then I suggest 
>   man $(basename $SHELL)
> with a search like
> /\@

-- 
/earth is 98% full ... please delete anyone you can.

[toc] | [prev] | [next] | [standalone]


#14316

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2015-04-03 11:19 -0400
Message-ID<rcyTw.208051$2j2.96536@fx23.iad>
In reply to#14315
On Friday April 3 2015 11:03, in comp.os.linux.misc, "Rinaldi J. Montessi"
<rinaldi@notaserver.com> wrote:

> Bit Twister decreed, Read These Runes!:
>> On Fri, 3 Apr 2015 08:50:25 -0500, Rinaldi J. Montessi wrote:
>>> Bit Twister decreed, Read These Runes!:
>>>> On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
[snip]
>> Ah, but gargoyle60 showed -@ was an argument to zip, therefore the
>> first place to look would be in zip's man page.
> 
> Gargoyle60?

The OP, who gave the pipeline in question as
  find "/home/user" -name "syslog_20*.log" -print |
    zip -mj "/home/user/syslog.zip" -@

The -@ is an argument to the zip command, which is the last part of the
pipeline in question.

[snip]


-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

[toc] | [prev] | [next] | [standalone]


#14317

From"Rinaldi J. Montessi" <rinaldi@notaserver.com>
Date2015-04-03 13:11 -0500
Message-ID<551ED7E8.7090305@notaserver.com>
In reply to#14316
Lew Pitcher decreed, Read These Runes!:
> The -@ is an argument to the zip command, which is the last part of the
> pipeline in question.

Right.  Thanks for referring back to the OP ;-

-- 
Condense soup, not books!

[toc] | [prev] | [next] | [standalone]


#14322

Fromgargoyle60 <gargoyle60@example.invalid>
Date2015-04-04 09:38 +0100
Message-ID<fm8vhat8mh2n6ghvfngfkq5e2aoa6qtkh1@4ax.com>
In reply to#14315
On Fri, 3 Apr 2015 10:03:44 -0500, "Rinaldi J. Montessi" <rinaldi@notaserver.com> wrote:

>Gargoyle60?  Google is not my friend with this one - unless I'm missing
>something.

I tried searching for an answer, but had no success. I was working on a WinXP machine at the time of
posting so I couldn't "man zip". 

[toc] | [prev] | [next] | [standalone]


#14324

FromRichard Kettlewell <rjk@greenend.org.uk>
Date2015-04-04 09:51 +0100
Message-ID<wwv384g9szd.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid>
In reply to#14322
gargoyle60 <gargoyle60@example.invalid> writes:
> “Rinaldi J. Montessi" <rinaldi@notaserver.com> wrote:
>>Gargoyle60?  Google is not my friend with this one - unless I'm missing
>>something.
>
> I tried searching for an answer, but had no success. I was working on
> a WinXP machine at the time of posting so I couldn't "man zip".

For future reference, most man pages can be found on the web; for
instance the top google hit for ‘man zip’ is a copy of the zip man page.

-- 
http://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#14325

Fromgargoyle60 <gargoyle60@example.invalid>
Date2015-04-04 09:59 +0100
Message-ID<50avhadh993fmfubmmag64u5utls66sfkp@4ax.com>
In reply to#14324
On Sat, 04 Apr 2015 09:51:18 +0100, Richard Kettlewell <rjk@greenend.org.uk> wrote:

>For future reference, most man pages can be found on the web; for
>instance the top google hit for ‘man zip’ is a copy of the zip man page.

Thanks for the tip.

[toc] | [prev] | [next] | [standalone]


#14319

FromWilliam Unruh <unruh@invalid.ca>
Date2015-04-04 06:02 +0000
Message-ID<mfnuqg$t23$1@dont-email.me>
In reply to#14313
On 2015-04-03, Rinaldi J. Montessi <rinaldi@notaserver.com> wrote:
> Bit Twister decreed, Read These Runes!:
>> On Fri, 03 Apr 2015 13:52:11 +0100, gargoyle60 wrote:
>>> What is the purpose of the "-@" component in the following...
>>>
>>> find "/home/user" -name "syslog_20*.log" -print | zip -mj "/home/user/syslog.zip" -@
>>>
>>> I assume that it represents the piped result of the find command?
>> 
>> Good assumption. 
>> "man zip" has the definition of -@
>
> True, yet apropos \@ returns:

Why would you lookup \@ when it is clearly an argument to zip. 
Why not do apropos \-? or apropos z?



>
> ExtUtils::testlib [] (3)  - add blib/* directories to @INC
> lib []               (3)  - manipulate @INC at compile time
> libcaca []           (3)  - authors - Libcaca authors Sam Hocevar
><sam@zoy.org>
> main programmer Jean [] (3)  - Yves Lamoureux <jylam@lnxscene.org>
>

[toc] | [prev] | [next] | [standalone]


#14320

FromRichard Kettlewell <rjk@greenend.org.uk>
Date2015-04-04 09:08 +0100
Message-ID<wwvego09uy0.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid>
In reply to#14319
William Unruh <unruh@invalid.ca> writes:
> Rinaldi J. Montessi <rinaldi@notaserver.com> wrote:
>> True, yet apropos \@ returns:
>
> Why would you lookup \@ when it is clearly an argument to zip. 
> Why not do apropos \-? or apropos z?

What’s with all the redundant backslashes in this thread?

-- 
http://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#14326

From"Rinaldi J. Montessi" <rinaldi@notaserver.com>
Date2015-04-04 07:05 -0500
Message-ID<551FD36D.8070007@notaserver.com>
In reply to#14320
Richard Kettlewell decreed, Read These Runes!:
> William Unruh <unruh@invalid.ca> writes:
>> Rinaldi J. Montessi <rinaldi@notaserver.com> wrote:
>>> True, yet apropos \@ returns:
>>
>> Why would you lookup \@ when it is clearly an argument to zip. 
>> Why not do apropos \-? or apropos z?
> 
> What’s with all the redundant backslashes in this thread?

In my case it's because I didn't know that @ would be properly
interpreted without being escaped.

-- 
Every program has two purposes -- one for which it was written and
another for which it wasn't.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web