From ae34095f5c818577dc7223dbbbcde714d8ea3f11 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 27 Feb 2023 20:34:53 -0700 Subject: [PATCH] update TIKHTG with some basic find stuff --- blog/posts/guide_things_i_keep_having_to_google/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blog/posts/guide_things_i_keep_having_to_google/index.php b/blog/posts/guide_things_i_keep_having_to_google/index.php index 441843b..b585a70 100644 --- a/blog/posts/guide_things_i_keep_having_to_google/index.php +++ b/blog/posts/guide_things_i_keep_having_to_google/index.php @@ -71,6 +71,11 @@ sed "s/^a/b/"Require that a match be at the beginning of the line. sed "s/a$/b/"Require that a match be at the end of the line. sed "s/^a$/b/"Require that a match be both at the beginning and the end - in other words, require that a match be the entire line. +

find

+ findLists every file and directory in the current working directory + find /dirDoes the same for the directory you specify + find -name "foo"Only lists things with a matching name. * can be used as a wildcard. + find -exec command {} \;Runs command on everything found by find. {} is replaced by the output.

misc

xrandr --output <display name> --brightness <brightness>Janky software-side display brightness setting with xrandr wget "https://example.com/file.zip" -O temp.zip; unzip temp.zip; rm temp.zipBash one-liner to unzip a file from the internet to the current directory