29 Dec
1999
29 Dec
'99
08:57
Hi, On Tue, Dec 28, 1999 at 18:36 -1000, George Toft wrote:
OK. I'm 10 points smarter (read Unix Shell Programming about regular expressions). Why did you make the replacement text \1 when . would do? $ echo "./top/001/abcdef.txt" |sed 's#.*\(\.\)#.#g' .txt $
OK, that's another 10 points for you ;-) While we're talking about simplification, one could also get away without the g: [sttr]/home/sttr> echo "./top/001/abcdef.txt" |sed 's#.*\.#.#' .txt Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/