01-09-2018
- The output you have shown us might have come from the code you have shown us as an output based on input files you have not shown us or it might be totally unrelated to the code you have shown us. And, we have no way to determine whether it is a product of this code or not.
- You definitely have not shown us the output produced by the echo statements in the code you have shown us.
- We have no idea what your input files look like.
- We have no idea what the names of the input files you are processing look like.
- We have no idea what operating system you're using.
- We don't know what output you're hoping to get.
Under these conditions, how do you expect us to help you?
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can someone help me with the following 2 objectives?
1) The following command is just an example. It gets a list of all print jobs. From there I am trying to extract the printer name. It works with the following command:
lpstat -W "completed" -o | awk -F- '{ print $1}'
Problem is, I want... (6 Replies)
Discussion started by: TheCrunge
6 Replies
2. Shell Programming and Scripting
I need to add the content of file1 to file2 - all lines but not those existing in file2 already, so the "cat file1 >> file2" doesn't work.
For example,
file1:
100 xxxxxx str1
102 xxxxxx str2
File2:
50 xxxxxxx xxx
30 xxxxxxxxxxx
102 xxxxxx str2 xxxx
......
the result:
50 xxxxxxx... (9 Replies)
Discussion started by: bluemoon1
9 Replies
3. Shell Programming and Scripting
Hello,
I have file to work with. It has 5 columns. The first three, altogether, constitutes the position. The 4th column contains some values for downstream analysis and the fifth column contains some values that I want to add to 4th column (only if they happen to be in the same position).
My... (5 Replies)
Discussion started by: menenuh
5 Replies
4. Shell Programming and Scripting
Hello everyone...
I need to find out, how to find longest line or possibly lines in several files which are arguments for script. The thing is, that I tried some possibilities before, but nothing worked correctly.
Example
when i use:
awk ' { if ( length > L ) { L=length ;s=$0 } }END{ print... (23 Replies)
Discussion started by: 1tempus1
23 Replies
5. UNIX for Dummies Questions & Answers
I know uniq exists, but am not sure how to remove repeating lines when they are groups of two different lines repeating themselves, without using sort. I need them to be sorted in the original order, just to remove repeats.
cd /media/AUDIO/WAVE/9780743518673/mp3
~/Desktop/mp3-to-m4b... (1 Reply)
Discussion started by: glev2005
1 Replies
6. Shell Programming and Scripting
Hey Guys!
I have written a code which combines lots of files into one big file(.csv).
However, each of the original files had headers on the first line, and now that I've combined the files the headers are interspersed throughout the new combined data frame. For example, throughout the data... (21 Replies)
Discussion started by: gd9629
21 Replies
7. Shell Programming and Scripting
Hi,
I need to find the lines which are repeating in a file
cat file1
abcdef 23-1
abcdef 24-1
bcdeff 25-0
ttdcfg 26-0
ttdcfg 20-0
bcdef1 25-0
bcdef2 25-0
bcdef3 25-0
bcdef4 25-0
bcdef4 00-0any help is greatly appreciated. Thanks in advance.
In need to find which one are... (3 Replies)
Discussion started by: jpkumar10
3 Replies
8. Shell Programming and Scripting
*log files are in date order
sample logs...
ciscoresets_20120314
ciscoresets_20120313
ciscoresets_20120312
ciscoresets_20120311
ciscoresets_20120310
cat ciscoresets_20120314
SYDGRE04,10,9
SYDGRE04,10,10
SYDGRE04,10,11
SYDGRE04,10,12
SYDGRE04,10,13
SYDGRE04,10,14
SYDGRE04,10,15... (2 Replies)
Discussion started by: slashbash
2 Replies
9. Shell Programming and Scripting
Hi,
I'm having trouble in achieving the following scenario. There is a txt file with thousands of lines and few lines are repeated, which needs to be removed using a script.
File.txt
20140522121432,0,12,ram
Loc=India
From=ram@xxx.com, To=ravi@yyy.com,,
1
2
3
4
.
.
30... (18 Replies)
Discussion started by: Gautham
18 Replies
10. Shell Programming and Scripting
I am trying to make my script as simple as a possible but, I am not sure if the way I am approaching is necessarily the most efficient or effective it can be. What I am mainly trying to fix is a for loop to remove a string from the specified files and within this loop I am trying to copy the lines... (2 Replies)
Discussion started by: Allie_gastrator
2 Replies
LEARN ABOUT DEBIAN
lsdnssec
LSDNSSEC(1p) User Contributed Perl Documentation LSDNSSEC(1p)
NAME
lsdnssec - List DNSSEC components of zones from files or directories
SYNOPSIS
lsdnssec [-d 1-9] [OPTIONS] [FILES OR DIRECTORIES...]
DESCRIPTION
The lsdnssec program summarizes information about DNSSEC-related files. These files may be specified on the command line or found in
directories that were given on the command line. The -d flag controls the amount of detail in the lsdnssec output.
lsdnssec displays the following information about each zone for which it collects information:
keys
Key information is shown about the keys currently in use. A bar graph is included that shows the age of the key with respect to the
configured expected key lifetime.
This information is collected from any .krf files lsdnssec finds.
rolling status
If any zone keys are being rolled via rollerd, then the status of the rolling state is shown. The time needed to reach the next state
is also displayed.
This information is collected from any .rollrec or .rrf files found by lsdnssec.
OPTIONS
-z ZONENAME1[,ZONENAME2]
--zone=ZONENAME1[,ZONENAME2]
Only prints information about the named zone(s).
-p NUMBER
--phase=NUMBER
Only prints information about zones currently being rolled by rollerd and where either a zsk or a ksk rollover is taking place and is
in phase NUMBER.
If the phase NUMBER is specified as 0, then any zone in any rolling phase will be printed (but not zones that aren't being rolled at
all).
This flag is especially useful to find all of your zones that are currently in KSK rolling phase 6, which requires operator
intervention to propagate the new DS records into the parent zone.
-r
--roll-status
Show only rolling information from the rollrec files. By default both roll-state and key information is shown.
-k
--key-data
Show only keying information from the krf files. By default both roll-state and key information is shown.
-K
--key-gen-time
Normally rollerd calculates the age of a key based on the last time a key was rolled. However, it's also possible to calculate the age
of a key based on the difference between the time of execution and when the key was created (which was typically before the rolling
began). The -K flag switches to this second mode of key age calculation (which will not match how rollerd actually performs).
-M
--monitor
The -M flag gives an abbreviated version of lsdnssec output that is intended for use by monitoring systems. It displays the zone name,
the rollover phase, and the time remaining in that phase. This option implicitly sets the -r flag on and sets the detail level to 1.
-d 1-9
--detail 1-9
Controls the amount of information shown in the output. A level of 9 shows everything; a level of 1 shows a minimal amount. The
default level is 5.
--debug
Turns on extra debugging information.
COPYRIGHT
Copyright 2009-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wes Hardaker <hardaker AT AT AT users.sourceforge.net>
SEE ALSO
lskrf(1)
zonesigner(8), rollerd(8)
perl v5.14.2 2012-06-21 LSDNSSEC(1p)