October 22, 2005


Today's lesson: don't redirect the output of sed to the file it's working on.

For reasons I don't entirely understand, it will wipe the file!

Especially don't do this if you're doing it inside a for statement looping through all the files of your coursework.

- 2 comments by 1 or more people Not publicly viewable

  1. I hope you a) backed your coursework up and b) tested sed on an unimportant file before doing this.

    22 Oct 2005, 18:41

  2. A) Luckily, yes. But only because I'd wanted to work on it on the Computer Science computers on Thursday, and had to copy them over. I could easily have not done so.

    B) Your ideas intrigue me and I wish to subscribe to your newsletter.

    22 Oct 2005, 18:56

Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

New blog location

After a hiatus of several years, I’ve started blogging again at blog.draknek.org.

My website

Looking for more information about Alan Hazelden? Follow me on Twitter or go to my website.

October 2005

Mo Tu We Th Fr Sa Su
Sep |  Today  | Nov
               1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Search this blog

Blog archive


Most recent comments

  • Knife game: No actual cutlery involved. A single player starts with the "knife" by clasping his or h… by Noyb on this entry
  • My friends and I have taken to this one very silly game lately that's probably altogether too insula… by Ian S. on this entry
  • Great, thanks for those! That first one I would know by the name of Wink Murder, usually with a sing… by on this entry
  • I don't know the names for these games, so I'll make them up: Sniper. Randomly choose who is the sin… by zep on this entry
  • I recommend checking out Project Sprouts from Luke Bayes. It makes obtaining and configuring the fla… by Duncan Beevers on this entry


Not signed in
Sign in

Powered by BlogBuilder