added OS program check Q
This commit is contained in:
		
							parent
							
								
									5bf4ac12da
								
							
						
					
					
						commit
						8b801cca2c
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								OS/bash/progcheck/sol.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								OS/bash/progcheck/sol.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					folder="$@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo "Checking $folder"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					x=`find "$folder" -type f -iname "[!aeiou]*"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for i in $x
 | 
				
			||||||
 | 
					do
 | 
				
			||||||
 | 
					    echo "$i"
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue