神奇的脚本1

cd /dev/.udev/ 

ls

tmp-rules--test

***********************************************
for file in /dev/.udev/tmp-rules--*;do
dest=${file##*tmp-rules--}
echo $dest
done

原文地址:https://www.cnblogs.com/seasonsstory/p/3423224.html