File: duplicate.sh

package info (click to toggle)
gnome-commander 1.18.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,796 kB
  • sloc: cpp: 44,542; xml: 3,929; lex: 600; sh: 80; makefile: 15
file content (13 lines) | stat: -rwxr-xr-x 201 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#name: Duplicate
#term: true

# Written by puux <puuxmine@gmail.com> 2016
# Part of gnome-commander script plug-in system

for n in "$@"
do
  cp "$n" "1_$n"
  echo "cp \"$n\" \"1_$n\""
done