Shell - find jar file which contains specific file



# find jar files       to execute zipinfo    pipe to to awk '/regexp condition/{expression}' pipe to awk 'row num ==1{print found file}; {print zipinfo file}'
find lib -name '*.jar' -exec sh -c "zipinfo {} | awk '/.*NameAbbreviator.*/{print \$0}'        | awk 'NR==1{print \"\n{}\"}; {print \$0}'" \;

caffeinate – make your Mac awake

When running long tests on macOS, the machine may go to sleep if you don’t touch it. There’s a built-in command that keeps it awake. ...