Search Results

Search: Posts Made By: gameinn
14,808
Posted By gameinn
Sorry, I do not understand how I would implement...
Sorry, I do not understand how I would implement cp and cat in the one line? I tried


s) cp -iv ~/files/* ~/backups/oldfiles/ > cat -i ~/logs/logfile.log;;It gives me a not a directory message...
14,808
Posted By gameinn
Yes, sorry. I worked this out myself but internet...
Yes, sorry. I worked this out myself but internet was down so could not reply. All working fine now. :)

Out of curiosity, is there a quick way of asking the user if they want to overwrite the log...
14,808
Posted By gameinn
If I take away the second ; it now gives me ...
If I take away the second ; it now gives me

"syntax error near unexpected token ')'

My actual code is,

s) cp -i -v ~/files/* ~/backups/oldfiles/; > ~/logs/logfile.log

^ It is part of a...
14,808
Posted By gameinn
cp -v command usage?
I am trying to output a log file from cp usage. I think this can be achieved. In my code I have this.

cp -i -v ~/files/* ~/backups/oldfiles/;; > ~/logs/logfile.logThe error I get is "syntax error...
1,618
Posted By gameinn
Hi. I used your mkdir -p ~/wp ~/ss ~/pics ...
Hi. I used your

mkdir -p ~/wp ~/ss ~/pics

as I understood it. I don't however understand that case statement, particularly this area.


[yY] | [yY][Ee][Ss]

I also guess you think I...
1,618
Posted By gameinn
Too many if statements..
Hello. I am new here and new to scripting. I used to have a very basic script that worked for simple backup/restore of files. I have expanded it and well... I have ended up with a complete mess. It...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy