[egrep] search USB mount to which /dev
Create a file test
The content of test
this line has whitespace
thislinehavewhitespace
egrep [[:space:]] test
this line has whitespace
egrep [^[:space:]] test
this line has whitespace
thislinehavewhitespace
egrep "[^[:space:]]+[[:space:]]+/media/usb[[:space:]]+" /proc/mounts
/dev/sde1 /media/usb ext3 rw,nosuid,nodev,relatime,errors=continue,data=ordered 0 0
0 意見:
張貼留言