From d5635e946e9df6f519ec8cf08cebfc35dbe6c788 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 15 Aug 2023 14:57:32 +0200 Subject: Add a post on ‘mmv’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/prj/mmv/examples/camel-to-snake.sh.html | 1 + src/prj/mmv/examples/hyphens.sh.html | 1 + src/prj/mmv/examples/i-flag.sh.html | 1 + src/prj/mmv/examples/lowercase.sh.html | 1 + src/prj/mmv/examples/number.sh.html | 2 ++ src/prj/mmv/examples/swap.sh.html | 1 + src/prj/mmv/examples/vipe.sh.html | 1 + 7 files changed, 8 insertions(+) create mode 100644 src/prj/mmv/examples/camel-to-snake.sh.html create mode 100644 src/prj/mmv/examples/hyphens.sh.html create mode 100644 src/prj/mmv/examples/i-flag.sh.html create mode 100644 src/prj/mmv/examples/lowercase.sh.html create mode 100644 src/prj/mmv/examples/number.sh.html create mode 100644 src/prj/mmv/examples/swap.sh.html create mode 100644 src/prj/mmv/examples/vipe.sh.html (limited to 'src/prj/mmv/examples') diff --git a/src/prj/mmv/examples/camel-to-snake.sh.html b/src/prj/mmv/examples/camel-to-snake.sh.html new file mode 100644 index 0000000..bd67492 --- /dev/null +++ b/src/prj/mmv/examples/camel-to-snake.sh.html @@ -0,0 +1 @@ +$ git ls-files '*.[ch]' | mmv sed 's/[A-Z]/\L_&/g' diff --git a/src/prj/mmv/examples/hyphens.sh.html b/src/prj/mmv/examples/hyphens.sh.html new file mode 100644 index 0000000..ca49946 --- /dev/null +++ b/src/prj/mmv/examples/hyphens.sh.html @@ -0,0 +1 @@ +$ ls | mmv tr ' ' '-' diff --git a/src/prj/mmv/examples/i-flag.sh.html b/src/prj/mmv/examples/i-flag.sh.html new file mode 100644 index 0000000..c22c7c9 --- /dev/null +++ b/src/prj/mmv/examples/i-flag.sh.html @@ -0,0 +1 @@ +$ ls --zero | mmv -0i cmd diff --git a/src/prj/mmv/examples/lowercase.sh.html b/src/prj/mmv/examples/lowercase.sh.html new file mode 100644 index 0000000..84abb92 --- /dev/null +++ b/src/prj/mmv/examples/lowercase.sh.html @@ -0,0 +1 @@ +$ find . -print0 | mmv -0 tr A-Z a-z diff --git a/src/prj/mmv/examples/number.sh.html b/src/prj/mmv/examples/number.sh.html new file mode 100644 index 0000000..5e8e74a --- /dev/null +++ b/src/prj/mmv/examples/number.sh.html @@ -0,0 +1,2 @@ +$ ls 'The Fellowship of the Ring.mp4''The Two Towers.mp4' | \ + mmv awk '{ gsub(" ", "-"); printf "%02d-%s", NR, tolower($0) }' diff --git a/src/prj/mmv/examples/swap.sh.html b/src/prj/mmv/examples/swap.sh.html new file mode 100644 index 0000000..02c9c28 --- /dev/null +++ b/src/prj/mmv/examples/swap.sh.html @@ -0,0 +1 @@ +$ ls foo bar | mmv tac diff --git a/src/prj/mmv/examples/vipe.sh.html b/src/prj/mmv/examples/vipe.sh.html new file mode 100644 index 0000000..933039a --- /dev/null +++ b/src/prj/mmv/examples/vipe.sh.html @@ -0,0 +1 @@ +$ ls | mmv -0e vipe -- cgit v1.2.3