Xargs....

2007-10-22 Thread Hall Nation

I am new to cygwin/X.

Using the above setup at the workplace..
I need to know about the xargs command. What does it do ?



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread xerces8
From: Hall Nation [EMAIL PROTECTED]
 I need to know about the xargs command. What does it do ?

You also need to know about the man command.
And google ;-)

Regards,
David

PS: Hint : type : man man 
then : man xargs



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread Holger Krull
xerces8 schrieb:
 From: Hall Nation [EMAIL PROTECTED]
 I need to know about the xargs command. What does it do ?
 
 You also need to know about the man command.
 And google ;-)
 

Is this a replay of older messages? Didn't we have that before?
That man is a troll or a bot.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread Hall Nation
Who's a troll ?
I'm new here .. I was facing issues while joining and tried sending this 
message long back but couldn't as I was facing issues.
Probably that msg had gone to u ppl before..
And guys I do know of google/man .. 
I just couldn't get what was described abt xargs in man ,,,  I mean I need it 
in simple terms.. (layman terms)


I also would like to know what this does ...
/bin/find . -type f |xargs grep


- Original Message 
From: Holger Krull [EMAIL PROTECTED]
To: cygwin-xfree@cygwin.com
Sent: Monday, October 22, 2007 8:10:31 PM
Subject: Re: Xargs


xerces8 schrieb:
 From: Hall Nation [EMAIL PROTECTED]
 I need to know about the xargs command. What does it do ?
 
 You also need to know about the man command.
 And google ;-)
 

Is this a replay of older messages? Didn't we have that before?
That man is a troll or a bot.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread Mark J. Reed
On 10/22/07, Hall Nation [EMAIL PROTECTED] wrote:
 I just couldn't get what was described abt xargs in man ,,,  I mean I need it 
 in simple terms.. (layman terms)

xargs has nothing to do with X11, first of all.  The x in this case
means trans, as in transpose, which is the operation that takes a
vertical column and turns it into a horizontal row.

Say you have a file named x.txt with these lines in it:

 x1
 x2
 x3

Now say you run this:

   xargs echo x.txt

The xargs command will build a new command for you and run it on your
behalf, by reading each line of its input (file x.txt) and turning it
into an argument. So it will run

   echo x1 x2 x3

and you will get

x1 x2 x3

output to your terminal.

find . | xargs grep

is how you do a grep of a bunch of files when they might be in
subdirectories.  find . will output their names, one to a line, and
xargs turns them into arguments to the grep command.

-- 
Mark J. Reed [EMAIL PROTECTED]

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread Hall Nation
Thanks for the clarification mate ...
Now I know ... 

- Original Message 
From: Mark J. Reed [EMAIL PROTECTED]
To: cygwin-xfree@cygwin.com
Sent: Monday, October 22, 2007 10:06:45 PM
Subject: Re: Xargs


On 10/22/07, Hall Nation [EMAIL PROTECTED] wrote:
 I just couldn't get what was described abt xargs in man ,,,  I mean I
 need it in simple terms.. (layman terms)

xargs has nothing to do with X11, first of all.  The x in this case
means trans, as in transpose, which is the operation that takes a
vertical column and turns it into a horizontal row.

Say you have a file named x.txt with these lines in it:

 x1
 x2
 x3

Now say you run this:

   xargs echo x.txt

The xargs command will build a new command for you and run it on your
behalf, by reading each line of its input (file x.txt) and turning it
into an argument. So it will run

   echo x1 x2 x3

and you will get

x1 x2 x3

output to your terminal.

find . | xargs grep

is how you do a grep of a bunch of files when they might be in
subdirectories.  find . will output their names, one to a line, and
xargs turns them into arguments to the grep command.

-- 
Mark J. Reed [EMAIL PROTECTED]

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Xargs....

2007-10-22 Thread Christopher Faylor
On Mon, Oct 22, 2007 at 10:43:54AM -0700, Hall Nation wrote:
Thanks for the clarification mate ...
Now I know ... 

And you would have known this before because it had already been
described to you before.  I hope that future communications will not
require this type of repetition.

And, please note that discussion of xargs is off-topic for this list.
If you actually now do know understand xargs, then I don't have to tell
you why.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



What is xargs?

2007-10-12 Thread Hall Nation
I am new to cygwin/X.

Using the above setup at the workplace..
I need to know about the xargs command. What does it
do ?


   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: What is xargs?

2007-10-12 Thread Gary Johnson
On 2007-10-12, Hall Nation wrote:
 I am new to cygwin/X.
 
 Using the above setup at the workplace..
 I need to know about the xargs command. What does it
 do ?

As a newcomer to Cygwin and apparently to Unix, one of the most 
important commands to learn is 'man'.  To find out what the 'xargs' 
command does, execute the following at the Bash prompt:

   man xargs

Regards,
Gary

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: What is xargs?

2007-10-12 Thread Christopher Faylor
On Fri, Oct 12, 2007 at 07:44:51AM -0400, Mark J. Reed wrote:
 On 2007-10-12, Hall Nation wrote:
  I am new to cygwin/X.
 
  Using the above setup at the workplace..
  I need to know about the xargs command. What does it
  do ?

As Gary said, the man (short for manual) command is your friend.

As is google.  The first hit is instructive.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: What is xargs?

2007-10-12 Thread Mark J. Reed
 On 2007-10-12, Hall Nation wrote:
  I am new to cygwin/X.
 
  Using the above setup at the workplace..
  I need to know about the xargs command. What does it
  do ?

As Gary said, the man (short for manual) command is your friend.

It's also important to note that not all commands whose name starts
with x have anything to do with X the graphics system.  In the case
of xargs, the x represents the operation that conceptually turns a
vertical list of items into a horizontal list of command-line
arguments.

So if you have a file named lines.txt whose contents are as follows:

line1
line2
line3

Then if you type this at the bash prompt:

xargs mycommand lines.txt

The xargs program will turn around and run the following command on
your behalf, as if you'd typed it instead:

mycommand line1 line2 line3

-- 
Mark J. Reed [EMAIL PROTECTED]

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: What is xargs?

2007-10-12 Thread Thomas Dickey

On Fri, 12 Oct 2007, Christopher Faylor wrote:


On Fri, Oct 12, 2007 at 07:44:51AM -0400, Mark J. Reed wrote:

On 2007-10-12, Hall Nation wrote:

I am new to cygwin/X.

Using the above setup at the workplace..
I need to know about the xargs command. What does it
do ?


As Gary said, the man (short for manual) command is your friend.


As is google.  The first hit is instructive.


It certainly is: it provides (as a wikipedia article) an example of poorly 
written technical material.


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/