Skip to main content
sharma_nik
Level 2
Jul 13, 2021 12:28 PM UTC
Solved

unzip .zip file in data loading activity

Hi

 

I want to unzip a zipped file in data loading activity.

I checked pre-process the file option and tried various commands but the data load activity is giving error every time.

 

Following are the commands I have tried:

gunzip -c <%=vars.filename%>

gunzip <%=vars.filename%>

gzip -d <%=vars.filename%>

gzip -S <%=vars.filename%>

zip -d <%=vars.filename%>

etc.

 

What would be the correct command to unzip the file first and then load it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sharma_nik
sharma_nikAccepted solution
Level 2
Jul 13, 2021 1:15 PM UTC

Hi

 

If it helps someone, I found the solution.

 

You can use the following command.

zcat <%=vars.filename%>

 

 

Thanks

1 reply

sharma_nik
sharma_nikAuthorAccepted solution
Level 2
Jul 13, 2021 1:15 PM UTC

Hi

 

If it helps someone, I found the solution.

 

You can use the following command.

zcat <%=vars.filename%>

 

 

Thanks

Translate