我想把每个其中的文件名保存下来,http://ubuntu.dormforce.net/ubuntu/pool ... ntu1_all.d
http://ubuntu.dormforce.net/ubuntu/pool ... u2_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... -1_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... 03_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... u1_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... -2_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... -2_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... 25_all.deb
http://ubuntu.dormforce.net/ubuntu/pool ... 3_all./deb
cat 1.txt | sed -n "/[\/]+[^\/]*.*deb$/p" >2.txt
我觉的正则表达式的意思是:以/开头但中间不能含/的任意字符以deb结尾,但没有任何输出
我不知道语句哪里有问题,请达人指教