how to read text file using bash script
hi all
I am using Xdialog. I am giving you details what i want to do. Xdialog --title "login window" \ --3inputsbox "" 0 0 \ "Username" "" \ "Password" "" \ "phone number" "9100" 2> /tmp/tmp.txt I am taking input from user and store in a file. But I want to store every input in three different variable. How can I do that? Regards KKPal |
Download a copy of the Absolute Bash-scripting Guide. It should have enough instruction with examples.
|
Quote:
Code:
name=$(cut -f1 -d/ /tmp/tmp.txt) the temporary file, though, in case more than one person were to use the system. If the user is NOT the same person (numerical uid) they won't be able to overwrite the file. Cheers, Tink |
All times are GMT -5. The time now is 06:39 PM. |