![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Assign o/p of awk to a variable | c2b2 | Shell Programming and Scripting | 8 | 04-01-2009 07:50 AM |
| storing result of a command in variable | eltinator | Shell Programming and Scripting | 1 | 04-17-2008 08:09 PM |
| assign subst|grep|sed command result to a variable | snowbiker99 | Shell Programming and Scripting | 5 | 11-14-2007 07:08 PM |
| assign a value to variable | markjason | Shell Programming and Scripting | 3 | 10-10-2006 02:05 PM |
| Setting a variable to result of FIND command | JP Favara | Windows & DOS: Issues & Discussions | 2 | 03-09-2005 10:17 PM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Code:
#!/bin/sh # ## MYSTRING = `awk '/myApp.app/' /Users/$USER/Library/Preferences/loginwindow.plist` if [$MYSTRING = ""] then echo String not found defaults write /Users/$USER/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -dict-add -string Hide -bool YES -string Path -string '/Applications/myApp.app' else echo String found fi |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|