1 2 3
#!/bin/bash rm -fv /boot/{config,System.map,vmlinuz}*.old for i in /boot/{config,System.map,vmlinuz}* | grep -v $(uname -r)