LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2015, 05:02 PM   #16
RandyTech
Member
 
Registered: Oct 2010
Posts: 62

Original Poster
Rep: Reputation: 3

Quote:
Originally Posted by Keith Hedger View Post
Does sed work as expected if it too doesn't work then it's probably your file...
Found it. Combination of a script used to copy the file, and an 'I/O error'! (I/O being "idiot operator" -- and that would be me )

Little did I realize the script filters the source file through 'sed':
Code:
sed -i 's/\r//'
and of course that stripped all CR from the resulting copy. Not realizing that, I assumed the source was same as the copy (duh). I so I'm looking for the CR in the clean file and wondering why grep failed on the source file. I can hear the chorus now ... "What a dummy, dummyyyy, dummyyyyyyyy" LOL

EDIT: BTW ... Thanks for taking time to help out an idiot

Last edited by RandyTech; 07-28-2015 at 05:05 PM.
 
Old 07-28-2015, 05:07 PM   #17
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,838

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Go and stand in the corner and think about what you've done !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] grep won't return a number at end of line jgrizich Linux - Newbie 7 10-15-2012 12:20 PM
I want to print a line if i dont find the pattern using grep.! how is this possible? ameylimaye Linux - Newbie 4 09-28-2011 11:57 AM
grep array add to end of line if true unixmonk Red Hat 5 01-27-2011 05:10 PM
Problem with grep matching to end of line icedown Linux - Newbie 12 09-23-2007 05:43 AM
shell script find a line and the next line (grep?) metalx1000 Programming 5 07-24-2007 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration