diff --git a/README.md b/README.md index df6ca81..db9e8dd 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,8 @@ Notes: mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir ``` +- Want to see progress while copying files? Use `pv`, [`pycp`](https://github.com/dmerejkowsky/pycp), [`progress`](https://github.com/Xfennec/progress) or rsync with option: `rsync --progress`. Block-level copy tools also has the option: `dd status=progress`. + - Use `shuf` to shuffle or select random lines from a file. - Know `sort`'s options. For numbers, use `-n`, or `-h` for handling human-readable numbers (e.g. from `du -h`). Know how keys work (`-t` and `-k`). In particular, watch out that you need to write `-k1,1` to sort by only the first field; `-k1` means sort according to the whole line. Stable sort (`sort -s`) can be useful. For example, to sort first by field 2, then secondarily by field 1, you can use `sort -k1,1 | sort -s -k2,2`. @@ -452,8 +454,6 @@ A few examples of piecing together commands: - `comm`: compare sorted files line by line -- `pv`: monitor the progress of data through a pipe - - `strings`: extract text from binary files - `tr`: character translation or manipulation