The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Emergency UNIX and Linux Support !! Help Me!!
.
google unix.com



Emergency UNIX and Linux Support !! Help Me!! Post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change output if file is empty ddrew78 Shell Programming and Scripting 2 03-24-2009 02:03 PM
Read from a file then filter the output khestoi UNIX for Dummies Questions & Answers 1 03-02-2009 05:00 AM
Read from file > process > output to file Lorna Shell Programming and Scripting 3 10-06-2008 02:45 AM
read file and output message happyv Shell Programming and Scripting 12 01-24-2007 09:57 PM
store output to a file and read from it afadaghi Shell Programming and Scripting 2 10-04-2005 01:00 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-30-2009
glev2005 glev2005 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 74
Read file and change a 0 to a 1 in output


Code:
<key>ExcludeSimpleHostnames</key>
                <integer>0</integer>
                <key>FTPPassive</key>

Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key.

I got this output code from running:

Code:
grep -iA2  excludesimplehostnames /Library/Preferences/SystemConfiguration/preferences.plist

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0