10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
fileName: therm.txt
nc3h7o2h 7/27/98 thermc 3h 8o 2 0g 300.000 5000.000 1390.000 41
1.47017550e+01 1.71731699e-02-5.91205329e-06 9.21842570e-10-5.36438880e-14 2
-2.99988556e+04-4.93387892e+01 2.34710908e+00 4.34517484e-02-2.65357553e-05 3
... (7 Replies)
Discussion started by: linuxUser_
7 Replies
2. Shell Programming and Scripting
Hi,
I need to comment out (insert # in the front of a line) a line that has entry Defaults requiretty using command-line as I need to do this on hundreds of servers.
From
Defaults requiretty
To
#Defaults requiretty
I tried something like below but no luck: Please advise,... (3 Replies)
Discussion started by: prvnrk
3 Replies
3. Shell Programming and Scripting
I have tried a lot, Need your help guys.
SAS Program:
data one ; /* Data step */
Input name $; /*Dec variables*/
I want to remove the commented part(/* Data step */) alone. I have tried using sed command but it is deleting the entire line itself. i need unix command to separate this and... (6 Replies)
Discussion started by: saaisiva
6 Replies
4. Shell Programming and Scripting
I need to comment the lines starting with pattern "exclude" or "exclude=". If the work exclude comes at any other part, ignore it. Also, ignore, excludes, excluded etc. Ie only comment the line starting with exclude.
File contents.
exclude
exclude=
hi I am excluded
excludes
excludes=
... (9 Replies)
Discussion started by: anil510
9 Replies
5. Shell Programming and Scripting
I have around 25 hosts and each hosts has 4 instance of jboss and 4 different ip attached to it . I need to make some changes to the startup scripts. Any tips appreciated. I have total of 100 instances which bind to 100 different ip address based on instance name.
For example
File1
... (1 Reply)
Discussion started by: gubbu
1 Replies
6. Shell Programming and Scripting
Hi All
Can u help me..
My problem is comment (#) a line where a word exists in that line
sample:
cat /tmp/file.txt
monitor 192.168.1.11 Copying files in current directory 1
monitor 192.168.1.1 Copying files in current directory 2
monitor 192.168.1.12 Copying files in current... (2 Replies)
Discussion started by: darren_j
2 Replies
7. Shell Programming and Scripting
I am running a script remotely to do the following
1. Kill all processes by a user
2. Uninstall certain packages
3. FTP over a new file
4. Kill a ldap process that is not allowing my /devdsk/c0t0d0s7 slice to un-mount
5. Unmount /h
6. comment out the slice in vfstab
7. newfs the... (9 Replies)
Discussion started by: deaconf19
9 Replies
8. UNIX for Dummies Questions & Answers
I want to replace this line : "test compare visible] true" and make it "#test compare visible] true".
How can I do it ? And it should be checked in many sub folder files also. (6 Replies)
Discussion started by: manoj.b
6 Replies
9. Shell Programming and Scripting
Hello -
I am running Linux. I want to place a comment char at the beginning of a line in a file. For example:
testvar=`grep username /etc/people
sed -e 's/$testvar/#$testvar/g' /etc/people
I cannot get the above commands to put a comment at the beginning of the line.
Any... (3 Replies)
Discussion started by: mlike
3 Replies
10. Programming
Does anyone knows how to write a program to remove single-line comment in C program?
that means it don't read anything behind // (3 Replies)
Discussion started by: Icy002
3 Replies
Jifty::Plugin::Comment::Notification::CommentPublished(3User Contributed Perl DocumentaJifty::Plugin::Comment::Notification::CommentPublished(3pm)
NAME
Jifty::Plugin::Comment::Notification::CommentPublished - new comments made
SYNOPSIS
To activate this notification, you must override the notification in your application.
use strict;
use warnings;
package MyApp::Notification::CommentPublished;
use base qw/ Jifty::Plugin::Comment::Notification::CommentPublished /;
sub setup {
my $self = shift;
# Send to the author of the post
$self->to_list($self->parent->author);
$self->SUPER::setup(@_);
}
sub url {
my $self = shift;
return Jifty->config->framework('Web')->{'BaseURL'}
. $self->parent->permalink
. '#comment-'.$self->comment->id;
}
1;
DESCRIPTION
This notification (when properly configured) is sent out to any who need to know when a comment has been published.
METHODS
setup
This method sets up the notification. This method should be overridden to setup "to_list" in Jifty::Notification to select who will receive
this message. See the "SYNOPSIS".
comment
This will contain the Jifty::Plugin::Comment::Model::Comment that has been published.
parent
This will contain the object that the comment has been attached to.
url
This returns the URL that the message will link to. This should be overridden to provide application-specific URLs. The default
implementation returns the BaseURL setting for the application.
SEE ALSO
Jifty::Notification, Jifty::Plugin::Comment::Notification::CommentNeedsModeration
AUTHOR
Andrew Sterling Hanenkamp, "<hanenkamp@cpan.org>"
COPYRIGHT AND LICENSE
Copyright 2008 Boomer Consulting, Inc. All Rights Reserved.
This program is free software and may be modified and distributed under the same terms as Perl itself.
perl v5.12.4 2009-03-09 Jifty::Plugin::Comment::Notification::CommentPublished(3pm)