9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I'm facing issue while using script.
Chk_Etl_Status=`cat /dstage/questnet/qnetdv/input/Etl_Status.dat|cut -d"," -f1`
echo Chk_Etl_Status=$Chk_Etl_Status
above result is giving me sometime value as 1 and sometime error message as
Chk_Etl_Status=
dsjoblaunch.sh: test: Specify a... (5 Replies)
Discussion started by: Amit786
5 Replies
2. Shell Programming and Scripting
input.csv:
Field1,Field2,Field3,Field4,Field4
abc ,123 ,xyz ,000 ,pqr
mno ,123 ,dfr ,111 ,bbb
output:
Field2,Field4
123 ,000
123 ,111
how to fetch the values of Field4 where Field2='123'
I don't want to fetch the values based on column position. Instead want to... (10 Replies)
Discussion started by: bharathbangalor
10 Replies
3. Shell Programming and Scripting
I have a file like this
############################################
# ParentFolder Flag SubFolders
Colateral 1 Source1/Checksum
CVA 1 Source1/Checksum
Test 1 VaR/Checksum
Test2 1 SVaR/Checksum
FX 1 ... (6 Replies)
Discussion started by: manas_ranjan
6 Replies
4. Shell Programming and Scripting
Hi,
App.log contains the data-
=================================================
Value of DsRef =null
Recovery File exixts
Recovered readFile 20110509 17:00:00.369019 +0100s
The DsRef Recovered from Recovery.txt file : 20110509 17:00:00.369019 +0100
Recovered from Recovery.txt file... (2 Replies)
Discussion started by: pspriyanka
2 Replies
5. Shell Programming and Scripting
Hello Team,
In the below code....The variabe values are not fetch from input table into SELECT statements.
===========================
#!/usr/bash
DATABASE=XXXXX
inputFILE=$1
db2 connect to $DATABASE
TABLENAME=`echo $inputFILE|awk '{print $1}'`
COLUMNNAME=`echo $inputFILE|awk... (2 Replies)
Discussion started by: rocking77
2 Replies
6. Shell Programming and Scripting
Hi Everybody,
I would like you to help me with the following problem.
Given is a path to a file like this:
/root/DIR/subdir/file.dat
Having this path I would like to grep/sed or whatever the directory string
that matches the following pattern ''.
I just need the matching directory... (5 Replies)
Discussion started by: hhoosscchhii
5 Replies
7. Shell Programming and Scripting
hi all
I am using awk utility to parse the file and fetching two different vaues from two different record of a record set.
I am able to see the result, now i want to store the result and perform some check of each values form database to mark valid and invalid.
could you please help me... (3 Replies)
Discussion started by: singhald
3 Replies
8. UNIX Desktop Questions & Answers
After giving
grep -A4 "feature 1," <file name>
I have extracted the following text
feature 1,
subfeat 2,
type 1,
subtype 5,
dump '30352f30312f323030392031313a33303a3337'H -- "05/01/2009 11:30:37" --
--
... (1 Reply)
Discussion started by: shivi707
1 Replies
9. Shell Programming and Scripting
Hi
I have this below script...I want to execute the shell command "rm" in the below script
but it is not working. Can anybody why so?
I got the below error
rm: /users/amvarma is a directory
sh: /*-log*: not found
-------------------
$u=`whoami`;
print "$u\n";
$op_1=$ARGV; # for... (0 Replies)
Discussion started by: amitrajvarma
0 Replies