Sounds like an empty gz file is there. Edit your script to show which file it might be having issues with.
for i in *.gz; do echo $i; gzip -d "$i" & done Unrelated, I'm not seeing a reason to use the -f in your command. You might want to consider removing it. Jeremiah Bess <https://plus.google.com/u/0/103182072532361592558> <https://www.facebook.com/jeremiahbess> <http://www.linkedin.com/profile/view?id=47451026> On Wed, Apr 15, 2015 at 4:01 AM, <[email protected]> wrote: > Hii, > > I have a directory with has 100s of .gz files that are being added time to > time. Iam a using bash script with command > *for i in *.gz; do gzip -fd "$i" & done *to extract all these files but > I am facing a weird problem , I am getting error as excepted end of file > for one file and not at all processing the rest of the files. > When I run *gzip -fd file1.gz* manually from terminal it is working for > other files. Please suggest a solution. > > Regards, > Ravi > > -- > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > References can be found at: http://goo.gl/anqri > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules > or http://cdn.fsdev.net/List-Rules.pdf) > > --- > You received this message because you are subscribed to the Google Groups > "Linux Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
