New answers tagged

1

Removing ~/.local/share/mime/packages/x-wine-extension-*, specifically ~/.local/share/mime/packages/x-wine-extension-pyw.xml, fixed the issue.


1

As %u is expanded to the current directory, you can do something like this (it works in my testing): Create an executable script with the following content: #!/bin/bash c=0 for f in "$1/"new*.txt; do if [[ -f "$f" ]]; then ((c++)) fi done f="$1/new-$c.txt" touch "$f" kate "$f" Then in your ...


1

I've combined multiple answers into my version: find -type f -exec \ sh -c 'head -n1 "$1" | grep -q "^#![[:blank:]]*/bin/sh"' _ {} \; \ -print Taken from neuron it uses find -type f -exec to get all files and execute an command on it. Taken from user218374 it uses head -n1 to get only the first line and use grep -q to get only the RC....


0

sudo apt autoremove will not break anything or remove dependencies that are required by other packages. Running it with the extra argument for mousepad, sudo apt autoremove mousepad will only add mousepad & it's unique dependencies to the list of orphans to be removed.


0

This is also called paginating text. You can add a page break character with pr: pr -f -h "" -l <num-lines-per-page> text.txt > paginated_text.txt or insert the form feed character directly. In emacs this is done with: C-q C-l Relevant sources: https://www.unix.com/unix-for-dummies-questions-and-answers/859-split-text-file-pages.html ...


Top 50 recent answers are included