inital commit of clone of old repo
This commit is contained in:
		
							
								
								
									
										18
									
								
								Old/NOVA/usr/local/bin/appremove-testy
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								Old/NOVA/usr/local/bin/appremove-testy
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
declare -A usage
 | 
			
		||||
 | 
			
		||||
exec 0< <(pacman -Ql | grep bin)
 | 
			
		||||
 | 
			
		||||
while read pkg binary; do
 | 
			
		||||
  lastused=$(stat -c '%X' "$binary")
 | 
			
		||||
  if [[ -z ${usage[$pkg]} ]] || (( lastused > ${usage[$pkg]} )); then
 | 
			
		||||
    usage[$pkg]=$lastused
 | 
			
		||||
  fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
for key in "${!usage[@]}"; do
 | 
			
		||||
  printf '%s\t%s\n' "${usage[$key]}" "$key"
 | 
			
		||||
done | sort -rn | while read time pkg; do
 | 
			
		||||
  printf '%(%c)T\t%s\n' "$time" "$pkg"
 | 
			
		||||
done
 | 
			
		||||
		Reference in New Issue
	
	Block a user