08-06-2013
The awk solution is already working
Hi RudiC,
The suggestion provided by MadeInGermany is already working. I simply need to print from line 4 to the end instead. Don't worry about it if this require much more work.
I hesitate to disclose people's confidential data which would require me to make a lot of changes first.
Thanks,
George
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know this is going to be an easy anwer, but I haven't been able to figure this out - even with the help of the previous posts. I want to go from this
PROD USER anon;
to this
TEST;
I have coded a few sed commands, and none of them are getting the job done. anon will not always be the... (2 Replies)
Discussion started by: djschmitt
2 Replies
2. Shell Programming and Scripting
Hi All
I have a script which has produced a list, I have used 'sed' to number my list, but i want to list at end of line with the first line starting at zero (0) and brackets round it
ie
My List i want
Hello (0)
this (1)
day (2)
can (3)
be (4)
sed '/./=' filename | sed '/./N; s/\n/) /'... (5 Replies)
Discussion started by: chassis
5 Replies
3. Shell Programming and Scripting
Hi,
I have file as shown below.
abc,
def,
abc,
xyz,
I have to remove ',' from end of last line (xyz,). How can I do that with single command? Is it possible or I have to iterate through complete file to remove that?
- Malay (2 Replies)
Discussion started by: malaymaru
2 Replies
4. Shell Programming and Scripting
I have a file with a bunch of similar lines in which I want to extract a phrase delimited by the first occurance of a '>' at the beginning and the first occurance of a '<' at the end (you might have guessed these are beginning/end of HTML tags). Using Sed I have managed to delete up to and... (7 Replies)
Discussion started by: coldcanuck
7 Replies
5. Shell Programming and Scripting
Hi,
I have a command "get_data" with some parameters in few *.text files of a directory. I want to first find those files that contain this command and then append the following parameter to the end of the command.
example of an entry in the file :-
get_data -x -m50 /etc/web/getid
this... (1 Reply)
Discussion started by: PrasannaKS
1 Replies
6. Shell Programming and Scripting
Example,
Trying to replace text to the end of a line.
Text file looks like this
PP= 4
PP= 412
PP= 425
I want to replace only the following line:
PP= 4
with
PP= 2
How can this be done with sed? (3 Replies)
Discussion started by: hanson397
3 Replies
7. UNIX for Dummies Questions & Answers
Hello Friends, How can I remove the last two values of this line using sed
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638:9/3/90:45900
The result should look like this:
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638 (3 Replies)
Discussion started by: humkhn
3 Replies
8. Shell Programming and Scripting
All:
Can somebody help me out with a sed command, which removes the the first occurance of ')' until the end of the line
If I have the following input
... (5 Replies)
Discussion started by: BeefStu
5 Replies
9. Shell Programming and Scripting
I have 2 files that I am working with
$ cat file1
server1
server3
server5
server6
server8
$ cat file2
server1;Solaris;
server2; SLES;
server3;Linux;
server4; Solaris;
server5;SLES;
server6;SLES;
server7;Solaris;
server8;Linux; (1 Reply)
Discussion started by: snoman1
1 Replies
10. Shell Programming and Scripting
Hello,
i hope the titel is okay.
I want to edit a line in
/etc/arno-iptables-firewall/firewall.conf
So the Line can contains:
OPEN_TCP="436, 25, 80, 110, 143, 443, 465, 587, 993, 995, 21, 20"
i want to search in this line:
OPEN_TCP="*, *, 80, *, *, 443, *, *, *, *"
and i want to... (11 Replies)
Discussion started by: tJAdASwIRDESSEI
11 Replies
LEARN ABOUT DEBIAN
readonly::xs
XS(3pm) User Contributed Perl Documentation XS(3pm)
NAME
Readonly::XS - Companion module for Readonly.pm, to speed up read-only scalar variables.
VERSION
This document describes version 1.04 of Readonly::XS, December 6, 2005.
SYNOPSIS
Install this module, but do not use it.
DESCRIPTION
The Readonly module (q.v.) is an effective way to create non-modifiable variables. However, it's relatively slow.
The reason it's slow is that is implements the read-only-ness of variables via tied objects. This mechanism is inherently slow. Perl
simply has to do a lot of work under the hood to make tied variables work.
This module corrects the speed problem, at least with respect to scalar variables. When Readonly::XS is installed, Readonly uses it to
access the internals of scalar variables. Instead of creating a scalar variable object and tying it, Readonly simply flips the SvREADONLY
bit in the scalar's FLAGS structure.
Readonly arrays and hashes are not sped up by this, since the SvREADONLY flag only works for scalars. Arrays and hashes always use the tie
interface.
Why implement this as a separate module? Because not everyone can use XS. Not everyone has a C compiler. Also, installations with a
statically-linked perl may not want to recompile their perl binary just for this module. Rather than render Readonly.pm useless for
these people, the XS portion was put into a separate module.
Programs that you write do not need to know whether Readonly::XS is installed or not. They should just "use Readonly" and let Readonly
worry about whether or not it can use XS. If the Readonly::XS is present, Readonly will be faster. If not, it won't. Either way, it will
still work, and your code will not have to change.
Your program can check whether Readonly.pm is using XS or not by examining the $Readonly::XSokay variable. It will be true if the XS
module was found and is being used. Please do not change this variable.
EXPORTS
None.
SEE ALSO
Readonly.pm
AUTHOR
/ COPYRIGHT
Eric Roode, roode@cpan.org
Copyright (c) 2003-2005 by Eric J. Roode. All Rights Reserved. This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
To avoid my spam filter, please include "Perl", "module", or this module's name in the message's subject line, and/or GPG-sign your
message.
perl v5.14.2 2011-11-15 XS(3pm)