I have to pass the input as arrays yes and i did make a typo near the echo
yes the echo at the end is outside the loop so it will only print out the last row i think
issue is even if i pass the target as variable the code is only picking the first value passed generating the md5 and outputting the md5 for that line. I am trying to figure out how can i loop through all the columns passed inside the array and concatenate them using, and then calculate their md5 and then write it back to the file as a new column.
I know its a strange requirement Please point me to the write direction
I m trying something like this with no avail
------ Post updated at 01:45 AM ------
Just a thought may be i should change my thinking. Just throwing it out i still did not figure out how to write the code but i may have a starting point
step one is if i can concatenate all the column names i send as a parameter to the script and then apply md5 function on it and then store the result of the output in a column in the end does this make any sense.
I've recently started using structures, but I am having problems in allocating the structure dynamically. In the code below if i allocate the structure in the main program it works fine, and i get the expected output. However if i use the function rper below to increase the size of the structure i... (0 Replies)
I want to launch some shell scripts.
I would have the possibility to change the number of shell scripts launched dynamically by modifying a variable, or a configuration file.
For example, I start to launch 4 scripts at the same time, and after that, by modifying a variable, 6 scripts are... (0 Replies)
Hallo,
I am working on a kdialog. This shall be able to load the required commands from a .conf file.
First step runs good by loading the entries (selectabel entries) in a variable:
MIRRORSELECT=$(kdialog --radiolist "Select your nearest mirror" $VAR1)
The kdialog is accordingly correct... (2 Replies)
Hi,
I am using ksh , i have requirement to run 4 functions in background , 4 functions call are available in a case that case is also in function, i need to execute 1st function it should run in background and return to case and next i will call 2nd function it should run in background and... (8 Replies)
Hi all,
I have a PLSQL script which has a IN list where it takes some ids as input. For example
SELECT * FROM EMPLOYEE WHERE EMPLOYEE_ID IN (comma separated list )
I want to run this quest inside a shell script but I would like to prepare the IN list dynamically where the employee ids... (1 Reply)
Hi everyone,
I have a situation in which I have multiple (3 at last count) date columns in a CSV file (, delim), which need to be changed from:
January 1 2017 (note, no comma after day)
to:
YYYY-MM-DD
So far, I am able to convert a date using:
date --date="January 12, 1990" +%Y-%m-%d
... (7 Replies)
Hi ,
Can any please help the below requirement on all multiple servers and multiple dbs.
update configuration set value='yes' ;1)
the above statement apply on 31 Databases at a time on different Ip address
eg : 10.104.1.12 (unix ip address )
the above ip box contains 4 db's eg : db... (2 Replies)
Hi All,
i am trying to print required multiple columns dynamically from a fie.
But i am able to print only one column at a time.
i am new to shell script, please help me on this issue.
i am using below script
awk -v COLT=$1 '
NR==1 {
for (i=1; i<=NF; i++) {
... (2 Replies)
Discussion started by: balu1234
2 Replies
LEARN ABOUT DEBIAN
metalink
METALINK(1) General Commands Manual METALINK(1)NAME
metalink -- commandline metalink generator
SYNOPSIS
metalink [input files] [ < mirror list]
DESCRIPTION
This manual page documents briefly the metalink command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
metalink allows you to generate metalinks from a list of mirrors and a collection of files. The files are hashed and the resulting metalink
is generated on the stdout.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-h--help
Produce a help message
--version
Print out the name and version.
--md5
Generate metalink from md5sum file(s).
--addpath path
Append a path to the mirrors ('/' is not checked)
--headerfile arg
Include file after the root element declaration.
--nomirrors
Don't read mirrors from stdin
--hashlist
List hashes only (implies nomirrors)
--desc arg
Add metalink description
-d arg
Include given digest
--mindigests
Include: md5 sha1
--somedigests
Include: md5 sha1 ed2k
--alldigests
Include all possible digests
Supported algorithms are (-d options): md4 md5 sha1 sha256 sha384 sha512 rmd160 tiger crc32 ed2k gnunet sha1pieces
Mirror lists are single line definitions according to: [location [preference] [type] % ] mirror base url
EXAMPLES
http://example.com/ as a mirror: echo http://example.com | metalink -d md5 -d sha1 *
http://example.com/ as a mirror with preference and location: echo us 10 % http://example.com | metalink -d md5 -d sha1 *
http://example.com/ as a mirror with preference only: echo 0 10 % http://example.com | metalink -d md5 *
AUTHOR
This manual page was written by A. Bram Neijt bneijt@gmail.com for the Debian system (but may be used by others). 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.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
METALINK(1)