Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Sed and Awk (http://www.programmingforums.org/forum22.html)
-   -   Sed & Awk (http://www.programmingforums.org/showthread.php?t=13538)

mattireland Jul 12th, 2007 2:00 PM

Sed & Awk
 
What are these? They sound pretty cool and I'd like to get to grips with them

Can someone give me a link or explain to me how to get started please? I already use Linux.

Thanks very much!

ReggaetonKing Jul 12th, 2007 3:05 PM

There are built into most Linux distros. Just type the command with the arguments and you're on your way!

mattireland Jul 12th, 2007 3:55 PM

Thanks for the reply!!!

I've typed in both sed and awk separately and all I get is a list of words and a bit of text about reporting bugs. Is it possible to actually use this?

Thanks!

ReggaetonKing Jul 12th, 2007 4:08 PM

Well, since sed and awk are both CLI scripting languages, you must specifiy what exactly you want to do with them.

Example
:

grep b* filename
This would list all of the files in the working directory that start with the letter b.

DaWei Jul 12th, 2007 5:19 PM

I'm thinking that a trip to the man pages, or to Google, would answer more questions in one trip than you might expect to achieve in a 40-post forum thread. Just a thought, of course. Inefficient farbling around might be more enjoyable, if you're into that sort of thing.

Infinite Recursion Jul 13th, 2007 8:32 AM

sed, awk, vi ... if you want to write scripts in unix/linux learn them.

See these lists for examples:
http://www.student.northpark.edu/pem...d/sed1line.txt
http://www.student.northpark.edu/pem...k/awk1line.txt

mattireland Jul 13th, 2007 9:04 AM

IR: Thanks for the advice! I'll give them a go as I think I'm going to get into Linux now.

DaWei: Of course! Inefficient farbling is 100% cool!

What are the man pages? Of course I could google the answer but when I could farble inneficiently what's the point?

Infinite Recursion Jul 13th, 2007 1:46 PM

man = manual

run this at the linux prompt

man sed
man awk
man vi

pressing the space bar or down arrow should let you scroll the content

mattireland Jul 13th, 2007 4:29 PM

Thanks for this. I'm giving it a go now.

My version of Slackware just got seriously noobed up. I deleted my Kubuntu partition because I had loads of unnecesary stuff and decided to reinstall Kubuntu so made the necessary partitions and gave Kubuntu 8GB. The installation failed and now the LILO boot loader doesn't work. Good job I made a boot floppy. Any suggestions on how I can get the boot loader working again. Anything would be great! Thanks!


All times are GMT -5. The time now is 12:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC