sed: Remove All Except Digits (Numbers) From Input last updated August 19, 2009 in Categories BASH Shell, CentOS, Debian / Ubuntu, FreeBSD, Linux, RedHat and Friends, Suse, Ubuntu Linux, UNIXHow do I remove all (text, special characters, white spaces, tabs etc) from my text file (input) except numbers (digits) using sed command?