![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can the search and replace can be done interactively | aks__ | Shell Programming and Scripting | 2 | 06-04-2008 06:44 AM |
| How to run a new shell with copy of current shell declarations? | alex_5161 | Shell Programming and Scripting | 9 | 06-02-2008 02:48 AM |
| Zip and password protect non-interactively | savage66 | UNIX for Dummies Questions & Answers | 1 | 05-06-2008 10:00 AM |
| How to copy from standard input | lalelle | Shell Programming and Scripting | 2 | 08-24-2007 04:36 AM |
| Retrieving output interactively | fidodido | UNIX for Dummies Questions & Answers | 8 | 03-23-2006 01:34 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Copy interactively - shell input
Hello,
I am making a script to copy files interactively from one directory to another using the "i" option because I dont want to overwrite the files. cp -i *.html ./../otherdir/ cp: do you want to overwrite (y/n) ? I used cp -i *.html ./../otherdir/ ans='n' read $ans But the script is unable to pickup the value as "n" as a response to the shell output - cp: do you want to overwrite (y/n) ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|