Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. capture=$(echo $line | sed -r 's/.* [0-9]+:[0-9]+:[0-9]+:[0-9]+\s+(sd[a-z]+)\s+[0-9]+:[0-9]+.*/\1/')
  2. if [[ $capture =~ sd[[:upper:]]+ ]]; then
  3. echo "d"
  4. echo $capture
  5. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement