Hi, try this approach which tries to distribute the records over n files (and therefore you do not need to provide a maximum number of records), while keeping records with the same $2 together..
Last edited by Scrutinizer; 02-21-2015 at 09:06 AM..
Hi,
I have a Variable Char field coming whose value looks like below
562432569856
I need to extract 2 characters from it till the end and put it elsewhere
say
56
24
32
56
98
56
in this case.
Any input is appreciated. (2 Replies)
I have a series of .txt files, that contain lines of text separated by the following string ====================
In some of the .txt files, the string ends with the word Document, leaving the string ==================Document.
I would like to be able to split any such line and move the word... (16 Replies)
Hi,
I got a file which may have 100 - 500 rows with header and trailer... based on the total number of real rows ( excluding header and trailer) I want to break the file in 3 or 4 files ..
Coded like this .. but giving error in the AWK in 8th line of below code.
awk 'NR > 5 {print line}... (3 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Hi experts,
In the lines below I am trying to copy only the words which come after "//" into an array
short nloh; // Comments
int age; // Age of the person
Please help me in achieving this
After the code, the output of the array should
Comments
Age of the person (6 Replies)
hi
i have file with the format as below. header and associated company details
company,accno,accname,amount
abc,123,checking,100
abc,234,saving,200
company,accno,accname,amount
def,678,checking,100
def,222,saving,200
company,accno,accname,amount
dfdf,567,checking,100... (4 Replies)
Hello, i want to take a one word from my file.
-- myfile.txt --
test
blablabla
suPHP_ConfigPath /home/performe/etc
blablabla
etc. bla bla.
-- myfile.txt --
How can i take performe from this file ?
Thank you. (7 Replies)
HI All,
I have to split a xml file into multiple xml files and append it in another .xml file. for example below is a sample xml and using shell script i have to split it into three xml files and append all the three xmls in a .xml file. Can some one help plz.
eg:
<?xml version="1.0"?>... (4 Replies)
Hi,
I'm beginner in UNIX
I would like to split file in separate files depending on Pattern.
Input file looks like:-A
B
C
brfbeg
A
B
C
brfbeg
A
B
C
brfbeg
.
.
n so on (7 Replies)
I have a source file where a record starts with # entry-id: followed by a number.
i want to move the record in file 1 iff the second row is
"dn: uid=.*,ou=perm,dc=mssb,dc=com"
and the record to file 2 if contents of second row anything else
# entry-id: 1
dn:... (6 Replies)