Search Results

Search: Posts Made By: nex_asp
5,098
Posted By nex_asp
Thank corona I am trying achieve following ...
Thank corona

I am trying achieve following

assume file contains 12 months records which can easily be searched like this

awk '/Jan/{print}' file lists all rows contains string Jan

and...
5,098
Posted By nex_asp
awk pattern match and count unique in column
Hi all I have a need of searching some pattern in file by month and then count unique records

D11
G11
R11 -------> Pattern available in file
S11
Jan$1 to $5 column contains some records in...
1,318
Posted By nex_asp
Thanks Corona for reply I tried like this to...
Thanks Corona for reply

I tried like this to remove blank fields
Worked fine

for(i=1;i<=10;i++)
if(A[1,i,1]=="")
print "Blank"
else
{
...
1,318
Posted By nex_asp
How to find length of multidimension array ???
Does anyone know how to find length of multi dimension array
of following type

A[FILE,INDEX,COLUMN] A[INDEX, COLUMN]for simple array I is to do

for (i in A)n++ to find length of array but if...
1,296
Posted By nex_asp
awk execution problem in csh
This has no error
awk '($8==150) && ($4>=11.001 && $4 <= 12) && ($5>=91.001 && $5<=92){print}' OFS="\t" file
following are unable to run in csh

this is giving error awk: line 1: syntax error at...
1,785
Posted By nex_asp
No I want to copy contents of $file to new file...
No I want to copy contents of $file to new file to be created.

---------- Post updated at 09:13 AM ---------- Previous update was at 05:26 AM ----------

please tel me.. whether its possible or...
1,785
Posted By nex_asp
Check for Pattern if exists write to file
Hi ! All

I just want to search and write to new file if pattern is found in text file

following are my text files by which I want to search Month and last column number

my text file1
...
1,265
Posted By nex_asp
I need output of FNR==1paste tmp file_1.dat12 14...
I need output of FNR==1paste tmp file_1.dat12 14 99 AMC 12 35
15 35
25 87
15 64
above is result of paste tmp filename
1,265
Posted By nex_asp
This won't help till FNR==NR of file_1.dat...
This won't help

till FNR==NR of file_1.dat I want to print file_1.txt selected column from row 1if I had few files I would have tried something like this ---> not working properly

i=$(awk 'FNR...
1,265
Posted By nex_asp
I have about 100 file How do I set order in loop...
I have about 100 file How do I set order in loop ?

I want like this

file_1.txt file_1.dat > output1
file_2.txt file_2.dat > output2
file_3.txt file_3.dat > output3
file_4.txt file_4.dat >...
1,265
Posted By nex_asp
How to combine data from 2 file ? How to print ?
Dear friends,

I am just trying to print data from 2 file,namely file_1.txt and file_1.dat (specific column of ROW 1)

file_1.txt
12 13 14 15 99 AMC 69 36 89...
1,294
Posted By nex_asp
suppose if I want print dt_end in awk 'FNR ==...
suppose if I want print dt_end in
awk 'FNR == 1{print $1 " \t"$2 } FS="," file

How to include variable dt_end in above

---------- Post updated at 05:53 AM ---------- Previous update was at...
1,294
Posted By nex_asp
How can I make my script simple?
Hi .. I am trying to print first row few columns and last row few column...

I am doing like this... I want to do using single awk


for file in *.xyz; do
dt_end=$(awk 'END{print $2 "\t" $3...
12,095
Posted By nex_asp
Thank you so much...all of you.
Thank you so much...all of you.
12,095
Posted By nex_asp
How to convert 24 hour time to 12 hour timing?
Hi friends, I want to convert 24 hour timing to 12 hour please help me...

my data file looks like this..
13-Nov-2011 13:27:36 15.32044 72.68502
13-Nov-2011 12:08:31 15.31291 ...
9,035
Posted By nex_asp
Thank you so much....whether pamu its possible to...
Thank you so much....whether pamu its possible to convert binary file to ascii completely..in shell...
9,035
Posted By nex_asp
here is list of one of my files in one folder for...
here is list of one of my files in one folder for which I am trying...

gs_10.asc ts_104a.asc ts_16.asc ts_2a.asc ts_43.asc ts_58.asc ts_71.asc ts_86.asc ts_95a.asc tse_6.asc ...
9,035
Posted By nex_asp
thank u so much pamu... why its >> why not > ...
thank u so much pamu... why its >> why not >

and I am using this to sort files in ascending order but *.txt not coming in order for file in `ls *.txt |sort -t"-" -k2n,2`; do
9,035
Posted By nex_asp
If we do so only last files data will be written...
If we do so only last files data will be written to file...other files data will be overwritten....
am doing by cat *.txt > new.xyz by generating n number of text files from n number of input file
9,035
Posted By nex_asp
ok you mean {print filename, $1......} right..but...
ok you mean {print filename, $1......} right..but without using cat how can I append to new file
9,035
Posted By nex_asp
awk 'FNR == 2 {print $1" "$2" "$3 " "$4 " "$5 " "...
awk 'FNR == 2 {print $1" "$2" "$3 " "$4 " "$5 " " $6}'

I can read but how can I write name of the file from which I read and appending the new data from next file
9,035
Posted By nex_asp
How to read particular line in file from specific column?
Hi...friends....

I want to create inventory...information for that I need to read some specific row say 2nd row from 1st 3 column and and write data with particular file used, I have some more...
1,206
Posted By nex_asp
Thanks srinivas matta...
Thanks srinivas matta (https://www.unix.com/members/302136191.html), if I have to run my 1st script daily at 10.00 am and another script weekly once say 11.00 am and one more script monthly once 12.00...
1,206
Posted By nex_asp
<axes> <lon-x-my_datafile "> <arange...
<axes>
<lon-x-my_datafile ">
<arange start="0.5" size="360" step="1" />
</lon-x-my_datafile >
<lat-y-my_datafile ">
<arange start="-89.5" size="180" step="1" />
...
1,206
Posted By nex_asp
XML id replacement with shell
Hi..

I have a problem with replacing of id-0f5435080b with some name daily, problem here is whenever I generate xml file it generates unique id for instance say for example today id-0f5435080b and...
Showing results 1 to 25 of 70

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