Search Results

Search: Posts Made By: bencpeters
9,770
Posted By bencpeters
Here's the tr error: $ cat...
Here's the tr error:


$ cat ~/Downloads/log.txt | while read old_line; do echo "${old_line}" | tr -dc '[0-9][A-Z][a-z],\n'; done
3B698960,eSWPump,0

3B698C36,ePHPump,1
3B698C36,eSWPump,1
tr:...
9,770
Posted By bencpeters
Methyl - your idea would work, but when I try it,...
Methyl - your idea would work, but when I try it, I get an error: 'tr: illegal byte sequence'

Here is a sample data set:
(in plaintext):

3B698960,eSWPump,0
3B698C36,sHeatPre,1...
9,770
Posted By bencpeters
cat / sed process weird characters
Hi everyone,
I'm trying to write a shell script that process a log file. The log format is generally:
(8 digit hex of unix time),(system ID),(state)\n
My shell script gets the file from the web,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy