01-22-2009
I don't want anyone to think I'm ignoring posts, but I got pulled into an all-day meeting and it may last through tomorrow. Next week I'm traveling (Hawaii, yeah!) so won't be able to test anything on a Linux box. I will still try things on my Windows laptop, but as I've already found, what works here may not work there.
I really appreciate all the help, and I'm sure we'll come up with a solution. I'm excited to try using awk instead of sed, and I have it on my laptop as well. Please keep the suggestions coming!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to using sed and grep commands, but have found them extremely useful. However I am having a hard time figuring this one out:
Delete every line containing the word CEN and the next line as well.
ie. test.txt
blue
324 CEN
green
red
blue
324 CEN
green
red
blue
to produce:... (2 Replies)
Discussion started by: rocketman88
2 Replies
2. Shell Programming and Scripting
Hi,
Is there a print option to drop the data 1 line?
Basically the page is too close to the top of the page and I would like to drop it one line automatically, editing the actual data is complicated. (8 Replies)
Discussion started by: mcclunyboy
8 Replies
3. Shell Programming and Scripting
I am trying to delete lines in archived Apache httpd logs
Each line has the pattern:
<ip-address> - - <date-time> <document-request-URL> <http-response> <size-of-req'd-doc> <referring-document-URL>
This pattern is shown in the example of 6 lines from the log in the code box below. These 6... (1 Reply)
Discussion started by: Proteomist
1 Replies
4. Shell Programming and Scripting
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!
Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:
Hi How Are you?
I need to go now?
I will see you tomorrow!
Thanks in advance.... (1 Reply)
Discussion started by: sags007_99
1 Replies
5. Shell Programming and Scripting
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
3 Replies
6. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
7. Shell Programming and Scripting
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies
8. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
9. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
10. Shell Programming and Scripting
Hi all,
Let's say I have a script calling for the two variables PA_VALUE and PB_VALUE.
for pa in PA_VALUE
blah blah
do
for pb in PB_VALUE
blah blah
do
I have a text file with two columns of values for PA and PB.
14.5 16.7
7.8 9.5
5.6 3.6
etc etc
I would like to read this... (7 Replies)
Discussion started by: crimsonengineer
7 Replies
LEARN ABOUT DEBIAN
lm-profiler.conf
LM-PROFILER.CONF(8) System Manager's Manual LM-PROFILER.CONF(8)
NAME
/etc/laptop-mode/lm-profiler.conf - Configuration file for lm-profiler, a profiler for laptop-mode-tools.
DESCRIPTION
This manual page documents the options that can be set in the /etc/laptop-mode/lm-profiler.conf configuration file. For a description of
what lm-profiler does, see the lm-profiler(8) manpage.
SETTINGS
The syntax of options is OPTION=value.
The following settings are available in lm-profiler.conf:
VERBOSE_OUTPUT
Set this to 1 if you want to see a lot of output when you run lm-profiler, and 0 if you don't want this. Useful for debugging
purposes. (Currently does nothing.)
PROFILE_RUN_LENGTH
The length of a profiling run, in seconds. This should be a while, so that lm-profiler can gather enough information. The default
is 10 minutes (600 seconds).
ACTIVITY_INTERVAL_MIN
ACTIVITY_INTERVAL_MAX
The behaviour that you want to avoid when you have your hard drive spun down, is disk accesses that are spread out over time,
because your hard drive will have to spin up for each access. lm-profiler detects when applications perform disk accesses that
are at least some time apart (otherwise they can be considered part of the same access) but not TOO far apart (otherwise they are
no problem). These settings configure what lm-profiler considers "at least some time apart" and "too far apart", respectively, in
seconds.
RECOMMEND_DEFAULT_SERVICES
DEFAULT_SERVICES
If RECOMMEND_DEFAULT_SERVICES is set to 1 (enabled), then lm-profiler will always suggest turning off the services listed in
DEFAULT_SERVICES (separated by spaces).
IGNORE_PROGRAMS
Programs listed in this option, separated by spaces, will be ignored for disk activity profiling. The default settings (which can
be referenced as $DEF_IGNORE_PROGRAMS) include common utility programs and all programs used by lm-profiler itself.
RECOMMEND_NETWORK_SERVICES
When this option is enabled (value 1), lm-profiler will detect any services that are listening on network ports, and it will sug-
gest that you disable them.
IGNORE_NETWORK_SERVICES
Services listed in this configuration option (separated by spaces) are not suggested as a network service by lm-profiler. The
default values can be accessed as $DEF_IGNORE_NETWORK_SERVICES.
SEE ALSO
lm-profiler(8).
laptop_mode(8).
laptop-mode.conf(8).
AUTHOR
This manual page was written by Bart Samwel (bart@samwel.tk). Permission is granted to copy, distribute and/or modify this document under
the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
LM-PROFILER.CONF(8)