Computing.Net > Forums > Programming > prompt filename after every copy

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.

prompt filename after every copy

Reply to Message Icon

Name: andyizhere
Date: April 22, 2009 at 01:41:01 Pacific
OS: Linux
Subcategory: C/C++
Comment:

Hey! I was trying to write a script to copy contents of one dir to another.

src_path=/home/admin/ashish/source
tgt_path=/home/admin/ashish/destination
if [ ! -d ${tgt_path} ];
then
mkdir -p ${tgt_path}
#mkdir -p ashish/destination
fi
cp -v ${src_path}/* ${tgt_path}/

This i have done. Now if i want a prompt everytime saying the filename after that file that has been copied. how to do it?



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 Programming Forum Home


Sponsored links

Ads by Google


Results for: prompt filename after every copy

Simple Batch www.computing.net/answers/programming/simple-batch/14013.html

Save excel worksheets to single txt www.computing.net/answers/programming/save-excel-worksheets-to-single-txt/14855.html

want computer to open on start up www.computing.net/answers/programming/want-computer-to-open-on-start-up-/16418.html