Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
				
			 
			
		 
		
		
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							 | 
							- #!/bin/sh
 - 
 - # May 2008 Jonathan Moore Liles
 - #
 - # Given the name of a file containing a list of files and a filename
 - # from that list, return the percentage of the distance from the
 - # beginning of the list.
 - 
 - [ $# -ne 2 ] && exit
 - 
 - MATCH="`grep -nFx \"$2\" \"$1\"`"
 - MATCH=${MATCH%%:*}
 - TOTAL="`cat \"$1\" | wc -l`"
 - 
 - if [ -z "$MATCH" ]
 - then
 -     echo "0%"
 - else
 -     printf "%3s%%" $(( $MATCH * 100 / $TOTAL ))
 - fi
 
 
  |