12 lines
		
	
	
		
			160 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			160 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
arg=$1
 | 
						|
for d in `echo $PATH | sed -e 's/:/ /g'`
 | 
						|
do
 | 
						|
	if [ -x $d/$arg ]; then
 | 
						|
		echo $d/$arg
 | 
						|
		exit 0
 | 
						|
	fi
 | 
						|
done
 | 
						|
echo "${arg}: Command not found."
 | 
						|
exit 1
 |