add search and destroy command

This commit is contained in:
Greg Gauthier 2023-03-26 09:43:08 +00:00
parent d4a1b590a0
commit 20a1af6e5a
1 changed files with 20 additions and 1 deletions

View File

@ -1,2 +1,21 @@
# shell-commands
# shell-commands quick reference
Note: many of these command shortcuts have prerequisite command line tools installed, such as:
* [fd-find](https://github.com/sharkdp/fd)
* [ffmpeg](https://ffmpeg.org/download.html)
* [pandoc](https://github.com/jgm/pandoc)
This list is primarily for my own benefit, but if you can get some use out of it, feel free to copy it.
#### Search for Brave desktop icons, and remove them:
```
grep -L -i 'thing-inside-the-file' $(fd -H "^brave-(.*)-default\.desktop" ~)|xargs rm
```
This is because between Brave and Gnome, various duplicates get stored all over the place. eg:
```
gmgauthier@plato $ grep -L -i 'youtube' $(fd -0 -H "^brave-(.*)-default\.desktop" ~)
/home/gmgauthier/.gnome/apps/brave-cdbkgaenbacighhafdaakdmolegfebcf-Default.desktop
/home/gmgauthier/.local/share/applications/brave-cdbkgaenbacighhafdaakdmolegfebcf-Default.desktop
```