Search Results

Search: Posts Made By: new_one
3,295
Posted By new_one
@edehont...
@edehont (https://www.unix.com/members/302107016.html)- Thanks :) I will try it out soon, I am just looking at it.

@ahamed- What I had planned for was something like this-
1. get the range
2....
3,295
Posted By new_one
Thanks ahamed :) i get it now. Just curious,...
Thanks ahamed :) i get it now.

Just curious, is it possible to play around with NR values as in the algorithm I had mentioned? or is it not possible with AWK.
3,295
Posted By new_one
wow! Perfect. just great.!!! Thanks a...
wow! Perfect. just great.!!!

Thanks a million ahamed!
cant thank you enough. I can see it works as i want from the output..now am trying to understand it, a bit too advanced for me. Can you tell...
3,295
Posted By new_one
@ahamed- The logic that I was using so far...
@ahamed-

The logic that I was using so far was like this-


a="1319130869"
count="1"
for i in $(seq 1 as_many_times_as_i_need)
do
awk -vmyvarA=$a -vmyvarB=$b '($1 >= myvarA && $1 <=...
3,295
Posted By new_one
Hi Franklin, NR % 1000 would split every...
Hi Franklin,

NR % 1000 would split every smaller file to 1000 lines, if I am not mistaken.
In my case I am interested in column 1 values of range 1000 (say 1319211119 to 1319212119), and this...
3,295
Posted By new_one
Hi, cat -n is too large to post here, I have...
Hi,

cat -n is too large to post here, I have 42273547 lines in the file.
A small snippet of what I have is-

40556271 1319211119.897235 0.0047939
40556272 1319211119.897236...
3,295
Posted By new_one
I dont think split will work because I am...
I dont think split will work because I am splitting one big file into smaller files, but the number of lines in the smaller file is not same every time. I meant export as writing the output to a new...
3,295
Posted By new_one
Hi, Thanks for responding. Expanding on the...
Hi,

Thanks for responding. Expanding on the query, say I have a file with 2 columns, the second column has many numbers which does not concern this search and export. The first column has linearly...
3,295
Posted By new_one
AWK/SED line based search
Hi,

I have a file with values like this
1 11
2 11
3 44
4 55
5 66 (an representative of what I have).
I want to split this file into smaller files based on column 1 values (values...
Showing results 1 to 9 of 9

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