add search and destroy command
This commit is contained in:
parent
d4a1b590a0
commit
20a1af6e5a
21
README.md
21
README.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue