Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > [OT] Re: writin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 2234 of 2236
Post > Topic >>

[OT] Re: writing to an output file specified by an ARGV argument

by Janis <janis_papanagnou@[EMAIL PROTECTED] > May 11, 2008 at 06:01 PM

On 11 Mai, 22:17, Francky Leyn <francky.l...@[EMAIL PROTECTED]
> wrote:
> pk wrote:
>
> > Better change the $* to "$@[EMAIL PROTECTED]
" (with the double quotes).
>
> I already though about this.
> Myproblem: I don't remember the differece,
> and I don't find it back in my notes/manuals.
> What is the diffence between $* and "$@[EMAIL PROTECTED]
" is sh?

(this is off-topic in c.l.a; try comp.unix.shell)

Simply said; arguments with whitespace that are quoted will keep
their whitespace with "$@[EMAIL PROTECTED]
" while they will be split in several
arguments wit $*

  "filename with spaces.txt"  ->  "filename" "with" "spaces.txt"

with the apparent consequence that no file or the wrong files will
be matched.

Janis




 4 Posts in Topic:
writing to an output file specified by an ARGV argument
Francky Leyn <francky.  2008-05-11 18:50:12 
Re: writing to an output file specified by an ARGV argument
pk <pk@[EMAIL PROTECTE  2008-05-11 20:04:09 
Re: writing to an output file specified by an ARGV argument
Francky Leyn <francky.  2008-05-11 21:17:00 
[OT] Re: writing to an output file specified by an ARGV argument
Janis <janis_papanagno  2008-05-11 18:01:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 21:58:19 CDT 2008.