SHARE
TWEET

Untitled

a guest Feb 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat filename | sed 's|[^0-9]||g'
  2.    
  3. cat filename | sed 's|[^0-9]||g' | sort | uniq
  4.    
  5. while read line; do
  6.     echo ${line//[^0-9]/};
  7. done < filename
  8.    
  9. cat filename | sed 's|[^0-9]*||'
  10.    
  11. grep -Po "[0-9]*(..*)?" filename
  12.    
  13. cat filename | tr -d [:alpha:]
  14.    
  15. grep -o '[0-9]*' filenames
  16.    
  17. sed 's/[^0-9]*//' filename
  18.    
  19. echo filename123onetwothree.999 | sed 's/.*[^0-9]([0-9]*)$/1/'
  20. 999
  21.    
  22. sed 's/.*[^[:digit:]]([[:digit:]]*)$/1/' file
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top