The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hidden control characters in a Unix Text File! kewl_guy Shell Programming and Scripting 6 09-30-2008 01:09 PM
Finding Hidden files and protecting the folder containing hidden files from deletion pochaw Shell Programming and Scripting 4 12-22-2007 01:33 AM
Hidden Characters Khoomfire UNIX for Advanced & Expert Users 6 07-06-2007 04:40 AM
Hidden passwords neto Shell Programming and Scripting 2 09-21-2005 01:09 PM
hidden output slavam Shell Programming and Scripting 3 08-25-2004 06:07 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-09-2006
SUSANR9999 SUSANR9999 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 4
Question missing hidden characters

I made a small change to a UNIX script. When I tried to run it I received the following message:
/bin/ksh[11]: ^M: not found
/bin/ksh[13]: ^M: not found
/bin/ksh[39]: ^M: not found
As ^M is a non printing character, I don't know how to discover where it is missing. How can I correct thiis error?

Also, how can I avoid this error in the future?

thank you very much for your help
  #2 (permalink)  
Old 11-09-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline Forum Advisor  
Anomalous Lurker
  
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
That looks like something you'd get when your script actually contains carriage returns and Unix doesn't like it. Is it possible that you edited your script with a Windows-based text editor that saved the file in DOS format? Try running dos2ux or dos2unix on your script (might want to make a backup first) and run it again. Just a hunch.
  #3 (permalink)  
Old 11-09-2006
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
  
 

Join Date: Sep 2002
Location: San Fran
Posts: 130
Always edit unix text documents with a "text" editor that defaults to unix line endings. That will help you avoid such scenarios in the future.

The editor you used may provide a means to convert the line endings back to unix.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0