summaryrefslogtreecommitdiffhomepage
path: root/src/prj/mmv/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/prj/mmv/examples')
-rw-r--r--src/prj/mmv/examples/camel-to-snake.sh.html1
-rw-r--r--src/prj/mmv/examples/hyphens.sh.html1
-rw-r--r--src/prj/mmv/examples/i-flag.sh.html1
-rw-r--r--src/prj/mmv/examples/lowercase.sh.html1
-rw-r--r--src/prj/mmv/examples/number.sh.html2
-rw-r--r--src/prj/mmv/examples/swap.sh.html1
-rw-r--r--src/prj/mmv/examples/vipe.sh.html1
7 files changed, 8 insertions, 0 deletions
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 @@
+$ <span class="sh-fn">git</span> ls-files <span class="sh-str">'*.[ch]'</span> | <span class="sh-fn">mmv</span> sed <span class="sh-str">'s/[A-Z]/\L_&/g'</span>
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 @@
+$ <span class="sh-fn">ls</span> | <span class="sh-fn">mmv</span> 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 @@
+$ <span class="sh-fn">ls</span> --zero | <span class="sh-fn">mmv</span> -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 @@
+$ <span class="sh-fn">find</span> . -print0 | <span class="sh-fn">mmv</span> -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 @@
+$ <span class="sh-fn">ls</span> <span class="sh-str">'The Fellowship of the Ring.mp4'</span> … <span class="sh-str">'The Two Towers.mp4'</span> | \
+ <span class="sh-fn">mmv</span> awk <span class="sh-str">'{ gsub(" ", "-"); printf "%02d-%s", NR, tolower($0) }'</span>
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 @@
+$ <span class="sh-fn">ls</span> foo bar | <span class="sh-fn">mmv</span> 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 @@
+$ <span class="sh-fn">ls</span> | <span class="sh-fn">mmv</span> -0e vipe