04-26-2009
Noob, 1500 static pages to columns
Hi,
My name is Mike and I am new here, perhaps the "1 post" gave me away,
I have a small problem. I know some very minor UNIX and VI and study hard to get better, this time I took upon myself a task just right above my level,
I hope to get two things out of this post
1) some advise to do the first few steps better
2) a fix for my "I am stuck" part
OK,
This is what I did so far, I got a zip file with 1500 pages of static content with some minor HTML tags in it, they are divided by subject,
a.html has 200 links to 200 pages with a related information
b.html has 300 links to 145 pages with b related information
etc etc
Each page has a title which is the "keyword" and the content is the definition of this keyword, it used to be a glossary website I got donated.
What I want to do is add all these definitions into a glossary system on my vbulletin site,
POINTS
1) step 6 I am not sure how to put all the static pages into one document in the same order as the A.html file. I already made a column in excel (ms) and copied all keywords in, so next steps are to put the correct definition in the next column, I am sure I am being silly with my way here.. but ?
STEPS
1) uploaded all pages to my site
2) made A.html with relevant links for A topic
3) /test get file wget -i ./1 and now I have test filled with static pages for A topic
4) all pages have 6 lines of crap so, sed '1,6d' -i *.html
5) removing HTML tags sed -e :a -e 's/<[^>]*>//g;/</N;//ba'
6) my plan is to merge all the static pages into 1 file (not sure what the best way is because of POINT1 above) sed -i 1i"<%$%>" *.html (this places a unique string above each definition
7) Now put all the static pages into 1 page, with the string to seperate them, for i in 'cat *.html';do $i >> fileb; done
So now I have 1 page with all static docs for A topic, and between each definition is the <%$%> to show the next one.
TROUBLE
How do I know put all this into excel in columns,
keyword1 - definition
keyword2 - definition
keyword3 - definition
etc etc etc
As I said, the left column is already hand copied, although if this can be automated it would be awesome
10 More Discussions You Might Find Interesting
1. Solaris
I am using a SunBlade 1500 that currently runs Solaris 8 and I would like to install Solaris 10. This workstation has 1Gbyte of memory, 1 GigEthernet card and one 80Gbyte ATA drive. Soon a 2nd 80Gbyte drive will be installed.
Are there any 'interesting' points I need to watch for in the... (9 Replies)
Discussion started by: miket
9 Replies
2. UNIX for Advanced & Expert Users
Hello :) I have a customer who is OEMing their own hadware to us. The CPU is right out of a SunBlade 1500. Because of the physical requirements, the keyboard, DVD-ROM drive, 36GB Removable disk drive and scsi floppy are housed in what they call their media box which is in some cases 10 feet from... (0 Replies)
Discussion started by: rambo15
0 Replies
3. Solaris
Hi,
I have put qlogic hba card and rebooted with -r option to configrue my hba card. How can I verify that it is intalled correctly? I have fiber connection going to storedge T3. Please help. (8 Replies)
Discussion started by: mokkan
8 Replies
4. IP Networking
hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first.
... (0 Replies)
Discussion started by: dlwoaud
0 Replies
5. Programming
I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies
6. Hardware
Hi,
I bought a server Sunblade 1500, and I would like to install a nic card. Anyone know any compatible network card for this server?
Regards (1 Reply)
Discussion started by: ph0b0s
1 Replies
7. AIX
Hello,
I need to copy 1500+ files (total of 170mb) from our /tmp/directory to a different directory /application/program/files
I issue the command:
user@host> cp * /application/program/files
I am getting the follwing error:
ksh: /usr/bin/cp: arg list too long
being new to aix, I... (6 Replies)
Discussion started by: jeffs42885
6 Replies
8. Solaris
Hi everyone
can someone please explain to me how to install solaris 10 on a sunblade 1500 using cdrom?
Thanks for your assistance (1 Reply)
Discussion started by: cjashu
1 Replies
9. UNIX Benchmarks
CPU/Speed: UltraSPARC-IIIi/1.5Ghz
Ram: 1GB
Motherboard: Sparc
Bus: PCI
Cache:
Controller:
Disk: ATA
Load: 1 user
Kernel: SunOS 5.10 Generic_137111-02
Kernel ELF?: yes
pgms: gcc 2.95.3 compiled
BYTE UNIX Benchmarks (Version 3.11)
System -- SunOS aachen95 5.10... (0 Replies)
Discussion started by: MadeInGermany
0 Replies
10. Solaris
Hi,
I'm using Solaris 8 on a Blade 1500.
I know that IDE drives are limited to around 120GB, but I was told that it's possible to use larger drives with the only caveat that the available size will be that 120 (or is it 128?) GB size.
But when I try, format shows only very low sizes, like... (2 Replies)
Discussion started by: BobSol8
2 Replies
LEARN ABOUT DEBIAN
fdformat
FDFORMAT(8) System Administration FDFORMAT(8)
NAME
fdformat - low-level format a floppy disk
SYNOPSIS
fdformat [options] device
DESCRIPTION
fdformat does a low-level format on a floppy disk. device is usually one of the following (for floppy devices the major = 2, and the minor
is shown for informational purposes only):
/dev/fd0d360 (minor = 4)
/dev/fd0h1200 (minor = 8)
/dev/fd0D360 (minor = 12)
/dev/fd0H360 (minor = 12)
/dev/fd0D720 (minor = 16)
/dev/fd0H720 (minor = 16)
/dev/fd0h360 (minor = 20)
/dev/fd0h720 (minor = 24)
/dev/fd0H1440 (minor = 28)
/dev/fd1d360 (minor = 5)
/dev/fd1h1200 (minor = 9)
/dev/fd1D360 (minor = 13)
/dev/fd1H360 (minor = 13)
/dev/fd1D720 (minor = 17)
/dev/fd1H720 (minor = 17)
/dev/fd1h360 (minor = 21)
/dev/fd1h720 (minor = 25)
/dev/fd1H1440 (minor = 29)
The generic floppy devices, /dev/fd0 and /dev/fd1, will fail to work with fdformat when a non-standard format is being used, or if the for-
mat has not been autodetected earlier. In this case, use setfdprm(8) to load the disk parameters.
OPTIONS
-n, --no-verify
Skip the verification that is normally performed after the formatting.
-V, --version
Output version information and exit.
-h, --help
Display help and exit.
SEE ALSO
fd(4), setfdprm(8), mkfs(8), emkfs(8)
AUTHOR
Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
AVAILABILITY
The fdformat command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux July 2011 FDFORMAT(8)