Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Bash what

Name: Anonymous 2008-09-14 9:43

I have a set of html pages all of which have the link to the table of contents at the same position (relatively to the beginning of the file). I want to remove these links, how do I do it with bash?

Name: Anonymous 2008-09-14 10:04

unlink *.html

Name: Anonymous 2008-09-14 10:33

You know what, don't help me!, I'm going to learn sed and regexps myself.

Name: HELP HIM! 2008-09-14 10:35

HELP HIM!

Name: Anonymous 2008-09-14 10:53

just use ed, it's easier.

Name: Anonymous 2008-09-14 11:24

Forget it. It's NP-Complete.

Name: Anonymous 2008-09-14 11:57

You wouldn't be having this problem if all of your HTML files were actually executable files that allowed you to edit them like so:


$ ./index.html --edit-table-of-contents-link ""

Name: Anonymous 2008-09-14 12:12

>>7
But then you would have two problems.

Name: curtains and a dog !NAMdiwz0Sw 2008-09-14 12:24

>>8
Name those problems.

Name: Anonymous 2008-09-14 12:27

>>9
He was lying. He's got 99 other problems, and now (thanks to >>7 ) a complete lack of knowledge regarding regular expressions isn't one.

Name: Anonymous 2008-09-14 13:13

>>1
First you need to convert the html to XHTML 1.1 Strict. Then you can use the ENTERPRISE XML PARSER Xerces 1.4.4 to manipulate the DOM model and remove the table of contents elements.

Name: Anonymous 2008-09-14 13:19

Bash Flash Mash

Name: >>1 2008-09-14 13:29

STOP REPLYING TO THIS THREAD, I WAS TROLLING!!!

Name: Anonymous 2008-09-14 15:28

lol j/k help pls :)

Name: Anonymous 2008-09-14 15:44

>>14
nm I suck cocks

Name: Anonymous 2008-09-14 16:27

OP here. I have solved the problem. There is no need to reply to this thread anymore.

Name: Anonymous 2008-09-14 17:15

Well yeah, I solved the problem as >>16 predicted, but I have one question: how would you tell sed to delete every line that starts with a specified pattern?

Name: Anonymous 2008-09-14 17:38

sed.tell("delete every line that starts with a specified pattern");

Name: Anonymous 2008-09-14 17:40

Name: Anonymous 2008-09-15 9:56

sed = Special energy drink?

Name: Anonymous 2008-09-15 10:37

>>20
back to /b/, please

Name: Anonymous 2008-09-15 14:34

┌┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┐
┤This is an x86 ├
┤microchip!!    ├
┤Copy it to help├
┤it proliferate.├
└┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┘

Name: Anonymous 2008-09-15 15:07

>>17
Do it the Java way: Sed.getInstance().sendMessage(MessageBuilder.getInstance().buildMessage(new BufferedPerformer(new Action('delete', CriterionCouplerFactory.coupleCriterions(new Criterion('line', new CriterionMarker('every')), new Criterion('starts', new CriterionMarker(new Pattern('pattern'))))))))

Name: Anonymous 2008-09-15 15:23

>>23
... new CriterionMarker(new Pattern('pattern'))))))))
Waiter! There's a cudder in my java!

Name: Anonymous 2008-09-15 15:50

>>23
Inexperienced LISP-fap detected.
gb2FisherpriceLISP

Name: Anonymous 2008-09-15 19:18

>>24
I am so terribly ashamed, sir, of this mistake! I shall immediately bring you a new object.

Name: Anonymous 2008-09-15 19:48

>>24
What? Where?

Name: Anonymous 2009-10-21 17:46

[b][i]bitches[/close] and

Name: Anonymous 2010-12-22 2:47

Name: Anonymous 2013-01-18 23:40

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List