Google Answers Logo
View Question
 
Q: unix operating system ( No Answer,   4 Comments )
Question  
Subject: unix operating system
Category: Computers > Operating Systems
Asked by: vpb-ga
List Price: $3.00
Posted: 23 Dec 2002 13:04 PST
Expires: 16 Jan 2003 03:52 PST
Question ID: 132835
Explain with suitable examples the facilities provided by any 
widely available named shell of your own choosing  to support:

(a) command substitution    
(b) filename substitution      
(c) shell script production

Request for Question Clarification by maniac-ga on 24 Dec 2002 12:49 PST
Hello Vpb,

As mentioned in a comment, command substitution is 'alias'.

Filename substitution is likely more commonly described as "filename
expansion" or globbing, the use of starnames to get a sequence of file
names.

However, do you have a better definition of "shell script production"?
"producing" a shell script is usually done by a person. The only thing
the shell does is to allow you to read a file as a series of commands.

With the clarification I should be able to produce a suitable answer.
  --Maniac

Clarification of Question by vpb-ga on 25 Dec 2002 15:26 PST
hi Maniac  Happy Chirstmas                      Question ID: 132835  
 
i haven't got any better definition i think you can choose cat command
you know it will display contents of file and contents of line in the
file so on...
do it your best and easy to under stand that's it  no more complaints 
 
 
                     thank you
Answer  
There is no answer at this time.

Comments  
Subject: Re: unix operating system
From: zhiwenchong-ga on 23 Dec 2002 13:40 PST
 
I use bash. briefly:

a) command substitution: 'alias'
b) filename substitution: symbolic links. 'ln -s'
c) shell script production: umm... 'vi script.sh' ?
Subject: Re: unix operating system
From: vpb-ga on 24 Dec 2002 04:51 PST
 
hi

why don't you use ksh, Linux is usually bundled with the 'Bourne again
shell' (bash).so use ksh.


                   thank you
Subject: Re: unix operating system
From: vpb-ga on 25 Dec 2002 15:25 PST
 
hi Maniac  Happy Chirstmas                      Question ID: 132835 

i haven't got any better definition i think you can choose cat command
you know it will display contents of file and contents of line in the
file so on...
do it your best and easy to under stand that's it  no more complaints


                     thank you
Subject: Re: unix operating system
From: zhiwenchong-ga on 26 Dec 2002 14:21 PST
 
Oh, well, I only use bash because it's there. There may be better
shells out there but I like bash because it's familiar. Even on BSD
machines I set my default shell to bash.

I don't write sh scripts anymore. I write my scripts in perl -- there
are not too many things that i can do with shell scripts that i can't
with perl. Besides, perl replaces sed/awk in one line.

As for filename substitutions, I'm sorry for the boo-boo. ln
-s...pah... what was I thinking?!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy