10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a job that produces a file of barcodes that gets added to every time the job runs
I want to check the list to see if the barcode is already in the list and report it out if it is. (3 Replies)
Discussion started by: worky
3 Replies
2. Shell Programming and Scripting
<?xml version="1.0" encoding="UTF-8"?>
<Document>
<FIToFICstmrCdtTrf>
<GrpHdr>
<MsgId>10001</MsgId>
<NbOfTxs>1</NbOfTxs>
<IntrBkSttlmDt>2015-05-06</IntrBkSttlmDt>
<SttlmInf>
<SttlmMtd>CLRG</SttlmMtd>
</SttlmInf>
<PmtTpInf>
... (2 Replies)
Discussion started by: harish2015
2 Replies
3. Shell Programming and Scripting
I'm trying to grab a list of file names from a directory, then process those files 5 at a time. In the link below. Instead of using files I'm using the files array which contains 15 strings starting with AAA.
So I'm trying to assign $fileset 5 of the strings at a time to pass to a command. So... (4 Replies)
Discussion started by: zBernie
4 Replies
4. Shell Programming and Scripting
A simple script:
#!/bin/bash
test=test
test1=(test1 test2 test3)
echo ${test1
}
ssh server 'echo '$test'; echo '${test1
}' ; echo '${test1}' ; for m in $(seq 1 $(echo '${test1
}' | tr " " "\n" | wc -l)); do echo $m ; echo '${test1}'; done'Here is the result:
test1 test2 test3
testing... (5 Replies)
Discussion started by: mharald
5 Replies
5. Shell Programming and Scripting
I'm trying to send the file list as parameter to another job and execute it.
But the loop doesn't work, the inner job is running only once and not twice as expected
for filelist in $(ls -rt *.txt | tail -2)
do
echo $filelist
export filelist
cmd="$Program -config $configfile -autoexec... (11 Replies)
Discussion started by: asandy1234
11 Replies
6. Shell Programming and Scripting
Hello,
I have an xml file whose contacts are like below:
<Node>Apple
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Mango
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Apple
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Bannana (3 Replies)
Discussion started by: umarsatti
3 Replies
7. Shell Programming and Scripting
Hey all,,
I know cshell is harmful:) but I am using this just "to know" - for educational purposes!... not for a long-term use.
lets say i have a list..
set arr=(x y z e f)
I wanna iterate the list with foreach ,, not with while.!!
foreach i $arr
echo $i
end
does not work (2 Replies)
Discussion started by: eawedat
2 Replies
8. Shell Programming and Scripting
Hi,
I am having an conf file like this:
<Main>
<NODE>
<NODENAME>FRUITS</NODENAME>
<NAME>APPLE</NAME>
<COLOUR>RED</COLOUR>
<NODE>
<IsWrapper/>
<NODENAME>SEASONAL</NODENAME>
<NODE>
<NAME>MANGO</NAME>
<COLOUR>GREEN</COLOUR>
</NODE>
</NODE>... (4 Replies)
Discussion started by: vanitham
4 Replies
9. Shell Programming and Scripting
Could someone please point me in the right direction with the following?
I have a program that generates logs that contains sections like this:
IMAGE INPUT
81 0 0.995 2449470 0 1726 368 1 0.0635 0.3291
82 0 1.001 2448013 0 1666 365 1 0.0649 ... (4 Replies)
Discussion started by: euval
4 Replies
10. Shell Programming and Scripting
hello,
new to this forum. but i have a requirement to extract the value from multiple xml node and print out the values to new file with comma seperated. would like to know how this would be done using either sed/perl or some unix script. an example would be tremendous...
sample input file:... (2 Replies)
Discussion started by: davidsouk
2 Replies