How can I split this file into three parts and save them to disk with new names? From that point, I should be able to insert any addition html code in another file in-between to create a new updated single file with all parts intact. So the second part to this question is how would I bring all these parts back together again all at once? Could someone provide a working script to get me started? Even bits and pieces can help for now.
I also need to know what programming language to use. I google ASM, Perl and PHP and none of them speak of doing such a thing for any UNIX other then splitting big files into smaller ones of the same size and such. I would like to dedicate to PHP or C++ for web programming provided it can do deep text manipulation as described here. Years ago I done this in all kinds of ways using MASM32 on Windows, but now it’s all about doing things automatically in the background on my FreeBSD vps.
BTW: if anyone find anything near this for FreeBSD on the internet please clue me up. I been searching for two straight days; once again!
I got stop at No prefix under the Programming Forum. I don't know what to use so I guess this is a general question.
Example File
Split-1:
Split-2:
Split-3:
I also need to know what programming language to use. I google ASM, Perl and PHP and none of them speak of doing such a thing for any UNIX other then splitting big files into smaller ones of the same size and such. I would like to dedicate to PHP or C++ for web programming provided it can do deep text manipulation as described here. Years ago I done this in all kinds of ways using MASM32 on Windows, but now it’s all about doing things automatically in the background on my FreeBSD vps.
BTW: if anyone find anything near this for FreeBSD on the internet please clue me up. I been searching for two straight days; once again!
I got stop at No prefix under the Programming Forum. I don't know what to use so I guess this is a general question.
Example File
Code:
html, body {
height: 100%;
}
#container {
position: relative;
height: auto;
max-height: 100%;
}
#content {
position: absolute;
height: auto;
max-height: 100%;
}
#header {
position: absolute;
width: 100%;
height: 150px;
top: 0px;
left: 0px;
}
#footer {
position: absolute;
width: 100%;
height: 150px;
left: 0px;
bottom: 0px;
}
#content .inner {
margin-top: 150px;
margin-bottom: 150px;
}
Split-1:
Code:
[code]html, body {
height: 100%;
}
#container {
position: relative;
height: auto;
max-height: 100%;
}
#content {
position: absolute;
height: auto;
max-height: 100%;
}
Split-2:
Code:
#header {
position: absolute;
width: 100%;
height: 150px;
top: 0px;
left: 0px;
}
Split-3:
Code:
#footer {
position: absolute;
width: 100%;
height: 150px;
left: 0px;
bottom: 0px;
}
#content .inner {
margin-top: 150px;
margin-bottom: 150px;
}