|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
newbie help /bin/sh read
#!/bin/sh
echo "Move filename to this" read filename mv filename $filename exit i want to be able to do this Move filename to this what ever this is.txt but i cant do it...all i can do is move it to file.txt anyway to get around this? |
|
#2
|
|||
|
|||
|
RE: newbie help /bin/sh read
I tried this out and it worked fine...
Code:
#!/bin/sh clear echo "Enter name of file to move:" read source echo "Enter destination path and file name:" read target if(mv $source $target) then echo $source" was successfully moved to "$target else echo "There was a problem..." fi exit |
|
#3
|
|||
|
|||
|
RE: newbie help /bin/sh read
use double quotes around the filenames.
Code:
#!/bin/sh echo "Move filename to this" read filename mv "filename" "$filename" exit |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > newbie help /bin/sh read |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|