Quote:
Originally posted by ChimpFace9000
Question 1:
Is learing to write scripts an important part of linux, or should i just try and learn to program linux only.
|
Scripting is a type of programming, its just interpreted (sp?) instead of compiled, however the term 'scripting' covers a lot of different languages and shells! You could script using bash, tcsh, ksh, Perl just to mention a few... I as mcleodnine's said being able to write scripts without too much effort can be a serious part of sysadmin and can make you life a lot easier.
Quote:
Originally posted by ChimpFace9000
Question 3:
How do i echo a new line. Like echoing the characters 10 and 13 for carriage return and line feed?
|
I think that just using
echo with no parameters will put a newline on for you (assuming your shell scripting). UNIX system only use a line feed, no carriage return like DOS does, thats why when you load a UNIX text file into Notepad it doesn't like it, and why sometimes you'll load a Windows text file into a UNIX editor and find a ^M on the end of each line, these are the carriage returns being displayed.
cheers
Jamie...