6

shell script for file manipulation

view full story
linux-howto

http://www.ubuntux.org – hi,i am using ubuntu and generally use VI editor to write shell scripts. i am required to write a shell script to copy the text of one file(a text file) into another file.While the script executes, the shell shall ask the user to input the source filename and destination filename (both these files have been initially created by using "cat" command in the terminal). after the script completes executing, the destination file should have same text as the source file. please explain how to accomplish this task and i am new to linux scripting though i have some programming experiance in C. please don't use complicated syntax and procedures (all the forums i checked out till now did exactly that), i just need the basic and simple script to do the simple job. thanx in advance. (Distributions)