söndag 5 april 2015

Linux - Debian Rename all Fucked up filenames from *.deb.FAILED.new.deb to *.deb


-------------------------------------------------------------------------------------------------------
root@jessie:/var/cache/apt/archives/partial# ls
xserver-xorg-video-neomagic_1%3a1.2.8-1+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-nouveau_1%3a1.0.11-1_amd64.deb.FAILED.new.deb
xserver-xorg-video-openchrome_1%3a0.3.3-1+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-qxl_0.1.1-2+b1_amd64.deb.FAILED.new.deb
xserver-xorg-video-r128_6.9.2-1+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-radeon_1%3a7.5.0-1_amd64.deb.FAILED.new.deb
xserver-xorg-video-savage_1%3a2.3.7-2+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-siliconmotion_1%3a1.7.7-2+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-sisusb_1%3a0.9.6-2+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-tdfx_1%3a1.4.5-1+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-trident_1%3a1.3.6-2+b2_amd64.deb.FAILED.new.deb
xserver-xorg-video-vesa_1%3a2.3.3-1+b3_amd64.deb.FAILED.new.deb
xserver-xorg-video-vmware_1%3a13.0.2-3.1_amd64.deb.FAILED.new.deb
-------------------------------------------------------------------------------------------------------
root@jessie:/var/cache/apt/archives/partial# rename 's/.deb.FAILED.new.deb/.deb/' *.deb
root@jessie:/var/cache/apt/archives/partial# ls
-------------------------------------------------------------------------------------------------------
xserver-xorg-video-neomagic_1%3a1.2.8-1+b2_amd64.deb
xserver-xorg-video-nouveau_1%3a1.0.11-1_amd64.deb
xserver-xorg-video-openchrome_1%3a0.3.3-1+b2_amd64.deb
xserver-xorg-video-qxl_0.1.1-2+b1_amd64.deb
xserver-xorg-video-r128_6.9.2-1+b2_amd64.deb
xserver-xorg-video-radeon_1%3a7.5.0-1_amd64.deb
xserver-xorg-video-savage_1%3a2.3.7-2+b2_amd64.deb
xserver-xorg-video-siliconmotion_1%3a1.7.7-2+b2_amd64.deb
xserver-xorg-video-sisusb_1%3a0.9.6-2+b2_amd64.deb
xserver-xorg-video-tdfx_1%3a1.4.5-1+b2_amd64.deb
xserver-xorg-video-trident_1%3a1.3.6-2+b2_amd64.deb
xserver-xorg-video-vesa_1%3a2.3.3-1+b3_amd64.deb
xserver-xorg-video-vmware_1%3a13.0.2-3.1_amd64.deb
-------------------------------------------------------------------------------------------------------
hynten@speed-mailer.com

Inga kommentarer: