02-15-2010
can you explain what are you trying to extract from these commands... because it won't make any sense...
Quote:
Srcreccnt=cat `ls ${SOURCE_DIR}/ATRPU_RP_ATU_*.csv | head -1`|wc-l
Tgtreccnt=cat `ls ${IMF_TARGET_DIR}/IMF_ATRPU_*.csv | tail -1`|wc-l
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i would like to retrieve seql result and write it into unix text file like "result.txt"
In unix, normally, I type "sql" and get into sql,then type "select....." to run and get the result....then copy and paste into result.txt
any possible way to write a script to run it automatically?... (3 Replies)
Discussion started by: happyv
3 Replies
2. Shell Programming and Scripting
Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in
1) starting with "20071126 11:11:11 Machine Header 1"
1000 lines...
"End machine header 1"
2) starting with "20071126 12:12:12 Machine... (5 Replies)
Discussion started by: vikas.iet
5 Replies
3. UNIX for Dummies Questions & Answers
hello
showrev -p | wc -l
returns:
381
What to do in case I want to have this output:
number of lines returned by showrev -p is: 381
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have a script executing fine in Unix but in linux I am getting different result.
I have three files under /local/home/temp/Gen
test.sh
list.txt
shst.txt
Contents of test.sh
--------------------------
#!/bin/ksh
K=0;
SCRIPT_DIR=/local/home/temp/Gen
cat... (2 Replies)
Discussion started by: malavm
2 Replies
5. UNIX for Dummies Questions & Answers
I am relatively new to UNIX and am having some really weird results with redirecting output. I will start at the beginning.
I have a file with consists of a list of a chemical name followed by a tab and then a string of characters known as a SMILE string in this format
PS_1 C=C
PS_2 ... (4 Replies)
Discussion started by: Osito22es
4 Replies
6. Shell Programming and Scripting
Hi,
I have defined 2 variables in a ksh file something like below.
x=abc
y=x
Now, I want to get abc printed using y.
I have tried echo $"$y" and I am getting $x but where as I am expecting abc.
Please suggest.
(something like pointer pointer in C language) (2 Replies)
Discussion started by: ravinunna
2 Replies
7. Shell Programming and Scripting
Getting the below error while executing this. Able to run the below commands Individually.
#!/bin/bash
a=$(printf "%d\n" 0x01E);
b=$(printf "%d\n" 0x01A);
echo $a
echo $b
c=`expr $a - $b`
echo $c
syntax error at line 2: `a=$' unexpected (2 Replies)
Discussion started by: sai_1712
2 Replies
8. UNIX for Advanced & Expert Users
Hi I am working on a script in which I am firing a query on database through Unix and getting the result set. I want to export that in an excel file. I am able to do so nut the result are exported horizontally one below the other. Can anyone plss help me out in exporting the Result in Tabular... (4 Replies)
Discussion started by: Saritau3
4 Replies
9. Shell Programming and Scripting
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
10. UNIX and Linux Applications
I m passing a variable stringg from Unix shell which has value 'Good Day' to ansible and from ansible to a second shell script where it print only Good instead of 'Good Day'
passing the variable stringg from unix shell script1.sh
echo $stringg
ansible-playbook install.yml -i... (1 Reply)
Discussion started by: mohtashims
1 Replies