Re: scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux