mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 21:26:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			171 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			171 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| set -e
 | |
| if [ $# -ne 2 ] ; then
 | |
|     echo "Need <OLD> and <NEW> as arguments" >&2
 | |
|     exit 1
 | |
| fi
 | |
| old=$1
 | |
| new=$2
 | |
| 
 | |
| git grep -l "$old" | xargs sed -i -e "s,$old,$new,g"
 |