Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 9th October 2007, 11:13 PM
LittleLinuxGuy Offline
Registered User
 
Join Date: Sep 2007
Posts: 20
Question Ctrl M Weirdness

Here's the top of my python script:
#!/usr/bin/python

OK, so far.
On the command line, I get a #!/use/bin/python^M error.

Oh, OK, I fire up vi and type -
:%s/ctrl-v ctrl-M//g
to get rid of the ctrl 'M's - I did write the file on a Windows box but I set my editor to save the files as UNIX type It's PSpad editor by the way. I haven't had this problem with any other python script.

And I get a "pattern not found" message from vi. ?!?!?!

I try re-running the script at the command line, same thing.
I brought the script up in emacs to see if it sees the ^M - nope!

I tried deleting that line in vi and retyping it - Nope.

I'm on Fedora 7

It's driving me batty!

Help! Any suggestions would be really appreciated!
I really don't want to have to retype the sucker in vi!
Reply With Quote
 

Tags
ctrl, weirdness

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between ctrl-c and ctrl-\ pushparaj_bits Programming & Packaging 7 10th October 2009 08:05 AM
[F10]Konsole Ctrl+S Ctrl+Q wargrey Using Fedora 0 10th December 2008 02:25 PM
emacs ctrl-home and ctrl-end dont work in "no window" mode daviddoria Using Fedora 2 18th June 2008 04:16 PM
DVD weirdness in FC6 flosofl Hardware & Laptops 0 26th October 2006 05:02 AM
HP ZE4420 dies after Ctrl+Alt+F3, Ctrl+Alt+F7 cyclops Hardware & Laptops 2 18th May 2005 02:42 AM


Current GMT-time: 21:33 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat