[LEFT]Hello everybody
I made code to move some files to another place for example(I moved MM file TO BIN folder ) and the MM path I put it in different file e.g(0:HOME/unixstuff/MM) so my question is who I can separate the path line and use the number 0: and MM as parameter because if I want to move mm file back to original place and I use number before the path line because might I have two files same name in different directory.
I think to separate it I use cat commend but i am not sure ????
thanks [/LEFT]
cut -d: -f2 infile
Excuse me quirkasaurus.
How can put in if condition or for loop to test it before I move it back because I have more files?
And in file path, I have to put any cod or not?
this is one file path which will put it in path file(echo 2009:$i:$(pwd)/$1 >> $HOME/tmp)
will show me(2009:0:HOME/unixstuff/MM )
and another file will show me \(2009:1:HOME/unixstuff/dd \)
.
.
.
thanks
---------- Post updated 12-04-09 at 02:12 PM ---------- Previous update was 12-03-09 at 03:00 PM ----------
any help please