Re: putting something into single quotes in a bash script

2011-02-03 Thread g
On 02/03/2011 07:41 PM, Joe Zeff wrote: <> > Man uses less for display. To learn more about it, use this is true. but then he would have to have 2 terminal windows open until he learns more commands. ;) after which, he can learn 'info', as poc suggested, and then he will have a whole new comman

Re: putting something into single quotes in a bash script

2011-02-03 Thread g
On 02/03/2011 06:49 PM, Petrus de Calguarium wrote: <> > Actually, I am intimately familiar with man pages; however, the only > commands I know are space bar, 'b', 'q' and the mouse wheel. then you need to become more intimate with 'man'. run; man man while there, press key. may you intima

Re: putting something into single quotes in a bash script

2011-02-03 Thread Joe Zeff
On 02/03/2011 10:49 AM, Petrus de Calguarium wrote: > Actually, I am intimately familiar with man pages; however, the only commands > I > know are space bar, 'b', 'q' and the mouse wheel. Man uses less for display. To learn more about it, use man less -- users mailing list users@lists.fedorapr

Re: putting something into single quotes in a bash script

2011-02-03 Thread Petrus de Calguarium
g wrote: > maybe not for some who are not used > to man pages. Actually, I am intimately familiar with man pages; however, the only commands I know are space bar, 'b', 'q' and the mouse wheel. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: ht

Re: putting something into single quotes in a bash script

2011-02-02 Thread suvayu ali
On Wed, Feb 2, 2011 at 4:57 PM, Petrus de Calguarium wrote: > Joe Zeff wrote: > >> You might find what you need at http://tldp.org/LDP/abs/html/ > > Thanks for the suggestion, but I don't have the time to read a book just to > find out the meaning of ` and learn that it is not the same as '. > Le

Re: putting something into single quotes in a bash script

2011-02-02 Thread john wendel
On 02/02/2011 07:09 PM, Patrick O'Callaghan wrote: > On Wed, 2011-02-02 at 17:59 -0700, Petrus de Calguarium wrote: >> g wrote: >> >>> man bash >> >> The man page for bash is the worst one of all! I use man all the time for all >> kinds of commands, but anything to do with bash directs you to this

Re: putting something into single quotes in a bash script

2011-02-02 Thread Patrick O'Callaghan
On Wed, 2011-02-02 at 17:59 -0700, Petrus de Calguarium wrote: > g wrote: > > > man bash > > The man page for bash is the worst one of all! I use man all the time for all > kinds of commands, but anything to do with bash directs you to this bash > page, > meaning you have to pore over hundreds

Re: putting something into single quotes in a bash script

2011-02-02 Thread g
On 02/02/2011 10:55 PM, Joe Zeff wrote: > On 02/02/2011 01:32 PM, Patrick O'Callaghan wrote: >> I recommend reading up on bash to fully understand this last part. It's >> not trivial to explain. > > You might find what you need at http://tldp.org/LDP/abs/html/ i believe poc was just stating that

Re: putting something into single quotes in a bash script

2011-02-02 Thread g
On 02/03/2011 12:59 AM, Petrus de Calguarium wrote: <> > The man page for bash is the worst one of all! not really. using '/' to look for what you want to know about makes it very informative. at least for me. maybe not for some who are not used to man pages. > I use man all the time for all kin

Re: putting something into single quotes in a bash script

2011-02-02 Thread Petrus de Calguarium
g wrote: > man bash The man page for bash is the worst one of all! I use man all the time for all kinds of commands, but anything to do with bash directs you to this bash page, meaning you have to pore over hundreds of separate entries in the vain hope of finding something relevant to your que

Re: putting something into single quotes in a bash script

2011-02-02 Thread Petrus de Calguarium
Joe Zeff wrote: > You might find what you need at http://tldp.org/LDP/abs/html/ Thanks for the suggestion, but I don't have the time to read a book just to find out the meaning of ` and learn that it is not the same as '. -- users mailing list users@lists.fedoraproject.org To unsubscribe or

Re: putting something into single quotes in a bash script

2011-02-02 Thread Petrus de Calguarium
Patrick O'Callaghan wrote: > Of course they do. They are entirely different things. The first one is > for quoting strings which might contain Shell metacharacters. The second > is to execute a command and insert its output as the value of the > string, e.g. > > ls -l `find ~/.kde` > > This is e

Re: putting something into single quotes in a bash script

2011-02-02 Thread Joe Zeff
On 02/02/2011 01:32 PM, Patrick O'Callaghan wrote: > I recommend reading up on bash to fully understand this last part. It's > not trivial to explain. You might find what you need at http://tldp.org/LDP/abs/html/ -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscri

Re: putting something into single quotes in a bash script

2011-02-02 Thread g
On 02/02/2011 09:32 PM, Patrick O'Callaghan wrote: <> > I recommend reading up on bash to fully understand this last part. It's > not trivial to explain. or to understand. -- peace out. tc.hago, g . [just for you, poc. (GBWG)] signature.asc Description: OpenPGP digital signature -- us

Re: putting something into single quotes in a bash script

2011-02-02 Thread Patrick O'Callaghan
On Wed, 2011-02-02 at 13:43 -0700, Petrus de Calguarium wrote: > What is the difference in a bash script when one places something between > single quotes: > > - using the apostrophe, ' > - using the accent grave, ` > > ? > > Eg., > > ps -fu 'whoami' > ps -fu `whoami` > > They produce entirel

Re: putting something into single quotes in a bash script

2011-02-02 Thread g
On 02/02/2011 08:43 PM, Petrus de Calguarium wrote: > What is the difference in a bash script when one places something between > single quotes: single/double quotes and grave are something i tend to forget sometimes. i find it quicker, easier and refreshing to run man bash the search on th

Re: putting something into single quotes in a bash script

2011-02-02 Thread Michael Cronenworth
Petrus de Calguarium wrote: > ps -fu 'whoami' This just passes the text whoami as a group argument with no execution of whoami. ps -fu whoami ^ Equivalent command > ps -fu `whoami` The accent graves tell bash to execute the text inside them. The whoami command will be executed then passed to

putting something into single quotes in a bash script

2011-02-02 Thread Petrus de Calguarium
What is the difference in a bash script when one places something between single quotes: - using the apostrophe, ' - using the accent grave, ` ? Eg., ps -fu 'whoami' ps -fu `whoami` They produce entirely different results. There are many other places where one might wish to put a command, va