scripts
Les Mikesell
lesmikesell at gmail.com
Thu Mar 2 20:32:34 UTC 2006
On Thu, 2006-03-02 at 14:18, azeem ahmad wrote:
> hi list
> i got some scripts. their behavior is much wierd, they dont execute, when i
> run them they say
> bad interpreter
> and if i open them and copy them into a new file which i create using vi
> then the same script executes.
> it seems to be a problem of encoding like ASCII etc
> can i change them using any tools
> any suggestions
They were probably created under windows and transferred over
with carriage-return, line-feed endings intact. If you
load them into vim, type :set fileformat=unix and save
again it should fix them. Or use the dos2unix program.
--
Les Mikesell
lesmikesell at gmail.com
More information about the fedora-list
mailing list