04-16-2009
Hi Ghostdog
But if want to use same syntax bt here the value for STEP1 and STEP2 is not hard coded but if i want to pass these value through varialble thn how can i acheive this n how can i define the variable
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to print only lines in between two strings and not the strings using awk.
Eg:
OUTPUT
top 2
bottom 1
left 0
right 0
page 66
END
I want to print into a new file only
top 2
bottom 1
left 0... (4 Replies)
Discussion started by: jisha
4 Replies
2. Shell Programming and Scripting
Hi experts,
You cool guys already given me the awk script below-
awk '/9366109380/,printed==5 { ++printed; print; }' 2008-09-14.0.log
Morever, i have one more things-
when i awk 9366109380, i can also see the Upper 3 lines as well as below 5 lines of that string.
Line 1.... (3 Replies)
Discussion started by: thepurple
3 Replies
3. Shell Programming and Scripting
Hi,
Please provide shell script to Remove empty lines(space) between two lines containing strings in a file.
Input File :
A1/EXT "BAP_BSC6/07B/00" 844 090602 1605
RXOCF-465 PDTR11 1
SITE ON BATTERY
A2/EXT... (3 Replies)
Discussion started by: sudhakaryadav
3 Replies
4. Shell Programming and Scripting
pls help me on this... and im really sorry because i really don't know where to start here...
FILE1
ABC DEF 10 2
DEF GHI 11 3
GHI JKL 12 5
JKL MNO 13 7
MNO PQR 14 5
requirements:
1. The third string should only be 10 or 12
2. The fourth string should only be 2 or 3
3. Prinnt... (1 Reply)
Discussion started by: kingpeejay
1 Replies
5. Shell Programming and Scripting
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Discussion started by: kmkocot
1 Replies
6. Shell Programming and Scripting
Hi,
I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines).
#################################
huge_file.txt
a
a
ab
b
##################################
small_file.txt
a 1.5
b 2.5
ab ... (4 Replies)
Discussion started by: AshwaniSharma09
4 Replies
7. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
8. Shell Programming and Scripting
Hello,
I can extract lines in a file, between two strings but only one time.
If there are multiple occurencies, my command show only one block.
Example, monfichier.txt contains :
debut_sect
texte L1
texte L2
texte L3
texte L4
fin_sect
donnees inutiles 1
donnees inutiles 2
... (8 Replies)
Discussion started by: theclem35
8 Replies
9. Shell Programming and Scripting
Hello everyone,
Maybe somebody could help me with an awk script.
I have this input (field separator is comma ","):
547894982,M|N|J,U|Q|P,98,101,0,1,1
234900027,M|N|J,U|Q|P,98,101,0,1,1
234900023,M|N|J,U|Q|P,98,54,3,1,1
234900028,M|H|J,S|Q|P,98,101,0,1,1
234900030,M|N|J,U|F|P,98,101,0,1,1... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
10. Shell Programming and Scripting
I have a text file contains
*02638650* SAMBO
1 Spouse SAMBO FELIX
*01591453* MADUAGUGBUO
4 Child3 MADUAGUGBUO JOY
*01488523* ANYIAM
1 Spouse ANYIAM FRANCA
2 Child1 ANYIAM GRACE
*01647769* EGWUTUOHA
0 Principal ... (6 Replies)
Discussion started by: ktsis
6 Replies
LEARN ABOUT CENTOS
sha1hmac
sha512hmac(8) System Administrator's Manual sha512hmac(8)
NAME
sha512hmac - compute and check HMAC values
SYNOPSIS
sha512hmac [OPTIONS] [-u | -k keyfile | -K key] [-c file [-q] | file [...] ]
DESCRIPTION
The sha512hmac command can compute and/or verify HMAC and unkeyed checksum values for the contents of files. Variations such as
sha384hmac, sha256hmac, and sha1hmac all operate similarly except that they use different digest algorithms.
SELF-TEST
As a safety measure, the tool will always attempt to verify a previously- computed HMAC over itself with the contents of a second file
(sha512hmac.hmac for sha512hmac, and a similarly-named file for each variation) before processing any other files, and will exit with an
error if the second file either cannot be read or does not match the computed value.
OPTIONS
-c Check that the HMAC values and names listed in the specified file(s) are correct for the files which are available. The format of
the files should match the output which the tool produces when computing the values: a hex-encoded HMAC value and then a filename,
separated by whitespace.
-q Suppress any output when checking values.
-d cfgdir
Specify the configuration directory to be used by the NSS library. The default location is /etc/pki/nssdb.
-h algorithm
Generate the HMAC value using a non-default hashing algorithm. The default is determined by the name used to invoke the tool
(sha1hmac, sha256hmac, etc.). If no default can be derived this way, the default setting will be sha512. Specify help or another
invalid value to obtain a list of recognized algorithms.
-u Generate an unkeyed checksum instead of an HMAC. The output produced by the tool should then be comparable to that of sha1sum and
related tools.
-k filename
Use the contents of the specified file as the secret key used in computing the HMAC values. If no key file or text is specified, a
hard-coded default value is used. This option should always be used.
-K text
Use the text of the argument as the secret key used in computing the HMAC values. If no key file or text is specified, a hard-coded
default value is used.
-b Process file contents in binary mode, marking output as such by prefixing filenames with *. This option is not expected to have any
other meaningful effect.
-t bits
Truncate HMAC values to a given length when computing or verifying them.
-S Generate an HMAC over the tool itself and output it on standard out. This is a bootstrapping option which is not expected to be
used.
-P Attempt to pass all input files through prelink -y before processing their contents. The tool always attempts to do so when comput-
ing or performing a self-check.
EXAMPLES
Example output from sha1hmac, for files on the developer's system:
e64db5e8a9b8a40091e5302fa4de0bfc6c5d19d0 /etc/passwd
e7d93a2c70ec4d7720c6f2b033c1e5ea19f2d677 /etc/group
d732d6df77114ea6b81a43d64655f86b1e5ee925 /etc/services
ad92162bef979054a75d1f3510e6b05902bec641 /etc/hosts
SEE ALSO
fipshmac(1), fipscheck(1), prelink(8)
BUGS
Probably, but let's hope not. If you find any, please either report them in the bug database at http://bugzilla.redhat.com/ against the
"hmaccalc" component, or in the trac instance at https://fedorahosted.org/hmaccalc/.
AUTHOR
Nalin Dahyabhai <nalin@redhat.com>
hmaccalc 0.9.13 2009/03/19 sha512hmac(8)