Guest User

Untitled

a guest
Jan 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. echo "test123x19853" | awk 'match($0,/[a-zA-Z]+[0-9]+/){print substr($0,RSTART,RLENGTH)}'
  2.  
  3. $ echo "test123x19853"|grep -o "test.{1,4}"
  4. test123x
  5.  
  6. $ echo "test123x19853"|grep -oP "test.{1,4}"
  7. test123x
Add Comment
Please, Sign In to add comment