Search Results

Search: Posts Made By: zorosinister
Forum: OS X (Apple) 04-25-2012
21,372
Posted By zorosinister
:( result=$(awk -v new="3.1.0.5" -F"[<>]"...
:(
result=$(awk -v new="3.1.0.5" -F"[<>]" '/CFBundleVersion/ {getline;current=$3;exit}END{if(new>current){print "NOT OK"}else{print "OK"}}' Info.plist)
echo $result
var="NOT OK"
if["$result"="NOT...
Forum: OS X (Apple) 04-25-2012
21,372
Posted By zorosinister
:( awk -v new="3.1.0.5" -F"[<>]"...
:(
awk -v new="3.1.0.5" -F"[<>]" '/CFBundleVersion/ {getline;current=$3;exit}END{if(new>current){result="NOT OK"}else{result="OK"}}' Info.plist
echo $result

output is Nothing: BLANK

seems i...
Forum: OS X (Apple) 04-25-2012
21,372
Posted By zorosinister
hey itkamaraj thanks for all the help.. i...
hey itkamaraj thanks for all the help..

i need some more help :confused:

Actually now i am trying to so something like this:]

awk -v new="3.1.0.5" -F"[<>]" '/CFBundleVersion/...
Forum: OS X (Apple) 04-25-2012
21,372
Posted By zorosinister
How to install .dmg using shell script
I want to write a script to install an application using .dmg file.
.dmg file already exists in the folder.


working on MAC OS.
1,621
Posted By zorosinister
ya awk works fine :)
ya awk works fine :)
1,621
Posted By zorosinister
nawk: command not found i am working on MAC...
nawk: command not found

i am working on MAC OS :wall:
1,621
Posted By zorosinister
version comparison if/else
I want to compare the version before installing an application, but i keep on getting this error:

line 4: [: 3.1.0.4880: integer expression expected

version value is obtained from a xml.
...
55,527
Posted By zorosinister
thanks panyam
thanks panyam
55,527
Posted By zorosinister
Thanks itkamaraj :) pardon me, actually i am...
Thanks itkamaraj :)

pardon me, actually i am totally new to shell scripting.

one more thing is, how can i retrieve this value in a variable? :wall:



Again thanks a lot!
55,527
Posted By zorosinister
Parsing XML using shell script
Well, issue is i have to parse this script to get the VERSION:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"...
Showing results 1 to 10 of 10

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