mirror of
				https://github.com/onceupon/Bash-Oneliner.git
				synced 2025-10-30 20:51:07 +01:00 
			
		
		
		
	add sed
Substitution with wildcard (e.g. replace a line start with aaa= by aaa=/my/new/path)
This commit is contained in:
		| @@ -262,6 +262,12 @@ sed -s '$a,' *.json > all.json | ||||
| ```bash | ||||
| sed 's/A/B/g' filename  | ||||
| ``` | ||||
|  | ||||
| ##### Substitution with wildcard (e.g. replace a line start with aaa= by aaa=/my/new/path) | ||||
| ```bash | ||||
| sed "s/aaa=.*/aaa=\/my\/new\/path/g" | ||||
| ``` | ||||
|  | ||||
| ##### Select lines start with string (e.g. bbo) | ||||
|      | ||||
| ```bash | ||||
|   | ||||
		Reference in New Issue
	
	Block a user