Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "test123x19853" | awk 'match($0,/[a-zA-Z]+[0-9]+/){print substr($0,RSTART,RLENGTH)}'
- $ echo "test123x19853"|grep -o "test.{1,4}"
- test123x
- $ echo "test123x19853"|grep -oP "test.{1,4}"
- test123x
Add Comment
Please, Sign In to add comment