mirror of
				https://github.com/onceupon/Bash-Oneliner.git
				synced 2025-11-04 07:01:05 +01:00 
			
		
		
		
	add diff comment
Compare two files, strip trailing carriage return/ nextline
This commit is contained in:
		@@ -2010,7 +2010,7 @@ echo 'something' |tr a-z a
 | 
			
		||||
# aaaaaaaaa
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
##### Compare files (e.g. fileA, fileB)
 | 
			
		||||
##### Compare two files (e.g. fileA, fileB)
 | 
			
		||||
    
 | 
			
		||||
```bash
 | 
			
		||||
diff fileA fileB
 | 
			
		||||
@@ -2024,6 +2024,12 @@ sdiff fileA fileB
 | 
			
		||||
# side-to-side merge of file differences
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
##### Compare two files, strip trailing carriage return/ nextline (e.g. fileA, fileB)
 | 
			
		||||
    
 | 
			
		||||
```bash
 | 
			
		||||
 diff fileA fileB --strip-trailing-cr
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
##### Number a file (e.g. fileA)
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user