Search Results

Search: Posts Made By: ravi0435
2,326
Posted By ravi0435
thanks everyone for your valuable suggestions.
Thanks everyone for your valuable suggestions...apprecaite that.

Ahmad - can you please tell me:

1. Whats the bolded piece doing ..i mean how is it getting rid of .txt?

for x in `ls...
2,326
Posted By ravi0435
Renaming a File
Hi,
I have a file name in the folder as payments.txt, After processing the data in this file it needs to be archived with date and timestamp in the end as:

payments_01142010_120023.txt

This...
2,476
Posted By ravi0435
Capturing a value in to variable.
Hi,
I currently have a shell script where it captures in the value in to 'TOTAL' and outputs to a file, i want to capture another value of a query in to another variable and output it.

Current...
6,291
Posted By ravi0435
Thanks guys... I just stuck to the solution...
Thanks guys...

I just stuck to the solution i mentioned....outputting it to a new temporary file...its easier that way.


thanks,
R
6,291
Posted By ravi0435
Replacing a field in pipe delimited TEXT File
Hi,
I want to replace a field in a text delimited file with the actual number of records in the same file.


HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ...
5,269
Posted By ravi0435
PERFECT SOLUTIONS :b: nawk -F'|' 'NR==1;...
PERFECT SOLUTIONS :b:

nawk -F'|' 'NR==1; $2==0 {s=$0; f=0; p=1}
$8=="" && $2 ~ /^[1-9][0-9]?+$/ && p {print s; f=1; p=0}
f && !/^TRL/; /^TRL/{end=$0} END{print...
5,269
Posted By ravi0435
Hi rubin, Your code perfectly works. Other...
Hi rubin,

Your code perfectly works. Other solutions i figured out which works are:


code-1
nawk -F'|' 'NR==1; $8=="" && $2!="0" && $1=="DTL" && NR==n+1 {print s} $2=="0" {s=$0; n=NR}
...
5,269
Posted By ravi0435
whats wrong in my code
Thanks Rubin ...really appreciate that.

I used this code as i dont know how far the Numbers further go(instead of ^[1-9]+ i said != "0" ):

nawk -F'|' 'NR==1; $8=="" && $2!="0" && NR==n+1...
5,269
Posted By ravi0435
Thanks Rubin that works..another problem
Thanks rubin really appreciate that...the command you sent worked for one set of files, I just noticed that there is another text file with similar data just a small difference i was trying to play...
5,269
Posted By ravi0435
Helo rubin
Hello Rubin:

thanks..it worked partially....with the code you gave the following is the output:

HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ...
5,269
Posted By ravi0435
Problem working with Pipe Delimited Text file
Hello all:
I have a following textfile data with name inst1.txt

HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|H|5464-1|0|02-02-2008|02-03-2008||||F|||||||||...
8,253
Posted By ravi0435
problem with headers
Hi all:
HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|H|5464-1|0|02-02-2008|02-03-2008||||F|||||||||
DTL|D|5464-1|1|02-02-2008|02-03-2008|1||JJJ...
8,253
Posted By ravi0435
:) As soon i submitted the 1st message it...
:)

As soon i submitted the 1st message it errored out to - "Page cannot be displayed"...so i had to retype everything and submit again....surprisingly to find the first post was submitted...
8,253
Posted By ravi0435
Perfect- vgersh99 You were right...it was...
Perfect- vgersh99

You were right...it was my mistake i missed the column count.

really appreciate your time...i wish there was some kind of rating here...you deserve more than 10/10...
8,253
Posted By ravi0435
Perfect - vgersh99 you were right...my column...
Perfect - vgersh99
you were right...my column count was wrong

really appreciate your time....wish there was some kind of rating here.... u deserve more than 10/10 though...!!


thanks,
ravi
8,253
Posted By ravi0435
Hi: thanks again If i execute this: ...
Hi:

thanks again

If i execute this:

nawk -F'|' '$8 == "" ' inst.txt >null.txt
the null.txt is getting all the records dumped in to it as it is from the original file.

nawk -F'|' '$8...
8,253
Posted By ravi0435
Thanks VGERSH99. But could you please tell me...
Thanks VGERSH99.
But could you please tell me how do i test it on the unix command prompt...i mean how do i send in the input file? so that it checks for the null column in all the records?
...
8,253
Posted By ravi0435
Need help with shell script for chekking a column in txt file - pipe delimited
Hi:

I have a text file date(pipe delimited) which is loaded in to the DB using sql loader(&CTL files) after some initial validation by the shell script.
Now i have a situation where the shell...
8,359
Posted By ravi0435
Solution for that post...another question
Hi,
I found the solution, here is what the problem was...i was missing ";" on the the lines 235 & 236

+234 sqlplus $user <<EOF1
+235 set heading off;
+236 set feedback off;
+237 spool...
8,359
Posted By ravi0435
thanks for the reply Franklin52 but i did close...
thanks for the reply Franklin52 but i did close it....see line numbers 234 and 240......the one you are mentioning is commented out.


thanks,
ravi
8,359
Posted By ravi0435
Problem with shell script - Error: 0403-057
Hi,
I am new to shell scripts may be the error is very very small and i am unable to catch hold of it, any suggestion would be appreciated....error is at the bottom:

+210 # get file type
+211...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy