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
text manipulation injeti Shell Programming and Scripting 11 06-05-2008 10:42 AM
Text file manipulation Ezy UNIX for Dummies Questions & Answers 4 02-25-2008 01:15 PM
Text Manipulation. Icepick Shell Programming and Scripting 4 02-25-2008 04:18 AM
Need help on installing an EASY to use and easy to install command line text editor EugeneG UNIX for Dummies Questions & Answers 4 07-16-2007 11:53 AM
Text file manipulation svannala UNIX for Dummies Questions & Answers 5 01-20-2006 07:01 PM

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 07-01-2002
champion champion is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 64
shell script : text manipulation (easy quesiton)

hi,

i am newbie in shell script

i want to do the following:

given a filename like abc.txt

i want to change the name to abc.properties

how to do it? pls enligthen me.

thanks
  #2 (permalink)  
Old 07-01-2002
ladwig
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Hi,
just try
mv abc.txt abc.hugo
mv transfers abc.txt in file abc.hugo and abc.txt will be deleted.
  #3 (permalink)  
Old 07-01-2002
champion champion is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 64
oh oh, sorry for not being clear.

actually i want to execute a command like cmd source-file dest-file.

so given a filename, i want to somehow make a new dest-file from the source file.

so mv cmd will not work. it has to be a text manipulation.

pls help me.

thank u
  #4 (permalink)  
Old 07-01-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Refer to your other thread in the Dummies section there's some info there ....and for future reference only post in one forum - thanks.

P.S... a search for 'change extension' would have provided you with your answer too!search
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 09:15 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