Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capture=$(echo $line | sed -r 's/.* [0-9]+:[0-9]+:[0-9]+:[0-9]+\s+(sd[a-z]+)\s+[0-9]+:[0-9]+.*/\1/')
- if [[ $capture =~ sd[[:upper:]]+ ]]; then
- echo "d"
- echo $capture
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement