replace file1.tgz with another version of the same file
Hi guys!!
i have a bash question.... i got the slackware folder with my builds of my favorites packages, in /tmp i create the new versions of that packages. theres is a way in bash to replace the new ones in /tmp with the old ones in /home/user/slackware?? something like..... in /tmp: mv -i package1.tgz /home/user/slackware | and somethin to replace the old version of the app with the new one thanx a lot guys |
I'm afraid I don't quite follow your question. Could you explain it in more detail please? Do you want to scan the entire directory and move files in bulk, or move individual files, for example? Perhaps you could show us the specific layout of your files, and what you want to do with them.
|
Quote:
After reading your post again, in one place you replace a "new" package with an "old" one but in the next paragraph you wabt to replace the "old" with the "new". Which way is it? I'm not familiar with slackware so are you using package to refer to an application (program)? If so, the command you gave (mv -i filename /destination) should give you the desired results. Tom |
the bash script will do:
move the foobar002.txz to some folder, and replace it with foobar001.txz in that folder, its like an update of package, not installing of course |
Sounds like you might want to look at the basename command.
|
mmmm i will do
|
i dont know how to do it........je
|
Can you tell us what you're having problems with please?
|
its done, moving and replacing.....hard work
thanx anyway |
All times are GMT -5. The time now is 05:11 PM. |