Browse Source

minor update

84582af
Dirk Alders 3 years ago
parent
commit
ae8ba45b84
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      ineach
  2. 1
    1
      init_homepath

eachsubdir → ineach View File

3
 
3
 
4
 BASEDIR=`pwd`
4
 BASEDIR=`pwd`
5
 
5
 
6
-usage="Execute a command in each subdirectory:\n\nUsage: $0 [-p | print subdir info] \"command\""
7
 
6
 
8
 # More safety, by turning some bugs into errors.
7
 # More safety, by turning some bugs into errors.
9
 # Without `errexit` you don’t need ! and can replace
8
 # Without `errexit` you don’t need ! and can replace
44
             shift
43
             shift
45
             ;;
44
             ;;
46
         -h|--help)
45
         -h|--help)
47
-            echo -e "Execute a command in each subdirectory:\n\nUsage: $0 [-p(--print-subdir) -e(--exclude) dir1, dir2,...,dirn)] \"command\""
46
+            echo -e "NAME\n\tineach - executes a command in each subdirectory"
47
+            echo -e "SYNOPSIS\n\tineach [-p, --print-subdir] [-e, --exclude dir1,dir2,...,dirn] \"command\""
48
             exit 0
48
             exit 0
49
             shift
49
             shift
50
             ;;
50
             ;;

+ 1
- 1
init_homepath View File

1
 #!/bin/sh
1
 #!/bin/sh
2
 #
2
 #
3
 
3
 
4
-REPLACE_FOLDERS="Audio Bilder data Dokumente Downloads eclipse Musik prj Schreibtisch Videos choords"
4
+REPLACE_FOLDERS="Audio Bilder data Dokumente Downloads eclipse Musik prj Schreibtisch Videos"
5
 
5
 
6
 
6
 
7
 echo The following folders will be deleted:
7
 echo The following folders will be deleted:

Loading…
Cancel
Save