BreadCrumbs: Sed Command
Sed Command
From Luke Jackson
Revision as of 23:20, 5 December 2007; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Examples
Remove all characters except digits:
echo "m31uk3_1184329500.jpg" | sed 's/[^[:digit:]]//g'