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
Pin Internet Shortcut to Start Menu?
replace the last letter in a word
IF STATEMENT
Installing WMI Windows Installer Provider using SYSOCMGR.exe
Search is slow
RAID Controller policy on Dell 2950-III PERC 6/i
Flash & Google Bot
SMTP Auth command syntax
Flash player only works when logged in as admin
How can I kill IExplore?