How to add alt attribute of images in all of my drupal articles or other content type
I have a custom content type, and there are around 2000 number of nodes in my…
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
I have a custom content type, and there are around 2000 number of nodes in my…
Introduction Npm has a tool called: npm audit which reports if your packages or…
Problem In drupal textarea field, it was always a pain to see the two links…
Introduction In this post, we will discuss 3 different ways to import a…
You might need to put sudo before above command. The command will show details…
So, here we are using input variable String[] args without any validation…
In this post, we will see some of the frequently used concepts/vocabulary in…
System design interview is pretty common these days, specially if you are having…
Introduction You are given an array of integers with size N, and a number K…
Graph Topological Sorting This is a well known problem in graph world…
Problem Statement Given a Binary tree, print out nodes in level order traversal…
Problem Statement Given an array nums of n integers and an integer target, are…