9 lines
		
	
	
	
		
			250 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
	
		
			250 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Replace all instances of `img` in Markdown image links with `_img` (to reflect new directory structure)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								find /home/thomas/repos/computer_science/ -type f -name "*.md" | while
							 | 
						||
| 
								 | 
							
								read file; do
							 | 
						||
| 
								 | 
							
								    sed -i 's/\/img\//\/_img\//g' $file
							 | 
						||
| 
								 | 
							
								done
							 |