{{ score }}
  #Example 1: Using bar to copy a 2.4gb file from a device (in this case a tape drive) to a file, using a 64k buffer.
bar --in-file /dev/rmt/1cbn --out-file tape-restore.tar --size 2.4g --buffer-size 64k

#Example 2: Using bar to copy a 37tb file across the network using SSH.
ssh remote 'dd if=file' | bar --size 37t > file

#Example 3: Using bar inside a tar-pipe command:
# Normal tar-pipe command might be:
# (cd /some/dir/somewhere && tar -cf - *) | (cd /some/other/dir && tar -xBpf -)
#3a: Using bar within the tar-pipe:
(cd /some/dir/somewhere && tar -cf - *) | bar | (cd /some/other/dir && tar -xBpf -)
#3b: Using bar with the --size option in a tar-pipe:
# $ du -sk /some/dir/somewhere
# 6281954 /some/dir/somewhere
(cd /some/dir/somewhere && tar -cf - *) | bar --size 6281954k | (cd /some/other/dir && tar -xBpf -)

#Example 4: Using bar on a regular file.  (Note that the --size option is not needed here, as bar will retrieve the file size itself.)
bar --in-file ./file | ssh remote 'cd /some/dir && dd of=file'

#Example 5: Generating a 512k file of random data.
dd if=/dev/random bs=1024 count=512 | bar -s 512k -of ./random