954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

"shell scripting tutorials?"

Can anyone tell me where to find shell script tutorial

ojgibba
Newbie Poster
1 post since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

no real tutorials that i know of. you can always hit sun.com and look in the
admin resources for script examples. or pick up unix in a nutshell from borders or
amazon.
or you can just search google for shell or scripts and figure it out from the learn by
butcher method. there are other how-to and shell specific books for each type
out there to help get you going.

steal,
butcher,
script kiddie,
enjoy

Cain
Posting Whiz in Training
298 posts since Aug 2004
Reputation Points: 18
Solved Threads: 2
 
Can anyone tell me where to find shell script tutorial

What type of language are you looking to learn? Heck, what OS are you looking to script?

There are so many different languages and possibilities, "shell scripting" becomes a pretty vague term. Let us know what you're wanting to accomplish, and we might be able to recommend something for you.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

Ok guys, what if I want to do feed the script with a text file in order to find key words and compare between lines, either on windows or linux?


Thanx,
Rashed

Rashed
Newbie Poster
1 post since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

on *IX:
man awk

vgersh99
Newbie Poster
21 posts since Nov 2004
Reputation Points: 16
Solved Threads: 0
 
steve-parker.or
Newbie Poster
3 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Ok guys, what if I want to do feed the script with a text file in order to find key words and compare between lines, either on windows or linux?

Thanx, Rashed

Please don't piggyback questions on other people's threads. When you do, you don't get the attention that you should get for your question.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

You can feed a text file to a shell script in various ways - typical syntax is:

cat somefile.txt | somescript.sh
or
somescript.sh < somefile.txt
or
cat somefile.txt | somescript.sh -
or
somescript.sh -f somefile.txt

It depends on how the script was written - not everything is 100% consistent.

steve-parker.or
Newbie Poster
3 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You