Here is a simple script that will list out all the paths in the PATH variable that do not exist.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<td> <div class="text codecolorer"> #!/bin/bash -<br /> #===============================================================================<br /> #<br /> # FILE: wrong_path.sh<br /> #<br /> # USAGE: ./wrong_path.sh<br /> #<br /> # DESCRIPTION: Show Directories in the PATH Which does NOT Exist<br /> #<br /> # OPTIONS: ---<br /> # REQUIREMENTS: ---<br /> # BUGS: ---<br /> # NOTES: ---<br /> # AUTHOR: Amit Agarwal (AKA), amit.
Continue reading