User Tools

Site Tools


burim:bash:bash

https://bencane.com/2014/06/06/8-tips-for-creating-better-bash-scripts/

remove old files

find /path/to/files* -mtime +5 -exec rm {} \;

Headline

sed / awk / opkg

  • find packages installed asterisk15 and prepare the cmd for asterisk16 installation
opkg list_installed | grep asterisk | awk '{print $1}' | sed 's/^/opkg install /' | sed 's/asterisk15/asterisk16/'
burim/bash/bash.txt · Last modified: 2020/06/20 22:12 by burim

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki