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
USB Mass Storage Driver Issue
Exchange Server 2003 install error
XP Profiles inaccessible from admin accounts: can't copy profiles
How can I send a song in an email that will play autimatically when the email is opened?
autoincrement field problem
Domain of sender address
[email protected]
does not exist
Hiding running perl script from StartUp menu on WinNT
IIS Service Unavailable and W3SVC-WP 2274 event log error
mysql returning question mark squares instead of special characters
perl encryption