[Cocoadialog-users] bash script example for inputbox or standard-inputbox?
Status: Beta
Brought to you by:
sporkstorms
From: Brad S. <sc...@ya...> - 2005-03-01 18:01:55
|
I haven't been able to find anything in this mailing list, the documentation, or on the web about setting variables in a shell script through user input. I'd like to be able to take user input via an inputbox or standard-inputbox in a shell script and set a variable. Can anyone explain to me how to do this? I was able to use the Perl examples for a standard-inputbox and inputbox to set a variable, but here's my problem. The variable is set, but the first line of the variable has the number of the button that was pressed and then the input data (the data I really care about) is stuck on the second line of the variable. How do I set the variable so that just the input data is contained? Does the shell have anyway to split data up, like Perl does? Maybe I need to use pipes like a previous poster mentioned... Maybe I need to look at more shell examples on the web? Thanks! Brad |