Sponsored Content
Top Forums Shell Programming and Scripting How to take values from a file.? Post 302945319 by mjf on Thursday 28th of May 2015 09:21:26 AM
Old 05-28-2015
Take a look at the below link for at least one approach you can take:

Match or no match
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PERL:How to convert numeric values txt file to PACKED DECIMAL File?

Is there any way to convert numeric values txt file to PACKED DECIMAL File using PERL. Regards, Alok (1 Reply)
Discussion started by: aloktiwary
1 Replies

2. Shell Programming and Scripting

Replacing values in a file based on values in another file

Hi I have 2 files:- 1. List of files which consists of names of some output files. 2. A delimited file; delimted by "|" I want to replace the value of the $23 (23rd column) in the delimited file with name in the first file. It is always position to position. Meaning first row of the first... (5 Replies)
Discussion started by: pparthiv
5 Replies

3. Shell Programming and Scripting

remove values of a file one by one from 2nd file and then print the remaining values of 2nd file

Hi all, I have 2 files. One contains only 1 column and other one contains 2 columns, let say 1_col.txt and 2_col.txt respectively. Here, I will try to explain with an example. Input files : 1_col.txt 2_col.txt a a b x a c p ... (5 Replies)
Discussion started by: AshwaniSharma09
5 Replies

4. Shell Programming and Scripting

Compare values in two files. For matching rows print corresponding values from File 1 in File2.

- I have two files (File 1 and File 2) and the contents of the files are mentioned below. - I am trying to compare the values of Column1 of File1 with Column1 of File2. If a match is found, print the corresponding value from Column2 of File1 in Column5 of File2. - I tried to modify and use... (10 Replies)
Discussion started by: Santoshbn
10 Replies

5. Shell Programming and Scripting

Referencing file for values and referencing another file to replace values

Hi I have a file which has values in each line: MP304,d40000 MP310,ff0000 etc I have another file which as the first value in it and is unique in the file(not repeated). I need to replace a string with the second value above. The second file contents is as follows:(snippet) <g ... (12 Replies)
Discussion started by: majikins
12 Replies

6. Shell Programming and Scripting

Replace values in a file with values from another file

Hi, I have 2 input files: File 1: echo Name > create_Name.txt echo Group /dir/group, Name >> create_Name.txt File 2: Name AAA BBB CCC group A B C dir A1 B1 C1 ................................ Need to replace the contents of File 1 with column 2, 3 & 4 values of File 2... (8 Replies)
Discussion started by: gctex
8 Replies

7. Shell Programming and Scripting

Read record from the text file contain multiple separated values & assign those values to variables

I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables. I need to read this file which is an input to my script Config.txt file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies

8. Shell Programming and Scripting

awk file to read values from Db2 table replacing hard coded values

Hi, I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below... if (start_new_rec=="true"){ exclude_user="false"; user=toupper($6); match(user, "XXXXX."); if (RSTART ==2 ) { ... (9 Replies)
Discussion started by: asandy1234
9 Replies

9. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

10. Shell Programming and Scripting

Taking key values from one file and extracting values from another file

Hi, I have two files with values in both. File1: cat 2 3 dog 4 5 elephant 6 7 camel 2 3 File2: ----+--gkf;ajf= ---+---- +----- cat -------=----+ 3 | 4 ----- dog ------++-- 5 | 9 ----++-- elephant | 5 | 7 ---++ camel ------ ++++_---- || 8 | 9 I want the final file as: cat 4... (1 Reply)
Discussion started by: npatwardhan
1 Replies
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)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy