Parsing plist file ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Parsing plist file ?
# 1  
Old 05-07-2011
Parsing plist file ?

Hi,

I wondered if it was possible to parse a plist file like this

http://dl.dropbox.com/u/14586156/stuff/Bookmarks.plist

so it will afterwards look like this

[SPOILER]
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Children</key>
  <array>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/Downloads/</string>
        <key>title</key>
        <string>Downloads</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/Downloads/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>FCA20256-B43E-4B7B-B496-116EAB4F0937</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Applications/453F6009-876D-4757-8111-2201555C96C3/Documents/</string>
        <key>title</key>
        <string>iCab Downloads</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Applications/453F6009-876D-4757-8111-2201555C96C3/Documents/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>DC9D8A8C-B0F0-4E13-8F8B-167BBF9DE0C5</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Applications/FC972FD1-DA09-4FD5-9BDE-3B292946DA36/Documents/Downloads/</string>
        <key>title</key>
        <string>iDownloads</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Applications/FC972FD1-DA09-4FD5-9BDE-3B292946DA36/Documents/Downloads/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>EDBE01E6-14BC-408A-8D67-85C4E37E4074</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Applications/3FFE1C4B-F8B4-483E-AACB-324718DEA9E4/</string>
        <key>title</key>
        <string>wikiamo</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Applications/3FFE1C4B-F8B4-483E-AACB-324718DEA9E4/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>734D7530-6A0D-4F8F-A05D-0AA084E4C0F4</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/stash/Applications.pwn/</string>
        <key>title</key>
        <string>Applications.pwn</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/stash/Applications.pwn/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>0885BD33-51C0-40F0-8F11-64B6181B6683</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Applications/</string>
        <key>title</key>
        <string>Applications</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Applications/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>58AE2870-39F3-4AAB-A7E9-FF9413AE50E8</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/cache/apt/archives/</string>
        <key>title</key>
        <string>Cydia tmp deb/app download</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/cache/apt/archives/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>C4A9ACDC-4E49-4319-9E07-E249AF17DE61</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/root/Media/Cydia/AutoInstall/</string>
        <key>title</key>
        <string>AutoInstall Cydia</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/root/Media/Cydia/AutoInstall/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>1EA91008-C00C-4013-8E0E-C7B4A3F7AB8D</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/Purchases/</string>
        <key>title</key>
        <string>Itunes Purchases</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/Purchases/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>238D5126-3A02-4702-9BEA-8E7896946BBF</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Preferences/TimeCapsule/</string>
        <key>title</key>
        <string>TimeCapsule</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Preferences/TimeCapsule/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>22B0BF01-8070-4B24-AE66-545500EB2745</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Downloads/Texte%20+%20Bilder/Gbamp%20+%20EZF%20+%20NDS+Gba+M3%20Texte%20,%20Bilder/Ipod%20touch/</string>
        <key>title</key>
        <string>Ipod touch Tipps</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Downloads/Texte%20+%20Bilder/Gbamp%20+%20EZF%20+%20NDS+Gba+M3%20Texte%20,%20Bilder/Ipod%20touch/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>F7B8D0F3-C7B8-4B45-9D68-4B9B647AA19E</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/YourTube</string>
        <key>title</key>
        <string>YourTube</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/YourTube</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>2CCD3E34-3C85-4FD5-9254-85C732045340</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/MxTube/</string>
        <key>title</key>
        <string>MxTube</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/MxTube/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>BC1B0363-5F98-461A-947C-1E1116AD2E9B</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/ROMs/</string>
        <key>title</key>
        <string>ROMs</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/ROMs/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>118C73B0-E935-4999-A4C4-BBEFD522CCE8</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/DCIM/</string>
        <key>title</key>
        <string>DCIM Camera Roll/ Pictures</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/DCIM/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>800374CF-AC25-4C1D-B8BA-D1DAB83B5A1A</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/SBSettings/note.txt</string>
        <key>title</key>
        <string>note</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/SBSettings/note.txt</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>88659237-3E6C-48DE-A7BC-4A880194EFF9</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Media/My%20Music/</string>
        <key>title</key>
        <string>Pwntunes My Music</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Media/My%20Music/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>C1B2083F-5CCD-4651-8E86-D8CE82CD26A5</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Caches/Snapshots/</string>
        <key>title</key>
        <string>Snapshots</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Caches/Snapshots/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>52D6D08C-BAF2-4E86-A566-A3134C654E2B</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Documents/Installous/Downloads/</string>
        <key>title</key>
        <string>Install0us Downloads</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Documents/Installous/Downloads/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>E5CF33CE-FF61-4832-AAE4-2D0429BB4FBC</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/root/Documents/Cracked/</string>
        <key>title</key>
        <string>Cracked Apps Clutch</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/root/Documents/Cracked/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>AE2771ED-A5E1-498F-8682-B5031132A8D2</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Attachments/</string>
        <key>title</key>
        <string>Mail Attachments</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Attachments/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>65A4323B-1704-4DF1-9D0D-FE76DFAC1351</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/stash/Ringtones/</string>
        <key>title</key>
        <string>Ringtones</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/stash/Ringtones/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>7ABA804C-A7D5-467B-AF28-E13B3FE6F5BD</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/private/</string>
        <key>title</key>
        <string>/private</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/private/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>51B04022-4877-4144-8E0F-A3692503DAC6</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Logs/CrashReporter/</string>
        <key>title</key>
        <string>CrashReporter</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Logs/CrashReporter/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>6A3824E2-9F93-4306-853F-AC058AF3EDC8</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/log/</string>
        <key>title</key>
        <string>Syslog</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/log/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>CD21D88B-0EDC-4DB5-9AC3-0D98B2397449</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/WebClips/</string>
        <key>title</key>
        <string>WebClips/Homescreen Bookmarks</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/WebClips/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>312BCF2D-0D8A-4DC6-8092-546678074121</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/FullDrop/</string>
        <key>title</key>
        <string>FullDrop</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/FullDrop/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>B42D9309-36E2-4232-8FE8-EB07B036E5AF</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Keyboard/DisplayRecorder/</string>
        <key>title</key>
        <string>DisplayRecorder Recordings</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Keyboard/DisplayRecorder/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>075E08DE-6D78-42C1-8757-67481AD5BD5B</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Wynd/iSetup/</string>
        <key>title</key>
        <string>Backboard</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Wynd/iSetup/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>52D91843-BCAE-4F44-837B-BA7B3CBEB892</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/vids/</string>
        <key>title</key>
        <string>iConvert Dir</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/vids/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>37D3033B-D5A8-4215-9230-77B0CB7C6E97</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/Library/BootLogos/</string>
        <key>title</key>
        <string>BootLogos Greenpois0n</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/Library/BootLogos/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>CAC8C7FF-40FD-415D-9077-8007D8011994</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Received/</string>
        <key>title</key>
        <string>Bluetooth Received (Celeste)</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Received/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>E32D6987-5ECB-4470-9644-3779D5EF08AC</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/etc/apt/sources.list.d/</string>
        <key>title</key>
        <string>Cydia sources.list.d</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/etc/apt/sources.list.d/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>A64F70E6-7AAF-4806-8C82-F05CE27F949F</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Caches/libactivator.plist</string>
        <key>title</key>
        <string>Activator Gestures</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Caches/libactivator.plist</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>2275D434-A5CD-459A-96E5-80AD42D0C7F5</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/mobile/Library/Preferences/com.spiritoflogic.PwnTunes.plist</string>
        <key>title</key>
        <string>PWNTunes Prefs</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/mobile/Library/Preferences/com.spiritoflogic.PwnTunes.plist</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>6460FEA6-5271-437F-AA31-A0602F244BE6</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/etc/</string>
        <key>title</key>
        <string>etc/sudoers file</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/etc/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>A4C40198-3E5C-463D-AD3B-323021AB8BC3</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/stash/Applications.pwn/Cydia.app/Info.plist</string>
        <key>title</key>
        <string>Cydia.app</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/stash/Applications.pwn/Cydia.app/Info.plist</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>99E9CE4F-3BFB-4C4A-87ED-9968BF843EBB</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/System/Library/CoreServices/SpringBoard.app/N90AP.plist</string>
        <key>title</key>
        <string>iPhone Config</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/System/Library/CoreServices/SpringBoard.app/N90AP.plist</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>916327B2-EAC6-44F6-B5E9-E4AEAF751F54</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/System/Library/CoreServices/SystemVersion.plist</string>
        <key>title</key>
        <string>iPhone Firmware Version</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/System/Library/CoreServices/SystemVersion.plist</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>0D279BB2-165A-463A-84DD-3B759E2C5BA6</string>
    </dict>
    <dict>
      <key>URIDictionary</key>
      <dict>
        <key></key>
        <string>file://localhost/var/lib/dpkg/info/</string>
        <key>title</key>
        <string>dpkg info</string>
      </dict>
      <key>URLString</key>
      <string>file://localhost/var/lib/dpkg/info/</string>
      <key>WebBookmarkType</key>
      <string>WebBookmarkTypeLeaf</string>
      <key>WebBookmarkUUID</key>
      <string>3917A2D5-F8E3-429C-8C09-FD31002AC03C</string>
    </dict>
  </array>
  <key>WebBookmarkFileVersion</key>
  <integer>1</integer>
  <key>WebBookmarkType</key>
  <string>WebBookmarkTypeList</string>
  <key>WebBookmarkUUID</key>
  <string>iFileBookmarkRoot</string>
