10 lines
		
	
	
	
		
			108 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			108 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
for path
 | 
						|
do
 | 
						|
    test -f "$path" &&
 | 
						|
    path=$(dirname "$path")
 | 
						|
 | 
						|
    cd "$path"
 | 
						|
    terminal
 | 
						|
done
 |