Computing.Net > Forums > Unix > Unix file editing

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unix file editing

Reply to Message Icon

Name: Jinsonsanik
Date: January 4, 2009 at 21:11:29 Pacific
OS: AIX 64 Bit
CPU/Ram: intel
Product: Dell / 4
Subcategory: Software Problems
Comment:

I am reading a file where contain all the file names eg filenames.txt. each line of filenames.txt contains a name and i am creating different files using line1.txt etc. i want to change the name of the file with in the new created file . copied file may have a constant name like "abcdefg" i want change its like line1.txt. could someone can help me on this?



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: January 4, 2009 at 21:36:16 Pacific
Reply:

Sorry, but your question is not clear - at least not to me.


0

Response Number 2
Name: Jinsonsanik
Date: January 4, 2009 at 22:03:15 Pacific
Reply:

Sorry . I just want to replace a text in a file . eg 1.txt file contains a text like "abcde" i want to replace that with"ABCDE".this "ABCDE" going to be a variable in my shell script . could you please suggest me how to deal this ?


0

Response Number 3
Name: unixmen
Date: January 6, 2009 at 09:40:06 Pacific
Reply:

the best way is to use The Vi editor
with option to change any word abcd with ABCD

with this option : :%s/Warm/Cold/g


Regards
http://www/unixmen.net team


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Unix file editing

to see unix file system in windows www.computing.net/answers/unix/to-see-unix-file-system-in-windows/3206.html

problems with unix file system www.computing.net/answers/unix/problems-with-unix-file-system/7541.html

UNIX file system www.computing.net/answers/unix/unix-file-system/3086.html