Search Results

Search: Posts Made By: 2nilotpal
31,489
Posted By 2nilotpal
awk - storing multiple line data in variables
hi Ygor,
Thanks for the assistance.
I am able to use the local variable approach (j=$1...) but not the array approach. The arracy approach is taking the entire string 'awk -f t1.awk abc.flag' as an...
31,489
Posted By 2nilotpal
awk - storing multiple line data in variables
Hi Ygor,
Thanks for your prompt help.
Can we read the files form line 1 and 2 at one attempt through awk?
individually I am able to read the lines and redirect to variables.
Can I read both the...
31,489
Posted By 2nilotpal
awk - storing multiple line data in variables
Hi Ygor,
I created the following file <<t1.awk>>
BEGIN{FS = "|"; RS = "\n"}
NR==2{print $1, $2} | read var1 var2
echo $var1 ' ' $var2

as my data is "|" delimited
then from $prompt I am...
31,489
Posted By 2nilotpal
awk - storing data in variables
In AWK script how do I store data in variables for later use.
I have a multiline input and I do not want to print the data read on the console
Thnaks in advance.
Nilotpal.
5,897
Posted By 2nilotpal
Embedded SQL in AWK script
Hi All,
Can I use AWK script to read data from Oracle table (some embedded SQL perhaps) The reason for this that I have a data file and I need to do some basic validations of the data in the file...
10,442
Posted By 2nilotpal
retrieve timestamp associated with a file
Hi All,
I am involved in a Datawarehousing project where my data files(ASCII text) are loaded on a Unix directory. When I do a Ls -l in Unix prompt i get a file listing along with the timestamp when...
Showing results 1 to 6 of 6

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