Monday, May 30, 2022

xargsコマンドのオプション -n[number]

findコマンドとxargsの組み合わせで,-n[number]オプションの使用のメモ... xargsコマンドに-n1を指定すると1つの引数だけを指定したコマンド(下記のecho)に渡すようになる
$ ls
fileA  fileB  fileC  fileD
$ find . -type f | xargs echo
./fileA ./fileC ./fileD ./fileB
$ find . -type f | xargs -n1  echo
./fileA
./fileC
./fileD
./fileB
$

Friday, May 20, 2022

Bring back taskbar to the default one after accidentally changed it in Lubuntu

Default lxpanel setting: /usr/share/lxpanel/profile/Lubuntu/panels/panel 

So just need to copy it to: ~/.config/lxpanel/Lubuntu/panels/panel