Trying to download and extract a file to a specific folder, but getting an error. What am I doing wrong? Is there a way to rename the download if desired? Thank you :).
curl --url https://github.com/arq5x/bedtools2/releases/download/v2.26.0/bedtools-2.26.0.tar.gz | tar -xz --output /home/cmccabe/test
tar: unrecognized option '--output'
Try 'tar --help' or 'tar --usage' for more information.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 598 0 598 0 0 2939 0 --:--:-- --:--:-- --:--:-- 2945
(23) Failed writing body