</dict>
</plist>

[/SPOILER]

using Shell, or (more likely I guess) awk.

I hope you know something because google answered with plusutils by erica sadun, and I don't really know how to use that to correctly parse a .plist file.

Thanks in advance. Smilie

---------- Post updated at 01:59 PM ---------- Previous update was at 01:17 PM ----------

Nevermind, found it out myself

Code:
plutil -convert xml1 NAME.plist

And that is her Website: Index of /ftp/EricaUtilities

This can be closed Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parse hdiutil -plist data for specific info

I am trying to get the mounted size of a compressed .dmg. I can use hdiutil imageinfo -plist $imagename to get a lot of info, including what I need. The problem is that I have no idea how to parse that single piece of info into a variable (or in this case, array element). Here is what I have so... (2 Replies)
Discussion started by: nextyoyoma
2 Replies

2. OS X (Apple)

Plist to Unix Executable

I'm using an old conversion method for converting a plist into an XML file, but that's not what I'm needing just via terminal now. What I'm looking for is an answer to convert a plist file into an executable. I'd like to import it into Casper and have the JSS push it out onto an image. In this... (6 Replies)
Discussion started by: unimachead
6 Replies

3. Shell Programming and Scripting

Parsing of file for Report Generation (String parsing and splitting)

Hey guys, I have this file generated by me... i want to create some HTML output from it. The problem is that i am really confused about how do I go about reading the file. The file is in the following format: TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies

