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
What does java.lang.NoClassDefFoundE<wbr />rror: mean
Help creating small shell script to manipulate text file data.
CGI - create checkbox and store value
Alter column with a parameter value.
commandtimeout in vbscript/ado query
Microsoft Vista root directory access.
explain script
Unix shell script - suppress output of sql statements
How to create Batch File to Add Entires to Host File?
Open Source Server Monitoring