Add GetModIDs.sh
This commit is contained in:
		
						commit
						953a3ddb0b
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								GetModIDs.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								GetModIDs.sh
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
#Get a list of modID's from the steam workshop folder of a game
 | 
			
		||||
#output will be one modID per line in a txt file
 | 
			
		||||
 | 
			
		||||
DIR="/path/to/SteamLibrary/steamapps/workshop/content/294100"
 | 
			
		||||
OutputDir="/where/to/put/the/txt/file"
 | 
			
		||||
 | 
			
		||||
find $DIR -type d -maxdepth 1 | awk -F'/' '{print $NF}' > $OutputDir/workshop_ids.txt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
exit
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue