LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2009, 03:19 PM   #16
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Original Poster
Rep: Reputation: 37

sorry it actually ADDED before ,

15�,210032�,000000�,�,2009-06-13�,09:09:51�,TILLISSUE�,�,�,COMPLETE�,1�,T03�,4346�,04709�,99�,�,S�,�,�,�,0�,0.00�,150.00�,0.00�,0. 00�,09:09:51�,�,0.00�,�,0�,
 
Old 06-17-2009, 03:39 PM   #17
GazL
Senior Member
 
Registered: May 2008
Posts: 4,091
Blog Entries: 1

Rep: Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541
As I said above in the PS. I think it will be the utf-8. Have another go with,

Code:
iconv -f cp437 -t iso8859-1 cesar.csv | tr -d "\r" | tr "\262" "," >cesar.txt
That certainly works with the test file I made here.
 
Old 06-17-2009, 03:46 PM   #18
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Original Poster
Rep: Reputation: 37
YOU ARE THE MAN! thanks! :d :d :d THANKS FOR YOUR TIME!
 
Old 06-17-2009, 03:54 PM   #19
GazL
Senior Member
 
Registered: May 2008
Posts: 4,091
Blog Entries: 1

Rep: Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541
Phew! thank god for that.
I was beginning to worry there.

You're very welcome, These little puzzles are more fun that playing solitaire or doing a crossword, and if I end up helping someone out, all the better.

Oh, on a final note. The two tr's can be replaced with a single

Code:
sed -e 's/\r$//' -e 's/\o262/,/g'
Though that's slightly more efficent than the two calls to tr, I find the two tr's far more readable myself.


Take care.

Last edited by GazL; 06-17-2009 at 03:57 PM.
 
Old 06-17-2009, 03:57 PM   #20
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Original Poster
Rep: Reputation: 37
yes! I wrote a script today that would save me so much time!!! and it was fun! lol what can I replace it with?
 
Old 06-17-2009, 04:05 PM   #21
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Original Poster
Rep: Reputation: 37
thanks again!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tilde? What's the key combination to get it ? DOTT.EVARISTI Linux - Software 8 07-06-2007 07:07 AM
Ascii key combination? pidg30n Linux - Desktop 1 06-20-2007 05:09 PM
Bind Mouse Button Combination to Keyboard Key Combination? neoAKiRAz Linux - Desktop 0 05-04-2007 01:49 PM
Mysterious key combination keeps restarting X rose_bud4201 Linux - Software 13 03-04-2006 12:31 PM
Create Key Combination/Binding kegwell Linux - General 2 02-16-2006 09:03 PM


All times are GMT -5. The time now is 06:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration