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
encrypted and decryped msword doc file through Java Code, decrytped file is not opening in msword application
Javascript to set an attribute value
Ajax Make the Back Button work
Need script to traverse directories and rename them.
Complex database design and multiple record addition/updation
How do I figure out the percentage of storage used?
SMTP : The server rejected one or more recipient addresses
Conditionally Add www To Url In Javascript
Bash Scripting - Making a script that counts how many times it has been run
loadMovie() within a loaded movie???