![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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! |
|
|
|
|
|
#2 |
|
Sexy Programmer
|
There are built into most Linux distros. Just type the command with the arguments and you're on your way!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
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! |
|
|
|
|
|
#4 |
|
Sexy Programmer
|
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
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
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
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
|
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? |
|
|
|
|
|
#8 |
|
Programming Guru
![]() ![]() ![]() |
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
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
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! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|