Sponsored Content
Top Forums Shell Programming and Scripting Download and extract to a specific directory Post 302978564 by rbatte1 on Monday 1st of August 2016 10:03:23 AM
Old 08-01-2016
I would suggest that your version of tar does like it.
Quote:
Code:
tar: unrecognized option '--output'

What OS are you running?




Robin
This User Gave Thanks to rbatte1 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to download and extract files on Linux machine from internet

Hi, I am working on Linux 64 bit machine. I am trying to install one software on Linux machine. I downloaded that software from internet on my windows machine. Now in order to install software on Linux machine, I will need all downloaded files on Linux machine. How can I do that? So my... (3 Replies)
Discussion started by: palak08
3 Replies

2. UNIX for Advanced & Expert Users

allow user to use sudo cp on a specific directory and only a specific file

Is there a way to allow a user to use sudo cp on a specific directory and only a specific file? (6 Replies)
Discussion started by: cokedude
6 Replies

3. Solaris

HOW TO extract.tar file to specific directory..?

Hi all, In Solaris howto extract tar file to specific folder. This is what we do in Linux, but how to do the same thing in Solaris ? -tar -xzvf /tmp/etc.tar.bz -C /tmp (Will extract in /tmp dir) 3.gzip COMPRESSION AND EXTRACTION -tar -czvf /tmp/etc.tar.bz /etc -du ... (5 Replies)
Discussion started by: manalisharmabe
5 Replies

4. Shell Programming and Scripting

Curl download zip extract large xml file

Hi i have a php script that works 100% however i don't want this to run on php because of server limits etc. Ideally if i could convert this simple php script to a shell script i can set it up to run on a cron. My mac server has curl on it. So i am assuming i should be using this to download the... (3 Replies)
Discussion started by: timgolding
3 Replies

5. UNIX for Dummies Questions & Answers

Extract directory name from the full directory path in UNIX using shell scripting

My input is as below : /splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt /splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt /splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt /splunk/scrubbed/triumph/ifind.triumph.txt From the above input I want to extract the file names only . Basically I want to... (5 Replies)
Discussion started by: IshuGupta
5 Replies

6. Shell Programming and Scripting

Extract specific line in an html file starting and ending with specific pattern to a text file

Hi This is my first post and I'm just a beginner. So please be nice to me. I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file? I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies

7. Shell Programming and Scripting

Bash to download specific files and save in two folders

I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external... (7 Replies)
Discussion started by: cmccabe
7 Replies

8. Shell Programming and Scripting

Bash to tell download where specific files are stored

The bash below will download all the files in download to /home/Desktop/folder. That works great, but within /home/Desktop/folder there are several folders bam, other, and vcf, is there a way to specify by extention in the download file where to download it to? For example, all .pdf and .zip... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Programming

Aria2c to download and extract. tar.bz2

I am using aria2c to download a .tar.bz2 and trying to extract it in the same command. I can download the file but not extract it. I can also manually extract the tar.bz2., but not in the same command. Thank you :). aria2c -x8 -l log.txt -c -d /xx/xx/xxx --use-head=true --http-user "<user>" ... (8 Replies)
Discussion started by: cmccabe
8 Replies

10. Shell Programming and Scripting

awk to create link, download, and extract in sub-directory

The awk below will create sub-directories in a directory (which is always the last line of file1, each block separated by an empty line), if the number in line 2 (always the first 6 digits in the format xx-xxxx) of file2 is found in $2 of file1. This is the current awk output. If there is a... (0 Replies)
Discussion started by: cmccabe
0 Replies
PULL-DEBIAN-SOURCE(1)					      General Commands Manual					     PULL-DEBIAN-SOURCE(1)

NAME
pull-debian-source - download and extract a source package from Debian SYNOPSIS
pull-debian-source [options] <source package> [release|version] DESCRIPTION
pull-debian-source downloads and extracts the specified version of source package, or the latest version in the specified Debian release. pull-debian-source will try the preferred mirror, default mirror, security mirror, and fall back to Launchpad or snapshot.debian.org, in search of the requested version. OPTIONS
source package The source package to download from Debian. release The release to download the source package from. Defaults to unstable. version The specific version of the package to download. -d, --download-only Do not extract the source package. -m DEBIAN_MIRROR, --mirror=DEBIAN_MIRROR Use the specified mirror. Should be in the form http://ftp.debian.org/debian. If the package isn't found on this mirror, pull-debian-source will fall back to the default mirror. -s DEBSEC_MIRROR, --security-mirror=DEBSEC_MIRROR Use the specified mirror. Should be in the form http://security.debian.org. If the package isn't found on this mirror, pull-debian-source will fall back to the default mirror. --no-conf Do not read any configuration files, or configuration from environment variables. -h, --help Display the usage instructions and exit. ENVIRONMENT
All of the CONFIGURATION VARIABLES below are also supported as environment variables. Variables in the environment take precedence to those in configuration files. CONFIGURATION VARIABLES
The following variables can be set in the environment or in ubuntu-dev-tools(5) configuration files. In each case, the script-specific variable takes precedence over the package-wide variable. PULL_DEBIAN_SOURCE_DEBIAN_MIRROR, UBUNTUTOOLS_DEBIAN_MIRROR The default value for --mirror. PULL_DEBIAN_SOURCE_DEBSEC_MIRROR, UBUNTUTOOLS_DEBSEC_MIRROR The default value for --security-mirror. SEE ALSO
dget(1), pull-debian-debdiff(1), pull-lp-source(1), ubuntu-dev-tools(5) ubuntu-dev-tools 22 January 2011 PULL-DEBIAN-SOURCE(1)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy