Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The problem is that the echo does not recognize the newlines. When i do:
it works fine and prints the newlines in the console. I'm trying -E to use $, and then tr to replace that with newlines. So far, no luck. Could anyone give me a hand with this problem? Maybe this is not the correct way to do it, in that case, i would appreciate some advice on how to do these kind of things.
Actually, what i am trying to do is a bash script that installs Kasenna Mediabase, along with ALOT of other things (one of them being the app i profesionally program). To do that, i must be able to edit some files (/etc/rc.local) throught the bash script (risky, i know, but has to be done this way). I have never used sed, but i can see it's the way to go, so i will make it a point to learn this.
Thanks very much to everyone for your VERY FAST answers. It's really nice to get this much help on such a difficult topic (at least for me). Rest assured, when i get to be the LinuxGeek(tm), i will help others just as much.
in addition to sed i highly recommend coming to terms with its bedfellow 'awk'.
using sed and awk together can do a great deal of useful things. i also believe the gnu version of sed allows a "-i" option to edit files in place. i am used to the unix version which sends the edited file to stdout.
Well, i finished working for this week (on Fridays i get home early), so i plan on learning sed and awk this weekend and then i will tell you... I use Windoze at home (i know, crucify me), but i plan to switch to a Dual-Boot soon.
Oh, and "geek", was meant as a compliment, as in "he knows so much 'bout Linux, he's a geek". I'm not English-native, so i really don't know how appropiate this term is in the situation i say.