The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Search, replace string in file1 with string from (lookup table) file2? gstuart Shell Programming and Scripting 9 06-08-2009 07:11 AM
Extracting a string from one file and searching the same string in other files mohancrr Shell Programming and Scripting 1 09-19-2007 04:17 AM
appending string to text file based on search string malaymaru Shell Programming and Scripting 1 06-09-2006 09:53 AM
sed problem - replacement string should be same length as matching string. amangeles Shell Programming and Scripting 4 01-11-2006 06:11 AM
Time & Date Manupulations vanand420 Shell Programming and Scripting 16 08-09-2005 05:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-01-2006
cutelucks cutelucks is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 4
String manupulations...

hiii
i need help with the string operations.i need to know how do we..
1.Copy a string s1 to string s0, then append string s2 to it.

2.Replace all occurrences of substring s2 with another substring s3 in the given string s1.here the lengths of s2 and s3 may not always be equal.

3.Locate the last occurrence of a substring s2(length is not always 1,may be 0 or more than one also..) in string s1.

4.Replace character escape sequences with their "C" values in a given string

5.Remove all the whitespaces in a string(like a=" nh lk "
  #2 (permalink)  
Old 11-01-2006
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
Please read the rules. Homework questions are not allowed.
  #3 (permalink)  
Old 11-24-2007
hackware hackware is offline
Banned
  
 

Join Date: Nov 2007
Location: San Martin, California, USA
Posts: 8
homework questions...

heh, sometimes, answers to "homework questions" could be very useful to others...

does working at home and having questions fall under the "no homework" rules...? ;-

Last edited by Neo; 12-20-2007 at 08:05 PM.. Reason: Removed Email and Banned User
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0