1 Nov
2008
1 Nov
'08
04:22
David C. Rankin wrote:
Listmates,
I'm stumped on another simple BASH problem. How do I read the last line of a file with a while loop without requiring a blank line at the end of the file? Simple example I'm stuck on:
{ while read alias url; do echo -e "${alias}\t${url}" done } < ~/linux/scripts/config/repos
Remove the curly brackets and everything runs fine on my system. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org