Search Results

Search: Posts Made By: biztank
38,021
Posted By biztank
when i check the encoding its UTF-8 file...
when i check the encoding its UTF-8


file xyz.csv
xyz.csv: UTF-8 Unicode text, with very long lines


i tried piconv from UTF-8 to ASCII and it does converts <feff> to ?.
then i can grep ?...
38,021
Posted By biztank
I tried it in many forms but its no help at...
I tried it in many forms but its no help at all...

cat xyz.csv | grep -v $(echo -ne '^\0376\0377')

or

grep -v $(echo -ne '^\0376\0377') xyz.csv > fixed.txt


what was your thought...
38,021
Posted By biztank
How to remove Unicode <feff> from top of file?
Experts,

this has been dumped on me at the last minute.... i am having issue on few files where im getting files from source with BOM mark at the top of every file and i need to check for its...
34,924
Posted By biztank
:wall: ---------- Post updated at 11:44 PM...
:wall:

---------- Post updated at 11:44 PM ---------- Previous update was at 11:40 PM ----------
34,924
Posted By biztank
if i dont put single QUOTES it fails with ...
if i dont put single QUOTES it fails with

./krun: line 11: syntax error near unexpected token `Count:*'
./krun: line 11: `*Error Count:*)'

Double Quotes doesnt make any difference.... same...
34,924
Posted By biztank
i tried 2nd CASE statement #!/bin/bash ...
i tried 2nd CASE statement

#!/bin/bash
file="/home/mbuser/log.txt"
val1='Load completed in'
fit=holy
err=crap
while IFS= read -r line
do
let count++ # display $line or do somthing...
34,924
Posted By biztank
Thanks Jim, but i want the control inside the...
Thanks Jim,
but i want the control inside the loop so i can do other operations like Substring on FOUND Lines
OR
look for additional info based on what keyword it found....

so i was looking...
34,924
Posted By biztank
HELP: Shell Script to read a Log file line by line and extract Info based on KEYWORDS matching
I have a LOG file which looks like this

Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds....
Showing results 1 to 8 of 8

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