![]() |
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 |
| Variable for User Comment | gseyforth | Shell Programming and Scripting | 2 | 03-09-2007 02:01 PM |
| how to comment multiple lines in unix | balireddy_77 | Shell Programming and Scripting | 3 | 02-19-2007 07:16 AM |
| Comment faire une soustraction de date? | Cecile | UNIX for Dummies Questions & Answers | 2 | 08-25-2006 09:38 AM |
| Need to add a comment line in a text file | orakhan | Shell Programming and Scripting | 2 | 09-22-2005 08:36 PM |
| # comment | rocker40 | UNIX for Dummies Questions & Answers | 6 | 01-07-2004 12:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to copy and comment out
I need help with a script. Here's what I want to do.
I have a file "upsrk.txt" which can be either under "/home/upsrk" OR "/home/oracle" On some systems file "upsrk.txt" may not exist, in that case I want to just exit out of the script. If the file is there, I want to check if I have the permissions to write to this file (on some systems it may be owned by root) If I have the permissions to this file, then I want to look for "upsrk@gmail.com" and then comment the line which contains it. Thanks in Advance for your Help. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|