|
From: Aks on 20 Jun 2008 04:14 Hi friends, I want to read a text from a file and on the base of that i want to do some thing. Can anyone guid me how to do that as i am very new to unix environment. Any suggestion will be highly appericable. regards,
From: Janis Papanagnou on 20 Jun 2008 04:27 Aks wrote: > Hi friends, > > I want to read a text from a file and on the base of that i want to do > some thing. Can anyone guid me how to do that as i am very new to unix > environment. while read -r a_text do case ${a_text} in choice_1) do_something_1 ;; choice_2) do_something_2 ;; *) handle_rest ;; esac done < a_file Janis > > Any suggestion will be highly appericable. > > regards,
|
Pages: 1 Prev: lady crocs coach chanel lv prada UGG versace sandals for sale Next: Best way to Collect Log |