Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are they really simple to program using unix shell scripting ??

Status
Not open for further replies.

sanjeevkm

Programmer
Mar 19, 2001
4
IN
HI!
I feel that I know some unix shell scripting.But the following are two shell scripting problems, first seemed to me very easy but :-( I could not solve it !! I will be really thankful if somebody cud solve it for me.
However hints are welcome but I am interested in full solution(Please use korn shell or bourne shell standards).
1.Write a shell program to check whether the given string is a palindrome or not.

2.Write a shell program to sort the given list of number in ascending order using bubble sort Method.

Thanx a lot in advance
Sanjeev
 
If I would put the Qs like this can anybody help me ..
1.Given a string , using shell script how will you manipulate it ie access it's individual characters ??
2.Can you define an array of integers in Unix shell scripts like in C/C++ ??
Sanjeev
 
Sanjeev,

We're happy to help with your unix problems, whether they're college or work related -- but we're not happy to do them for you. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top