06-19-2008
How to put a comment at the begining of the sentence
I have a file shows as below. I would like to put # before CCCC. so how to do in Solaris. Here sed doesnot support -i
[StartUpTasks]
[RunTimeTasks]
AAAA
BBBB
CCCCC
DDDDD
EEEEE
FFFFFF
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a standard way to make a shell script read a file, or list, and skip each line that contains # at the begining, or ignores the content starting after a # in line?
I'm looking to mimic the way commenting in a shell script normally works. This way I can comment my text files and lists my... (4 Replies)
Discussion started by: sysera
4 Replies
2. Shell Programming and Scripting
From the below file I want to grep only the lines except the comment sections. But grep -v "#" is eliminating the last line because it has one # in between.
Any idea how can I ignore only the lines which have # at the begining (I mean comment lines) ?
Thanks a lot to all in advance
C Saha (1 Reply)
Discussion started by: csaha
1 Replies
3. Shell Programming and Scripting
Dear all,
When i ask a question in my script if the answer is not correct i need to goback to the begning of the script and ask the question again.
ex - What is your name ?
saman
Name is not correct ...try again
What is the name ?
Nimal
Thank you.... (2 Replies)
Discussion started by: Nayanajith
2 Replies
4. Shell Programming and Scripting
All,
i have some doubt on #!/bin/bash or #!/bin/ksh at the begining of script.
Need to know folowing thing ?
-- what would be the problem if i will mention in the first line #!/bin/bash
and will use korn shell syntax and the reverse ?
-- Can i mention at the... (1 Reply)
Discussion started by: jambesh
1 Replies
5. Shell Programming and Scripting
I am trying to write for my class project a shell script, using bourne shell, that will take one command, either -l or -w. If -l is entered then the script should output the names of all the files in my working directory sorted in increasing order of the number of lines in the file. If -w is input... (2 Replies)
Discussion started by: C.Ronaldo-7-
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Guru's
I've a variable "COUNT", which has the total number of records.
I need to print the contents of COUNT in 8 digit form to a file.
If count is 1, I need to print 00000001
If count is 23, I need to print 00000023 same way
if count is 77898, I need to print 00077898.
the... (3 Replies)
Discussion started by: ganapati
3 Replies
7. UNIX for Dummies Questions & Answers
Hi People,
I need some Help to write a unix script that asks for a sentence to be typed out then with the sentence. Counts the number of spaces within the sentence and then echo's out "The Number Of Spaces In The Sentence is 4" as a example
Thanks
Danielle (12 Replies)
Discussion started by: charlie101208
12 Replies
8. Shell Programming and Scripting
I would like to check with grep in this configuration file:
{
"alt-speed-down": 200,
"alt-speed-enabled": true,
"alt-speed-time-begin": 1140,
"alt-speed-time-day": 127,
"...something..." : true,
...
}
"alt-speed-enabled" (the third line of the file) is setted to... (2 Replies)
Discussion started by: ciro314
2 Replies
9. Shell Programming and Scripting
hi,
i need my bash script to find regex in xml file.. and comment 2 lines before and after the line that contains regex.. can't use # needs to be <!-- at the beginning and --> and the end of the comment.
so eg..
first block
<filter>
<filter-name>MyRegEx</filter-name>
... (11 Replies)
Discussion started by: Poki
11 Replies
10. Shell Programming and Scripting
i am having some bash script which must use first sentence of the file. For example i have file which content is:
test 213
So I must use word test into my bash script, and put it into variable.
I am using a one variable named value
value=$(</home/rusher/test.txt)
so instead using test.txt... (1 Reply)
Discussion started by: tomislav91
1 Replies
LEARN ABOUT MOJAVE
net::dns::rr::aaaa5.18
Net::DNS::RR::AAAA(3) User Contributed Perl Documentation Net::DNS::RR::AAAA(3)
NAME
Net::DNS::RR::AAAA - DNS AAAA resource record
SYNOPSIS
use Net::DNS;
$rr = new Net::DNS::RR('name IN AAAA address');
$rr = new Net::DNS::RR(
name => 'example.com',
type => 'AAAA',
address => '2001:DB8::8:800:200C:417A'
);
DESCRIPTION
Class for DNS IPv6 Address (AAAA) resource records.
METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or
other unpredictable behaviour.
address
$IPv6_address = $rr->address;
Returns the text representation of the IPv6 address.
address_long
$IPv6_address = $rr->address_long;
Returns the text representation specified in RFC3513, 2.2fIs0(1).
address_short
$IPv6_address = $rr->address_short;
Returns the textual form of address recommended by RFC5952.
COPYRIGHT
Copyright (c)1997-1998 Michael Fuhr.
Portions Copyright (c)2002-2004 Chris Reinhardt.
Portions Copyright (c)2012 Dick Franks.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl, Net::DNS, Net::DNS::RR, RFC3596, RFC3513, RFC5952
perl v5.18.2 2014-01-16 Net::DNS::RR::AAAA(3)