Search Results

Search: Posts Made By: zorosinister
Forum: OS X (Apple) 04-25-2012
21,531
Posted By Scrutinizer
Hi, awk is not a shell, so it complains about...
Hi, awk is not a shell, so it complains about hdiutil...
Forum: OS X (Apple) 04-25-2012
21,531
Posted By itkamaraj
execute the awk command alone. and store the...
execute the awk command alone. and store the result ( "OK" or "NOT OK" ) in a variable.

Then use if condition to check the variable value and do the installation
Forum: OS X (Apple) 04-25-2012
21,531
Posted By itkamaraj
Command Line Mac: Installing a .dmg application...
Command Line Mac: Installing a .dmg application from the command line (http://commandlinemac.blogspot.com/2008/12/installing-dmg-application-from-command.html)
...
1,644
Posted By itkamaraj
try this give the new version # in the...
try this

give the new version # in the highlighted part


nawk -v new="3.1.0.4890" -F"[<>]" '/CFBundleVersion/ {getline;current=$3;exit}END{if(new>current){print "NOT OK"}else{print "OK"}}'...
55,695
Posted By panyam
variable_sto_store=`awk -F"[<>]"...
variable_sto_store=`awk -F"[<>]" '/CFBundleVersion/ {getline;print $3;exit}' input.xml`

If you want to capture it outside.
55,695
Posted By itkamaraj
$ awk -F"[<>]" '/CFBundleVersion/ {getline;print...
$ awk -F"[<>]" '/CFBundleVersion/ {getline;print $3;exit}' input.xml
3.1.0.4880
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy