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
Active Directory Design with Child domain authenticating to Parent Domain
bash shell-- passing var back to shell, to pass to another script
ADsSecurity.dll Where is it?
Sending a signal to processes on a queue
FTP Server on Windows 2000. Can I only have one + virtual ftp servers?
How to call a javascript fn when the first javascript function succeeds only.
Need to move webapps in Tomcat
Outlook hangs and retrieving data from server
Demote 2003 DC with DC PROMO fails Access is denied.
McAfee Security Center Uninstall