4. Shell Programming and Scripting

Parsing file, yaml file? Extracting specific sections

Here is a data file, which I believe is in YAML. I am trying to retrieve just the 'addon_domains" section, which doesnt seem to be as easy as I had originally thought. Any help on this would be greatly appreciated!! I have been trying to do this in awk and mostly bash scripting instead of perl... (3 Replies)
Discussion started by: Rhije
3 Replies

5. UNIX for Dummies Questions & Answers

max os x .plist not running as scheduled?

Hello all, I am admittedly a newbie and have created a plist designed to fire off a shell script everyday at 3:00pm. It is located in /Library/LaunchDaemons/. I use it to mirror a hard local drive with a remote one. It worked one time but not again after that. I never restart the machine... (0 Replies)
Discussion started by: Movomito
0 Replies

6. UNIX for Dummies Questions & Answers

Script for parsing details in a log file to a seperate file

Hi Experts, Im a new bee for scripting, I would ned to do the following via linux shell scripting, I have an application which throws a log file, on each action of a particular work with the application, as sson as the action is done, the log file would vanish or stops updating there, the... (2 Replies)
Discussion started by: pingnagan
2 Replies

7. UNIX for Dummies Questions & Answers

Using defaults read to get value from plist

Hi there, I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different.... Normally it's like this; <plist version="1.0"> <dict> key>KeyName</key> <string>blah</string> I want the value of KeyName, so... (1 Reply)
Discussion started by: davewg
1 Replies

8. Shell Programming and Scripting

Finding & Moving Oldest File by Parsing/Sorting Date Info in File Names

I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves. Also, the script should only move a file from /exports to... (6 Replies)
Discussion started by: nikosey
6 Replies

9. OS X (Apple)

the best way of editing .plist files

:( what is the best way of editing the various .plist files without adding third party files? Or is the easiest way is to add third party applications, which ones? please kept in mind that i am not a programmer. mike (1 Reply)
Discussion started by: mehow
1 Replies
Login or Register to Ask a Question