Search Results

Search: Posts Made By: kumar_amit
6,741
Posted By kumar_amit
finally i got the code i was looking for
awk 'NR==FNR{a[$1];next} FNR in a{print $0>>"desired_file"}' file1 file2

where:-
file1 consist of all the line number ONLY and
file2 consist of file from which the has to be made.

it...
6,741
Posted By kumar_amit
could not get the code
could not get the code
6,741
Posted By kumar_amit
hi rubin thanks for reply
this code just totally beyond my reach... can u please elaborate:confused::eek:
6,741
Posted By kumar_amit
thanks danmero for ur valuable time
but can't something be done inside awk . so that it reads the bigger file once and give the desired output..
here it is reading the file again and again after getting the line number

thanks ...
6,741
Posted By kumar_amit
thanks for reply matrixmadhan
well i need a shell script for this... i have no idea about pearl.. how much time will it take in pearl.. it takes about more than one day.. to complete. its high time for me know ... i should find...
6,741
Posted By kumar_amit
awk help to make my work faster
hii everyone ,
i have a file in which i have line numbers.. file name is file1.txt
aa bb cc "12" qw
xx yy zz "23" we
bb qw we "123249" jh
here 12,23,123249. is the...
2,490
Posted By kumar_amit
thanks franklin
it has been great help to me

thanks
2,490
Posted By kumar_amit
thanks franklin
can u please elaborate the code ...

thanks
2,490
Posted By kumar_amit
thanks for reply..
actually i was trying to use a notepad as database..
like ..
name adress phonnum sex
amit 22-wall 1213 male
alena 12-asd ...
2,490
Posted By kumar_amit
printing in certain column based on some result
hii every one can anybody help me writing shell script with this,
i have a file ...
amit
arun
vivek

and i want to read something from the user and print next to amit or arun in certain...
Forum: AIX 11-11-2008
7,661
Posted By kumar_amit
hii
can u please tell us how did u enable this..
Showing results 1 to 11 of 11

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