Welcome to the Linux Foundation Forum!

How to read a .gz and .log file using IF from script

HI,

  1. I have a script that runs for zipped files but I don't know how to implement it to read unzipped files as well. Basically I want to use an IF statement but I don't know how to create the variables for zipped (.gz) and unzipped (.log) files.

Any help?

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training