I've written a bash script that will do a backup, but it's written to deploy on many computers
how can i echo the output of "ls /Volumes/" so that I can print it before I ask for the volume name
thanks
I've written a bash script that will do a backup, but it's written to deploy on many computers
how can i echo the output of "ls /Volumes/" so that I can print it before I ask for the volume name
thanks
Last edited by syxbit; July 17th, 2007 at 12:38 AM.
Thinkpad T400 | 14.1" LED Screen | Core 2 Duo T9400 | 3GB DDR3 | 320GB WD HD | intel 5300 | ATI 3470 & Intel 4500 GFX
i7 920 | ASUS P6T DLX | 6GB DDR3 | Nvidia GTX 260 (216)
I don't understand - ls already echo's its output to the screen.
What aren't you telling us ?
MrC
Is this what you are looking for?
Code:#!/bin/bash ls /Volumes/ echo -n "Choose a volume: " read volume echo $volume
yea, sorry I wasn't clear
your comments all helped too
thanks
Thinkpad T400 | 14.1" LED Screen | Core 2 Duo T9400 | 3GB DDR3 | 320GB WD HD | intel 5300 | ATI 3470 & Intel 4500 GFX
i7 920 | ASUS P6T DLX | 6GB DDR3 | Nvidia GTX 260 (216)
Bookmarks