Link to home
Start Free TrialLog in
Avatar of fredjonzeTwo
fredjonzeTwo

asked on

Windows 7 extract from .tar and concatenate

Hi,

I received a .tar MySql backup that has a folder with multiple .gz files. I need to extract each of the .gz mySql.sql files from the .tar and concatenate them. I'm on windows 7 and the Linux command I was provided is:

for file in *.sql.gz; do zcat $file | mysql $YOUR_INTERNAL_NEW_COPY_DB$; done

Hoping someone can translate this to a windows compatible batch or winRar/7Zip command.

Thx,
Fred
Avatar of Joe Rud
Joe Rud
Flag of United States of America image

I recently used "Peazip" to work with a .tar.gz file successfully.  The site lists split/join files as a feature, though I haven't used it.  Hope that helps.

http://www.peazip.org/download-installer-p-windows.html
Were you able to try the Peazip feature I mentioned?
ASKER CERTIFIED SOLUTION
Avatar of fredjonzeTwo
fredjonzeTwo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial