Microsoft
Software
Hardware
Network
Question : How to write a shell script to untar files?
I'd like to write a shell script that untars files within a directory.
I tried the code below, but get an "unexpected token" error.
Code Snippet:
1: 2: 3: 4:
#!/bin/bash file=ls ./*.tar.gz do tar -xvzf $file done
Open in New Window
Select All
Answer : How to write a shell script to untar files?
try
#!/bin/bash
for file in *.tar.gz
do
tar -xvzf $file
done
Random Solutions
Removing old files
Help with sp_start_job
SQL 2005 SELECT Statement "NOT CONTAINS 'cat'"
python wxpython settopwindow
The specified file cannot be found C:windows/system32/kejuxet<wbr />m.dll
can anyone explain the usage of FTPPWD in UNIX
error 0x8024402c in windows defender
How do I export a Flash scene to an image format via ActionScript?
Error Handler For 404
SUMPRODUCT and ISNUMBER(MATCH