[gnome-commander] Script examples
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Script examples
- Date: Mon, 11 Jul 2016 20:58:30 +0000 (UTC)
commit f8ac225fe891ddccf24040d55360d41690ad7a77
Author: Puux <puuxmine gmail com>
Date: Mon Jul 11 00:16:44 2016 +0300
Script examples
gcmd-scripts/duplicate.sh | 11 +++++++++++
gcmd-scripts/filelist.sh | 15 +++++++++++++++
gcmd-scripts/tar.sh | 8 ++++++++
gcmd-scripts/trash.sh | 11 +++++++++++
4 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/gcmd-scripts/duplicate.sh b/gcmd-scripts/duplicate.sh
new file mode 100755
index 0000000..f9b41c0
--- /dev/null
+++ b/gcmd-scripts/duplicate.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#name: Duplicate
+
+# Written by puux <puuxmine gmail com> 2016
+# Part of gnome-commander script plug-in system
+
+for n in $@
+do
+ cp $n "1_$n"
+done
+
diff --git a/gcmd-scripts/filelist.sh b/gcmd-scripts/filelist.sh
new file mode 100755
index 0000000..354074a
--- /dev/null
+++ b/gcmd-scripts/filelist.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+#name: File list
+#term: true
+
+# Written by puux <puuxmine gmail com> 2016
+# Part of gnome-commander script plug-in system
+
+echo "Enter file name:"
+read list
+
+for n in $@
+do
+ echo "$n" >> $list.txt
+done
+
diff --git a/gcmd-scripts/tar.sh b/gcmd-scripts/tar.sh
new file mode 100755
index 0000000..b8d7d4d
--- /dev/null
+++ b/gcmd-scripts/tar.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+#name: *.tar.gz
+
+# Written by puux <puuxmine gmail com> 2016
+# Part of gnome-commander script plug-in system
+
+tar -cf archive.tar.gz $@ -z
+
diff --git a/gcmd-scripts/trash.sh b/gcmd-scripts/trash.sh
new file mode 100755
index 0000000..318fa51
--- /dev/null
+++ b/gcmd-scripts/trash.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#name: Move to trash
+
+# Written by puux <puuxmine gmail com> 2016
+# Part of gnome-commander script plug-in system
+
+for n in $@
+do
+ mv $n ~/.local/share/Trash/
+done
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]