![]() |
Basic I/O
How do you ask for user input in BaSH?
I was wondering because I am trying to make a file sorter for myself, and I want the script to ask the user what directory that it want's me to sort. |
:
echo -n "Enter directory name " |
Thanks, that's what I needed!
|
...but the joy of Unix is using pipelines;
:
$ ls | sort |
hah, the real joy is throwing in some parameters...
$ ls -lastr | sort :) |
| All times are GMT -5. The time now is 3:45 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC