You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-51Lines changed: 40 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,59 +7,48 @@
7
7
8
8
The goal of this package is to be a dropped in replacement for the [diffutils commands](https://www.gnu.org/software/diffutils/) in Rust.
9
9
10
-
11
10
Based on the incomplete diff generator in https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/runtest.rs, and made to be compatible with GNU's diff and patch tools.
12
11
12
+
13
+
## Installation
14
+
15
+
Ensure you have Rust installed on your system. You can install Rust through [rustup](https://rustup.rs/).
16
+
17
+
Clone the repository and build the project using Cargo:
18
+
19
+
```bash
20
+
git clone https://github.com/uutils/diffutils.git
21
+
cd diffutils
22
+
cargo build --release
13
23
```
14
-
~/diffutils$ cargo run -- diff -u3 Cargo.lock Cargo.toml
24
+
25
+
```bash
26
+
27
+
cat <<EOF >fruits_old.txt
28
+
Apple
29
+
Banana
30
+
Cherry
31
+
EOF
32
+
33
+
cat <<EOF >fruits_new.txt
34
+
Apple
35
+
Fig
36
+
Cherry
37
+
EOF
38
+
39
+
$ cargo run -- -u fruits_old.txt fruits_new.txt
15
40
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
0 commit comments