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
Link External Data - Can a Link Specification be Updated?
Error creating a maintenance job
Roll Back In Ms Access ?
Sending email from different email address on same domain
Exporting to excel and formatting the spreadsheet from VB
Need DumpCFG.exe for windows 2000 resource disk.....
How do I run install off hard drive?
Title: Error: A RunSQL action requires an argument consisting of an SQL statement (2)
Recover email from Emptied Deleted Items folder
Export MS SQL Report to PDF with Tree Index/TOC and Page Navigation