How do I programatically get the file or directory name after extracting after a tar archive?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
I have a process in my Dockerfile
with the follow steps:
- Download the tar file using wget.
- untar the file.
- Perform some operation with the file . In this case, move content to another place.
The follow code works until ffmpeg
version still 3.4.1.
So, today the available version for ffmpeg
is 3.4.2 and the code is not working.
I want to find a way to grab back the filename after the untar process and pass it to the next steps
RUN wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
RUN tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv ffmpeg-3.4.1-64bit-static/ffmpeg /usr/local/bin/
RUN mv ffmpeg-3.4.1-64bit-static/ffprobe /usr/local/bin/
It could be something like this:
RUN DIRNAME = tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv $DIRNAME/ffmpeg /usr/local/bin/
RUN mv $DIRNAME/ffprobe /usr/local/bin/
How could I achieve this?
command-line tar
add a comment |Â
up vote
3
down vote
favorite
I have a process in my Dockerfile
with the follow steps:
- Download the tar file using wget.
- untar the file.
- Perform some operation with the file . In this case, move content to another place.
The follow code works until ffmpeg
version still 3.4.1.
So, today the available version for ffmpeg
is 3.4.2 and the code is not working.
I want to find a way to grab back the filename after the untar process and pass it to the next steps
RUN wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
RUN tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv ffmpeg-3.4.1-64bit-static/ffmpeg /usr/local/bin/
RUN mv ffmpeg-3.4.1-64bit-static/ffprobe /usr/local/bin/
It could be something like this:
RUN DIRNAME = tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv $DIRNAME/ffmpeg /usr/local/bin/
RUN mv $DIRNAME/ffprobe /usr/local/bin/
How could I achieve this?
command-line tar
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have a process in my Dockerfile
with the follow steps:
- Download the tar file using wget.
- untar the file.
- Perform some operation with the file . In this case, move content to another place.
The follow code works until ffmpeg
version still 3.4.1.
So, today the available version for ffmpeg
is 3.4.2 and the code is not working.
I want to find a way to grab back the filename after the untar process and pass it to the next steps
RUN wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
RUN tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv ffmpeg-3.4.1-64bit-static/ffmpeg /usr/local/bin/
RUN mv ffmpeg-3.4.1-64bit-static/ffprobe /usr/local/bin/
It could be something like this:
RUN DIRNAME = tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv $DIRNAME/ffmpeg /usr/local/bin/
RUN mv $DIRNAME/ffprobe /usr/local/bin/
How could I achieve this?
command-line tar
I have a process in my Dockerfile
with the follow steps:
- Download the tar file using wget.
- untar the file.
- Perform some operation with the file . In this case, move content to another place.
The follow code works until ffmpeg
version still 3.4.1.
So, today the available version for ffmpeg
is 3.4.2 and the code is not working.
I want to find a way to grab back the filename after the untar process and pass it to the next steps
RUN wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
RUN tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv ffmpeg-3.4.1-64bit-static/ffmpeg /usr/local/bin/
RUN mv ffmpeg-3.4.1-64bit-static/ffprobe /usr/local/bin/
It could be something like this:
RUN DIRNAME = tar xf ffmpeg-release-64bit-static.tar.xz
RUN mv $DIRNAME/ffmpeg /usr/local/bin/
RUN mv $DIRNAME/ffprobe /usr/local/bin/
How could I achieve this?
command-line tar
command-line tar
edited Mar 8 at 14:41
muru
130k19274467
130k19274467
asked Mar 8 at 13:39
![](https://i.stack.imgur.com/eGupX.png?s=32&g=1)
![](https://i.stack.imgur.com/eGupX.png?s=32&g=1)
zwitterion
3191415
3191415
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28
add a comment |Â
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.
mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.
mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
3
down vote
Don't. Instead, get tar to put the contents in a directory of your choosing.
tar
can remove n components of the path of each file (--strip-components
)tar
can apply arbitrary sed expressions to change the path of each file (--transform
)
So I'd do something like:
mkdir ffmpeg
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x -C ffmpeg --strip-components=1
Here, I made the directory myself, and told tar to extract there (the -C
option), while removing the first component from the path of the extracted files. So ffmpeg-3.4.1-64bit-static/ffprobe
becomes ffprobe
inside the directory ffmpeg
.
Or:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x --transform='s:[^/]*/:ffmpeg/'
Here, I simply changed the first component of the path to ffmpeg
, so I didn't need to make the directory myself. So, ffmpeg-3.4.1-64bit-static/ffmpeg
becomes ffmpeg/ffmpeg
.
Or, knowing that you specifically want to dump those particular files in /usr/local/bin
, use -C
to directly place the files there, while removing all directory components and selecting exactly those files you want to extract:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar Jx -C /usr/local/bin --transform='s:.*/::' --wildcards '*/ffmpeg' '*/ffprobe'
With any tar, you can specify the files to be extracted. With GNU tar, you can also use wildcards.
add a comment |Â
up vote
0
down vote
The command to get the directory name from the tar.xz
file is:
tar tJvf tar-file-name.tar.xz | head -1 | awk 'print $6'
You'll need to:
- Get the directory name (e.g. using above solution) and save it in a variable
- decompress the tar.xz file (e.g. using tar xf command)
- move the files using the directory variable
Explanation how to get the directory name from a tar
file:
Tar parameters:
-f file
-J xz compression
-t list content
-v verbose
head -1
- prints the file line
awk 'print $6'
- print the 6th elements which is the directory name
Examples:
tar.xz
example:tar tJvf coreutils-8.22.tar.xz | head -1 | awk 'print $6'
Results with:
coreutils-8.22/
tar.bz2
example forffmpeg-3.4.2.tar.bz2
tar tjvf ffmpeg-3.4.2.tar.bz2 | head -1 | awk 'print $6'
Results with:
ffmpeg-3.4.2/
Note that for
bz2
compressed files I used thetar
j
flag
add a comment |Â
up vote
0
down vote
Like that:
$ tar tf ffmpeg-release-64bit-static.tar.xz | head -1 | cut -d '/' -f1
ffmpeg-3.4.2-64bit-static
Notice that GNU tar
does not require -j
, -z
etc., it can detect archive type automatically.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Don't. Instead, get tar to put the contents in a directory of your choosing.
tar
can remove n components of the path of each file (--strip-components
)tar
can apply arbitrary sed expressions to change the path of each file (--transform
)
So I'd do something like:
mkdir ffmpeg
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x -C ffmpeg --strip-components=1
Here, I made the directory myself, and told tar to extract there (the -C
option), while removing the first component from the path of the extracted files. So ffmpeg-3.4.1-64bit-static/ffprobe
becomes ffprobe
inside the directory ffmpeg
.
Or:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x --transform='s:[^/]*/:ffmpeg/'
Here, I simply changed the first component of the path to ffmpeg
, so I didn't need to make the directory myself. So, ffmpeg-3.4.1-64bit-static/ffmpeg
becomes ffmpeg/ffmpeg
.
Or, knowing that you specifically want to dump those particular files in /usr/local/bin
, use -C
to directly place the files there, while removing all directory components and selecting exactly those files you want to extract:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar Jx -C /usr/local/bin --transform='s:.*/::' --wildcards '*/ffmpeg' '*/ffprobe'
With any tar, you can specify the files to be extracted. With GNU tar, you can also use wildcards.
add a comment |Â
up vote
3
down vote
Don't. Instead, get tar to put the contents in a directory of your choosing.
tar
can remove n components of the path of each file (--strip-components
)tar
can apply arbitrary sed expressions to change the path of each file (--transform
)
So I'd do something like:
mkdir ffmpeg
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x -C ffmpeg --strip-components=1
Here, I made the directory myself, and told tar to extract there (the -C
option), while removing the first component from the path of the extracted files. So ffmpeg-3.4.1-64bit-static/ffprobe
becomes ffprobe
inside the directory ffmpeg
.
Or:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x --transform='s:[^/]*/:ffmpeg/'
Here, I simply changed the first component of the path to ffmpeg
, so I didn't need to make the directory myself. So, ffmpeg-3.4.1-64bit-static/ffmpeg
becomes ffmpeg/ffmpeg
.
Or, knowing that you specifically want to dump those particular files in /usr/local/bin
, use -C
to directly place the files there, while removing all directory components and selecting exactly those files you want to extract:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar Jx -C /usr/local/bin --transform='s:.*/::' --wildcards '*/ffmpeg' '*/ffprobe'
With any tar, you can specify the files to be extracted. With GNU tar, you can also use wildcards.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Don't. Instead, get tar to put the contents in a directory of your choosing.
tar
can remove n components of the path of each file (--strip-components
)tar
can apply arbitrary sed expressions to change the path of each file (--transform
)
So I'd do something like:
mkdir ffmpeg
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x -C ffmpeg --strip-components=1
Here, I made the directory myself, and told tar to extract there (the -C
option), while removing the first component from the path of the extracted files. So ffmpeg-3.4.1-64bit-static/ffprobe
becomes ffprobe
inside the directory ffmpeg
.
Or:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x --transform='s:[^/]*/:ffmpeg/'
Here, I simply changed the first component of the path to ffmpeg
, so I didn't need to make the directory myself. So, ffmpeg-3.4.1-64bit-static/ffmpeg
becomes ffmpeg/ffmpeg
.
Or, knowing that you specifically want to dump those particular files in /usr/local/bin
, use -C
to directly place the files there, while removing all directory components and selecting exactly those files you want to extract:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar Jx -C /usr/local/bin --transform='s:.*/::' --wildcards '*/ffmpeg' '*/ffprobe'
With any tar, you can specify the files to be extracted. With GNU tar, you can also use wildcards.
Don't. Instead, get tar to put the contents in a directory of your choosing.
tar
can remove n components of the path of each file (--strip-components
)tar
can apply arbitrary sed expressions to change the path of each file (--transform
)
So I'd do something like:
mkdir ffmpeg
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x -C ffmpeg --strip-components=1
Here, I made the directory myself, and told tar to extract there (the -C
option), while removing the first component from the path of the extracted files. So ffmpeg-3.4.1-64bit-static/ffprobe
becomes ffprobe
inside the directory ffmpeg
.
Or:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar --xz -x --transform='s:[^/]*/:ffmpeg/'
Here, I simply changed the first component of the path to ffmpeg
, so I didn't need to make the directory myself. So, ffmpeg-3.4.1-64bit-static/ffmpeg
becomes ffmpeg/ffmpeg
.
Or, knowing that you specifically want to dump those particular files in /usr/local/bin
, use -C
to directly place the files there, while removing all directory components and selecting exactly those files you want to extract:
wget -O - http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz |
tar Jx -C /usr/local/bin --transform='s:.*/::' --wildcards '*/ffmpeg' '*/ffprobe'
With any tar, you can specify the files to be extracted. With GNU tar, you can also use wildcards.
answered Mar 8 at 14:36
muru
130k19274467
130k19274467
add a comment |Â
add a comment |Â
up vote
0
down vote
The command to get the directory name from the tar.xz
file is:
tar tJvf tar-file-name.tar.xz | head -1 | awk 'print $6'
You'll need to:
- Get the directory name (e.g. using above solution) and save it in a variable
- decompress the tar.xz file (e.g. using tar xf command)
- move the files using the directory variable
Explanation how to get the directory name from a tar
file:
Tar parameters:
-f file
-J xz compression
-t list content
-v verbose
head -1
- prints the file line
awk 'print $6'
- print the 6th elements which is the directory name
Examples:
tar.xz
example:tar tJvf coreutils-8.22.tar.xz | head -1 | awk 'print $6'
Results with:
coreutils-8.22/
tar.bz2
example forffmpeg-3.4.2.tar.bz2
tar tjvf ffmpeg-3.4.2.tar.bz2 | head -1 | awk 'print $6'
Results with:
ffmpeg-3.4.2/
Note that for
bz2
compressed files I used thetar
j
flag
add a comment |Â
up vote
0
down vote
The command to get the directory name from the tar.xz
file is:
tar tJvf tar-file-name.tar.xz | head -1 | awk 'print $6'
You'll need to:
- Get the directory name (e.g. using above solution) and save it in a variable
- decompress the tar.xz file (e.g. using tar xf command)
- move the files using the directory variable
Explanation how to get the directory name from a tar
file:
Tar parameters:
-f file
-J xz compression
-t list content
-v verbose
head -1
- prints the file line
awk 'print $6'
- print the 6th elements which is the directory name
Examples:
tar.xz
example:tar tJvf coreutils-8.22.tar.xz | head -1 | awk 'print $6'
Results with:
coreutils-8.22/
tar.bz2
example forffmpeg-3.4.2.tar.bz2
tar tjvf ffmpeg-3.4.2.tar.bz2 | head -1 | awk 'print $6'
Results with:
ffmpeg-3.4.2/
Note that for
bz2
compressed files I used thetar
j
flag
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The command to get the directory name from the tar.xz
file is:
tar tJvf tar-file-name.tar.xz | head -1 | awk 'print $6'
You'll need to:
- Get the directory name (e.g. using above solution) and save it in a variable
- decompress the tar.xz file (e.g. using tar xf command)
- move the files using the directory variable
Explanation how to get the directory name from a tar
file:
Tar parameters:
-f file
-J xz compression
-t list content
-v verbose
head -1
- prints the file line
awk 'print $6'
- print the 6th elements which is the directory name
Examples:
tar.xz
example:tar tJvf coreutils-8.22.tar.xz | head -1 | awk 'print $6'
Results with:
coreutils-8.22/
tar.bz2
example forffmpeg-3.4.2.tar.bz2
tar tjvf ffmpeg-3.4.2.tar.bz2 | head -1 | awk 'print $6'
Results with:
ffmpeg-3.4.2/
Note that for
bz2
compressed files I used thetar
j
flag
The command to get the directory name from the tar.xz
file is:
tar tJvf tar-file-name.tar.xz | head -1 | awk 'print $6'
You'll need to:
- Get the directory name (e.g. using above solution) and save it in a variable
- decompress the tar.xz file (e.g. using tar xf command)
- move the files using the directory variable
Explanation how to get the directory name from a tar
file:
Tar parameters:
-f file
-J xz compression
-t list content
-v verbose
head -1
- prints the file line
awk 'print $6'
- print the 6th elements which is the directory name
Examples:
tar.xz
example:tar tJvf coreutils-8.22.tar.xz | head -1 | awk 'print $6'
Results with:
coreutils-8.22/
tar.bz2
example forffmpeg-3.4.2.tar.bz2
tar tjvf ffmpeg-3.4.2.tar.bz2 | head -1 | awk 'print $6'
Results with:
ffmpeg-3.4.2/
Note that for
bz2
compressed files I used thetar
j
flag
edited Mar 8 at 13:56
answered Mar 8 at 13:48
![](https://i.stack.imgur.com/1MIVg.jpg?s=32&g=1)
![](https://i.stack.imgur.com/1MIVg.jpg?s=32&g=1)
Yaron
8,52271838
8,52271838
add a comment |Â
add a comment |Â
up vote
0
down vote
Like that:
$ tar tf ffmpeg-release-64bit-static.tar.xz | head -1 | cut -d '/' -f1
ffmpeg-3.4.2-64bit-static
Notice that GNU tar
does not require -j
, -z
etc., it can detect archive type automatically.
add a comment |Â
up vote
0
down vote
Like that:
$ tar tf ffmpeg-release-64bit-static.tar.xz | head -1 | cut -d '/' -f1
ffmpeg-3.4.2-64bit-static
Notice that GNU tar
does not require -j
, -z
etc., it can detect archive type automatically.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Like that:
$ tar tf ffmpeg-release-64bit-static.tar.xz | head -1 | cut -d '/' -f1
ffmpeg-3.4.2-64bit-static
Notice that GNU tar
does not require -j
, -z
etc., it can detect archive type automatically.
Like that:
$ tar tf ffmpeg-release-64bit-static.tar.xz | head -1 | cut -d '/' -f1
ffmpeg-3.4.2-64bit-static
Notice that GNU tar
does not require -j
, -z
etc., it can detect archive type automatically.
answered Mar 8 at 13:59
![](https://i.stack.imgur.com/dcCUM.jpg?s=32&g=1)
![](https://i.stack.imgur.com/dcCUM.jpg?s=32&g=1)
Arkadiusz Drabczyk
96949
96949
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013081%2fhow-do-i-programatically-get-the-file-or-directory-name-after-extracting-after-a%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Are you retaining multiple versions of the extracted tarball in the directory? if not, you may be able to use a simple filename glob e.g.
mv ffmpeg-*-static/ffmpeg /usr/local/bin/
â steeldriver
Mar 8 at 14:19
@steeldriver this is an excelent solution to my process. And it works. But I will accept the answer related to the question. Thanks to show me another way to do.
â zwitterion
Mar 8 at 15:28