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
Need sample script for Warning message
OUt of the office autoreply stuck in categorizer
Citrix virtualization
Diagnostic-Code: smtp;550 Requested action not taken: mailbox unavailable
Exchange 2007 AntiSpam Settings
Scheduling HP Remote Deployment Utility
Google maps listing optimisation
Remote Desktop Connection - ALT + TAB doesn't work over Citrix Metaframe for only one user
Problem with w32.spybot.worm and shutting down
VBA Find and replace ASCII Chr