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
Perl: Search for string on line then search and replace text Crypto Shell Programming and Scripting 4 01-04-2008 10:24 AM
Need to replace all occurences of a search string using sed mjs3221 Shell Programming and Scripting 2 12-07-2006 02:09 AM
String Search & Replace IwishIknewC UNIX for Dummies Questions & Answers 1 03-25-2006 06:28 AM
Search and replace string between 2 points whited05 Shell Programming and Scripting 3 10-11-2005 03:05 PM
string search replace krishna UNIX for Advanced & Expert Users 1 12-19-2001 01:49 PM

Reply
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 05-23-2009
allrise123 allrise123 is offline
Registered User
  
 

Join Date: May 2009
Posts: 9
Quote:
Originally Posted by vgersh99 View Post
Code:
#!/bin/ksh

while read current new x
do
   mv "${current}" "${new}"
done < /path/to/lookupFile
hi vgersh99,
could u solve my above query? thanks

Last edited by allrise123; 05-23-2009 at 07:26 PM..
  #2 (permalink)  
Old 06-08-2009
summer_cherry summer_cherry is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2007
Location: Beijing China
Posts: 1,088
Code:
nawk 'NR==FNR {
_[toupper($1)]=$2
next
}
NR!=FNR{
	printf("1 %s tf %s\n",_[toupper($1)],$2)
}' file1 file2
  #3 (permalink)  
Old 05-24-2009
devtakh devtakh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore
Posts: 514
Duplicate post:

Code:
sed 's|export mibs =\opt\mymibs\|export mibs =\opt\new_mibs\|g' export.txt

-Devaraj Takhellambam
Reply

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 07:56 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