Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie very very simple script

Status
Not open for further replies.

Murugs

Technical User
Jun 24, 2002
549
US
Hello All
My script contains something like this

............lines of code....
....
....cp /users/home/junk.txt /users/home/abc.txt
...line of code...

In the above script I need the user to input the path of the junk.txt file.

I modified the code to

............lines of code....
....
echo " Enter the path to junk.txt file"

Now how do I get the input from user and pass it to the cp command.

Regards
MP
 
man read
man ckpath [if on Solaris] vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top