Computing.Net > Forums > Unix > script to move file

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.

script to move file

Reply to Message Icon

Name: george Zhou
Date: November 21, 2002 at 11:22:04 Pacific
OS: win 98
CPU/Ram: PIII/256
Comment:

Would you please help me write a script to move file between dirs? I am new to unix. But I need this for my work. The script should check id and pw. thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: November 21, 2002 at 19:12:21 Pacific
Reply:

What sort of authentication check do you need? Are you talking about a suid script that assues super user authority to move files to directories owned by other users ?

@!/bin/sh
mv $1 $2
--------------
call the script with the first parameter being the file name and the second being the target directory.


0
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: script to move file

Moving files to Mainframe system www.computing.net/answers/unix/moving-files-to-mainframe-system/7147.html

How to move files from one dir to a www.computing.net/answers/unix/how-to-move-files-from-one-dir-to-a/8159.html

script to change file names www.computing.net/answers/unix/script-to-change-file-names/8327.html