File: a.sh

package info (click to toggle)
usbrip 2.2.2%2Bgit20221003.5093c84-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,088 kB
  • sloc: python: 2,149; sh: 223; makefile: 5
file content (1 line) | stat: -rw-r--r-- 352 bytes parent folder | download
1
o=`journalctl -o short-iso-precise|grep -iw usb|grep -iwe 'Product:\|Manufacturer:\|SerialNumber:\|USB disconnect'|awk '{$3=" ";print $0}'|sed s/"   "/" "/`;p=`echo "$o"|cut -d'.' -f1`;echo "$o"|while read -r line;do c=`echo "$line"|awk '{print $1}'|cut -d'.' -f1`;if [[ "$c" != "$p" ]];then p="$c";echo;fi;echo "$c `echo $line|cut -d' ' -f2-100`";done