Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

unzip .zip file in data loading activity

sharma_nik
Level 2
Level 2

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?

1 Accepted Solution
sharma_nik
Correct answer by
Level 2
Level 2

Hi

 

If it helps someone, I found the solution.

 

You can use the following command.

zcat <%=vars.filename%>

 

 

Thanks

View solution in original post

1 Reply
sharma_nik
Correct answer by
Level 2
Level 2

Hi

 

If it helps someone, I found the solution.

 

You can use the following command.

zcat <%=vars.filename%>

 

 

Thanks

View solution in original post