mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
add diff comment
Compare two files, strip trailing carriage return/ nextline
This commit is contained in:
parent
9856d4c685
commit
6e66fd9ce9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user