David vd Geer Inhuur tbv IPlib wrote: > Hi, > > I know how to delete 1 or more whitespaces at in a line using : > > while <IN> { > s/\s+//g; > } > close IN; > > #----------------------------- > > But How do I specific delete 1 or more whitespaces at the end of the line ? > using : > > while <IN> { > s/$\s+//g;
You are looking for s/\s+$//; $ is the metacharacter to match at the end of the line or before the newline at the end. The /g is also not necessary > > } > close IN; > > Didn't work. Does anyone have the solution for me ?? > > Regs David > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]