proving git release script isn't busted
[feisty_meow.git] / scripts / files / list_non_dupes.sh
1 #!/bin/bash
2
3 #header here!
4
5 # lists the files in this (the current) directory that have different names
6 # than the files in the directory passed as the first (and only) parameter.
7
8 list_dir=$1
9 if [ -z "$list_dir" ]; then
10   echo "list_non_dupes"
11   echo ""
12   echo "This program requires a single parameter, which is a directory name."
13   echo "The files in the current directory will be listed to standard output"
14   echo "if a file in the user-specified directory exists with the same name."
15   exit 1;
16 fi
17
18 for i in *; do
19   if [ ! -f "$list_dir/$i" ]; then
20     echo "$i"
21   fi
22 done
23