Twig Templating - Most useful functions and operations syntax
Introduction Twig is a powerful template engine for php. Drupal uses it heavily…
November 24, 2017
Each jar file has a manifest file in META_INF/MANIFEST.MF
I have to read each MANIFEST.MF file and get some information from it. So, instead of extracting whole jar, one by one is a tedius thing.
Following command can be used to unzip a complete jar file:
unzip <path of jar file>
If you want to unzip files to a particular folder
unzip <path of jar file> -d <path of target folder>
Note: if the target folder does not exists, it will be created
If you want to unzip only particular files
unzip <path of jar file> <path of file inside jar file>
If you want to unzip only particular files in a particular folder
unzip <path of jar file> <path of file inside jar file> -d <target folder>
That is all. Combine these, and you are done.
Shell script I used to solve this
for myfile in `ls /Users/labuser/jars` ; do unzip ../$myfile META-INF/MANIFEST.MF -d $myfile; done
Introduction Twig is a powerful template engine for php. Drupal uses it heavily…
Assuming your web application is using oracle, and you are deploying your app on…
While dealing with ELastic Search documents, you faced this issue while updating…
Its essential to prepare a git branching strategy. This helps greatly in…
I use drupal-7 in my website. I used to write articles and put images in that…
I was trying to install mongo extension with pecl. It gave me error: Then, I…
Introduction This post has the complete code to send email through smtp server…
Introduction In a normal email sending code from python, I’m getting following…
Introduction In one of my app, I was using to talk to . I have used some event…
Introduction So you have a Django project, and want to run it using docker image…
Introduction It is very important to introduce few process so that your code and…
Introduction In this post, we will see a sample Jenkin Pipeline Groovy script…