Skip to content

Instantly share code, notes, and snippets.

@takano32
Forked from laiso/appps.bash
Created November 27, 2012 09:26
Show Gist options
  • Select an option

  • Save takano32/4153310 to your computer and use it in GitHub Desktop.

Select an option

Save takano32/4153310 to your computer and use it in GitHub Desktop.

Revisions

  1. takano32 renamed this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion apps.sh → apps.bash
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    #! /bin/sh
    #! /bin/bash
    ps ax -o command | sed -ne 's/.*\/Applications\/\([^/]*\)\.app\/.*/\1/p' | sort -u
  2. takano32 revised this gist Nov 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion apps.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    #! /bin/sh
    ps ax -o command | sed -ne 's/.*\/Applications\/\([^/]*\).*/\1/p' | sort -u
    ps ax -o command | sed -ne 's/.*\/Applications\/\([^/]*\)\.app\/.*/\1/p' | sort -u
  3. takano32 revised this gist Nov 27, 2012. 4 changed files with 16 additions and 46 deletions.
    14 changes: 14 additions & 0 deletions Terminal
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    $ ps ax -o command | sed -ne 's/.*\/Applications\/\([^/]*\)\.app\/.*/\1/p' | sort -u
    Alfred
    Boxcar Mac
    Dropbox
    Emacs
    Google Chrome
    Google Drive
    Growl
    LimeChat
    Skype
    Witch
    Yammer
    YoruFukurou
    iTunes
    7 changes: 0 additions & 7 deletions appps.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    #! /bin/sh

    # curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash -
    # curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash - | pbcopy -

    APPS=`ps aux | grep "\/.*\.app\/" | sed -e "s/^.*\/\(.*\.app\)\/.*$/\1/" | sort | uniq`
    echo "$APPS"
    2 changes: 2 additions & 0 deletions apps.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #! /bin/sh
    ps ax -o command | sed -ne 's/.*\/Applications\/\([^/]*\).*/\1/p' | sort -u
    39 changes: 0 additions & 39 deletions result.txt
    Original file line number Diff line number Diff line change
    @@ -1,39 +0,0 @@
    curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash -
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 112 100 112 0 0 72 0 0:00:01 0:00:01 --:--:-- 139
    Adobe Crash Reporter.app
    Adobe Flash CS6.app
    AirPort Base Station Agent.app
    CS6ServiceManager.app
    DashboardClient.app
    Dock.app
    Dropbox.app
    Finder.app
    FlagUp Notifier.app
    Google Chrome Helper EH.app
    Google Chrome Helper.app
    Google Chrome.app
    Google Drive.app
    Hiss.app
    Image Capture Extension.app
    KeyRemap4MacBook.app
    LCCDaemon.app
    MacUIM.app
    MacVim.app
    Menubar Countdown.app
    NotificationCenter.app
    PCKeyboardHack.app
    PTPCamera.app
    Producteev.app
    QuickLookUIHelper.app
    Skype.app
    SystemUIServer.app
    TISwitcher.app
    WebStorm.app
    check_afp.app
    iTerm.app
    imagent.app
    loginwindow.app
    quicklookd.app
    witchdaemon.app
  4. @laiso laiso revised this gist Nov 27, 2012. 1 changed file with 39 additions and 0 deletions.
    39 changes: 39 additions & 0 deletions result.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash -
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 112 100 112 0 0 72 0 0:00:01 0:00:01 --:--:-- 139
    Adobe Crash Reporter.app
    Adobe Flash CS6.app
    AirPort Base Station Agent.app
    CS6ServiceManager.app
    DashboardClient.app
    Dock.app
    Dropbox.app
    Finder.app
    FlagUp Notifier.app
    Google Chrome Helper EH.app
    Google Chrome Helper.app
    Google Chrome.app
    Google Drive.app
    Hiss.app
    Image Capture Extension.app
    KeyRemap4MacBook.app
    LCCDaemon.app
    MacUIM.app
    MacVim.app
    Menubar Countdown.app
    NotificationCenter.app
    PCKeyboardHack.app
    PTPCamera.app
    Producteev.app
    QuickLookUIHelper.app
    Skype.app
    SystemUIServer.app
    TISwitcher.app
    WebStorm.app
    check_afp.app
    iTerm.app
    imagent.app
    loginwindow.app
    quicklookd.app
    witchdaemon.app
  5. @laiso laiso revised this gist Nov 27, 2012. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions appps.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    #! /bin/sh

    # curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash -
    # curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash - | pbcopy -

    APPS=`ps aux | grep "\/.*\.app\/" | sed -e "s/^.*\/\(.*\.app\)\/.*$/\1/" | sort | uniq`
    echo "$APPS"
  6. @laiso laiso renamed this gist Nov 27, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. @laiso laiso created this gist Nov 27, 2012.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #! /bin/sh

    APPS=`ps aux | grep "\/.*\.app\/" | sed -e "s/^.*\/\(.*\.app\)\/.*$/\1/" | sort | uniq`
    echo "$APPS"