The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
How to replace a character in the file? ntgobinath Shell Programming and Scripting 2 06-04-2008 03:48 PM
How to replace a character in a file preethgideon Shell Programming and Scripting 6 08-30-2006 06:19 PM
extract perticular lines and make them into speadsheet mskcc Shell Programming and Scripting 4 10-04-2005 04:09 PM
How would you replace the n character in a file with some xyz? JosephGerard UNIX for Dummies Questions & Answers 2 07-21-2005 08:46 AM
How would I replace the 9th character of every line in a file? LordJezo Shell Programming and Scripting 5 09-01-2004 11:51 AM

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

Join Date: Dec 2007
Posts: 14
Replace a perticular character of all lines of a file

Hi all,

I am new to UNIX, so sorry if my question seem stupid to u.

well i want to replace the first character of first 30 lines of a file, only if the first character is h.

and

in anothe script i want to replace a particular string/character say hello/h of a file.Condition: It should replace all Hello/h in the first line where it is found and after that it should stop.

Thanks!
  #2 (permalink)  
Old 12-11-2007
abovais abovais is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 14
hey experts,

please give the solution!
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 01:36 PM.


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