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!

[color red]bubble sort and String Manip using unix shell

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
 
Are you just asking people to write solutions to your assignments? 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.
 
HI! Mike,
:) I am in job as software engineer.So no Qs of solution of Assignment !! I put it in Qs form just to form a concrete Qs
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++ ??
Mike !! It will be really nice if u could give even some hint and help me.
Sanjeev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top