LinuxQuestions.org
(
/questions/
)
-
Linux - Newbie
(
https://www.linuxquestions.org/questions/linux-newbie-8/
)
- -
Sed help
(
https://www.linuxquestions.org/questions/linux-newbie-8/sed-help-434552/
)
anticuchos
04-12-2006 01:43 PM
Sed help
Code:
echo testing.foo | sed 's/.*\.//'
How do I get it to do the opposite thing? To display 'testing' instead of 'foo'.
druuna
04-12-2006 02:00 PM
Hi,
echo testing.foo | sed 's/\..*//'
Hope this helps.
All times are GMT -5. The time now is
01:23 AM
.