BreadCrumbs: Sed Command

Sed Command

From Luke Jackson

Revision as of 23:21, 5 December 2007; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

Examples

Remove all characters except digits. Replace all characters except digits with null.:

echo "m31uk3_1184329500.jpg" | sed 's/[^[:digit:]]//g'
Personal tools