add diff comment

Compare two files, strip trailing carriage return/ nextline
This commit is contained in:
onceupon 2018-11-22 10:01:18 +08:00 committed by GitHub
parent 9856d4c685
commit 6e66fd9ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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