11-19-2019
Hello VBE,
That's not my intention and I am never going to overwrite the program. I am scanning a program and want to remove the comments while processing so that the keywords my scanning programs looks for will avoid looking through the comment lines.
Thanks for your response!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm looking to delete some files from directories.
I've just put in a file the location of these files.
e.g:
in file supprs.txt there is:
/usr/host/t1.txt
/etc/dev/u1.java
/home/new/files/view.c
Is it possible to take this file "supprs.txt" as a parameter in a shell command ? (2 Replies)
Discussion started by: yeclota
2 Replies
2. Shell Programming and Scripting
Hello,
Can anyone tell Command/Script to remove duplicate lines from the file? (2 Replies)
Discussion started by: Rahulpict
2 Replies
3. Shell Programming and Scripting
I want to remove the commented lines in a file identified by ' symbol at the start of each ine. A sample example will be like:
Input
-----
'IFerr_flag=0THEN
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
Output
-------... (3 Replies)
Discussion started by: joyan321
3 Replies
4. Shell Programming and Scripting
Hello,
I have a file as follow
a
b
c
c
d
d
e
I would like to write a awk command to insert # from the first occurence of
"c" to the end of the files.
OUTPUT should be like this
a
b
#c (5 Replies)
Discussion started by: phamp008
5 Replies
5. Shell Programming and Scripting
Hi,
i need some help. i am not sure about my idea.
I have a script directory under my home directory,which has a lot of scripts in it.
These are some names of the scripts in /axxhome/prdv/script
aly300.sh
axt300.sh
arv300.sh
clp300.sh
ctth300.sh
aly400.sh
axt400.sh
arv400.sh... (6 Replies)
Discussion started by: debu000
6 Replies
6. UNIX for Dummies Questions & Answers
Legends,
Can you please help me in following.
I need to comment lines from “/tmp/a.txt” from the line A to line B through the command prompt only.
Please use variables not direct values like 2 or 5
It can be done with VI editor but it's not matches with my requirement (: 2,5 s/^/#/g).
... (1 Reply)
Discussion started by: sdosanjh
1 Replies
7. Shell Programming and Scripting
Platform : RHEL 5.4
I have several .sql files in a directory. I want to comment lines 10 to 25 for all .sql files.
How can I do this ?
The symbol for comment in SQL is --
eg:
-- select salary from emp where empname = 'URS' ; (3 Replies)
Discussion started by: omega3
3 Replies
8. Shell Programming and Scripting
Please Help (novice to PERL and SHELL scripting)…. Need to create a script which removes all lines in $filename = "cycle_calendar_ftp_out" older than current date – a variable which will be a number of days passed to script. For Ex it will look at the end date which is the last field (4) and... (2 Replies)
Discussion started by: m3pwr
2 Replies
9. Shell Programming and Scripting
AIX.
we have multiple files eg B1234567 B1235468 etc. (numbers change daily, only constant is the B prefix)
trying to use using sed '/numberrange and length varies /d ' to remove a specific number range out of one of these files , we just don't know which one its in, as it could be in... (4 Replies)
Discussion started by: newbee2015
4 Replies
10. Shell Programming and Scripting
Hello,
I have some code that works more or less. This is called by a make file to adjust some hard-coded definitions in the src code. The script generated some values by looking at some of the src files and then writes those values to specific locations in other files. The awk code is used to... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
DTCK(1p) User Contributed Perl Documentation DTCK(1p)
NAME
dtck - Check the DNSSEC-Tools data files for sanity.
SYNOPSIS
dtck [options] [dtck_config_file]
DESCRIPTION
dtck checks DNSSEC-Tools data files to determine if the entries are valid. dtck checks the validity of DNSSEC-Tools configuration files,
rollrec files, and keyrec files. It does not perform the file checking itself, but runs checking programs specific to each type of data
file.
A dtck configuration file is consulted to determine the files to check. This file lists the DNSSEC-Tools data files and their types. If a
dtck configuration file is not given on the command line, dtck will only check the DNSSEC-Tools configuration file. This is equivalent to
running dtconfchk directly.
DTCK CONFIGURATION FILE
A dtck configuration file contains a list of the files to be checked by dtck. Except for comments, each line has the following format:
keyword file directory
keyword is one of "config", "rollrec", or "keyrec". file is the pathname of the file to be checked. directory is the name of the
directory that holds file and is optional.
The dtck configuration file contains the following types of records:
config
These lines define the DNSSEC-Tools configuration files that will be checked. The dtconfchk program will be used to verify these
files.
rollrec
These lines define the rollrec files that will be checked. The rollchk program will be used to verify these files.
keyrec
These lines define the keyrec files that will be checked. The krfcheck program will be used to verify these files.
comments
Any lines starting with an octothorpe (#) are comment lines and are ignored.
OPTIONS
dtck takes two types of options. Options of the first type are handled directly by dtck, controlling its output and processing. Options
of the second type are passed to the file-checking programs and are not further handled by dtck.
Options Handled by dtck
-defcon
This option directs dtck to add the default DNSSEC-Tools configuration file to the list of configuration files to be checked.
-list
The names of the files will be listed as they are checked.
-pretty
Clarifying output is added to the output from dtck and the file-checking programs.
-help
Display a usage message.
Options Not Handled by dtck
-count
The file-checking programs will display a final error count.
-quiet
No output will be given by the file-checking program.
-verbose
Verbose output will be given by the file-checking program.
-Version
Displays the version information for dtck and the DNSSEC-Tools package.
COPYRIGHT
Copyright 2007-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wayne Morrison, tewok@tislabs.com
SEE ALSO
dtconfchk(8), krfcheck(8), rollchk(8)
dnssec-tools.conf(5), keyrec(5), rollrec(5)
perl v5.14.2 2012-06-21 DTCK(1p)