[Ilugc] What is wrong in this script ?
- From: knura9@xxxxxxxxx (Arun Khan)
- Date: Fri, 29 Jul 2011 12:32:00 +0530
On Fri, Jul 29, 2011 at 12:10 PM, Mukesh Yadav <mak.gnu at gmail.com> wrote:
dos2unix did the magic :)
Hopefully, you have understood the "root" cause of your problem.
DOS/Windows text files have two chars for each line EOL and CR.
Whereas *nix based text files have only EOL. CR (^M) create havoc in
your shell scripts.
For shell scripts it is best to use the text editors on *nix platforms.
--
Arun Khan
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Other related posts: