Search Results

Search: Posts Made By: alain.kazan
11,316
Posted By alain.kazan
hi , paste is putting all output in one line. ...
hi ,
paste is putting all output in one line.
i need every 10 lines on a single line the other 10 lines shall be on a new line and so on.
Alain
11,316
Posted By alain.kazan
Hi Again, this is working fine nawk...
Hi Again,

this is working fine nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=0 a=9 s="0xA" file.txt
can i make every 10 lines be on one line in the...
11,316
Posted By alain.kazan
Many thanks Gentlmen. will try and get back to...
Many thanks Gentlmen.
will try and get back to you if needed.
11,316
Posted By alain.kazan
read the first 10 lines below a keyword found by grep
Hello Everyone,
i need to read specific number of lines ( always serialized ; i.e from 10 to 20 or from 34 to 44 ) in a file , where the first line is found by grep 'ing a keyword.
example
...
4,981
Posted By alain.kazan
Many Thanks! Would you mind to explain how...
Many Thanks!

Would you mind to explain how this partitioning is working :
specifically f${L:(-1)}


Alain
4,981
Posted By alain.kazan
Thank you, i tried it with a file having 3...
Thank you,
i tried it with a file having 3 columns as i expected the spliting would be based on the last digit of the first column, but i had the splitting based on the last ( 3rd ) column.
can...
4,805
Posted By alain.kazan
Hello , How can i separate the fields in...
Hello ,

How can i separate the fields in the same command with "," or one space ?

Thx
4,981
Posted By alain.kazan
Apologies, i pasted a table . assume the input...
Apologies, i pasted a table .
assume the input file is one column as below:
fileIni
------
198760
676549
378763
376830
367389
378383

i need to split the above file in muliple files based...
4,981
Posted By alain.kazan
Split large file based on last digit from a column
Hello,
What's the best way to split a large into multiple files based on the last digit in the first column.
input file:
f...
4,805
Posted By alain.kazan
Hello , Input file ( each filed has a...
Hello ,

Input file ( each filed has a position and length )
id ( position 1 , length 5 ) ; Name ( position 6, length 20 ) ; TITLE ( position 26 , length 10 ) ; Type ( position 36 , length 20...
4,805
Posted By alain.kazan
Read columns from file by position
Hello ,
i have a fixed-length record file where each column has a specific position. how can retrive two or more column based on their positions in the file ?
Thank you
Showing results 1 to 11 of 11

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