Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lsusb -v | awk '/iSerial/ {if ($2 == "3" || $2 == "2") {print $3}}'
- #!/bin/sh
- string="asd11ds"
- output=$(lsusb -v | awk '/iSerial/ && ($2 == "3" || $2 == "2")) {print $3}')
- echo $output
- if [[$output==$string]];then
- echo"the two string are the same/are different"
- fi
- output=$(lsusb -v | awk '/iSerial/ && ($2 == "3" || $2 == "2")) {print $3}')
- #!/usr/bin/env bash
- string="asd11ds"
- output=$(lsusb -v | awk '/iSerial/ && ($2 == "3" || $2 == "2")) {print $3}')
- echo $output
- if [[ "$output" == "$string" ]]; then
- echo "the two strings are same"
- else
- echo "the two strings are different"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement