From 15aa13e2ad6fb40bc785cd945e66a32fe8e1d4b2 Mon Sep 17 00:00:00 2001 From: daryl Date: Wed, 23 Nov 2022 13:15:40 +1030 Subject: [PATCH] Add one liners --- bash/one_liners.bash | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bash/one_liners.bash diff --git a/bash/one_liners.bash b/bash/one_liners.bash new file mode 100644 index 0000000..c5a0da0 --- /dev/null +++ b/bash/one_liners.bash @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# How to strip leading "./" in "find" +find -type f -printf '%P\n' +# From find manual: %P File's name with the name of the command line argument under which it was found removed. +