Help to find isutf8 utility for AIX 6.1


 
Thread Tools Search this Thread
Operating Systems AIX Help to find isutf8 utility for AIX 6.1
# 1  
Old 11-03-2014
Help to find isutf8 utility for AIX 6.1

Hello everyone, I need to validate the file format for the UTF-8 standard. I know that "isutf8"utility is a part of "moreutils" pkg, I was able to find this package for the Linux but my environment in the AIX 6.1.
I would be greatly appreciate your suggestion to my search. I am not familiar with searching packages through the mirrors.
Thank you,
Nadya
# 2  
Old 11-03-2014
Did you consider using the file utility:
Code:
file -i /tmp/sed_example.txt 
/tmp/sed_example.txt: text/plain; charset=utf-8

# 3  
Old 11-03-2014
Thank you Rubi for prompt replay, this command is not much help for me, because I get different info back as:

misaixtst10:/informatica/9.1.0.old/server/infa_shared/TgtFiles$>file -i full_policy*.dat
full_policy-insured-vehicle_20141027_114023_c.dat: regular file
full_policy-party-address_20141027_114019_c.dat: regular file
full_policy-party-contact-number_20141028_104501_c.dat: regular file
full_policy-party_20141027_114010_c.dat: regular file
full_policy-previous-incident_20141027_114113_c.dat: regular file
full_policy-processor_20141027_134400_c.dat: regular file
full_policy-section-of-cover_20141027_114029_c.dat: regular file
full_policy-section-of-cover_20141030_091404_c.dat: regular file
full_policy_20141027_140317_c.dat: regular file
misaixtst10:/informatica/9.1.0.old/server/infa_shared/TgtFiles$>
# 4  
Old 11-04-2014
Maybe explaining a bit your issue if any or what you is on your mind, we could maybe help you find an alternative e.g. I receive xml files that messes up my data treatment so I had to write something to check and convert, typically UTF-8 announced as that arent... that I convert to iso-8859-1, the first part of my script (I am here on AIX 7.1...) uses a simple test:
Code:
# test 1:
iconv -f UTF-8 -t 8859-1  $FNAM01 >$FNAM01.mod
TST01=$?

If return code 0, its a UTF-8... Only Im unlucky and have often value 2 so it continues further...
# 5  
Old 11-04-2014
Thank you moderator for the replay on my post, I am new in the forum and still learning how to ask question.
I am working as a QA sofware analyst and I need to verify the extract, transfer and load of the files before they go to the customer. I need to verify if the files in UTF-8 format. I also tried the command as
iconv -f UTF-8 fullpolicy*.dat -o /dev/null and see if the return 0 or 1 but I have not gotten a return numbers, probably I have not used my command properly. I am not a developer and learning from the internet to work in unix. Would you please explain how I can check the files without converting them and know what format is.
Nadya
# 6  
Old 11-04-2014
As you have seen in my example, you have no choice other than to convert and see if its successful, the result (converted file) you dont keep that is all...
Try that bit of code I gave you in a script and echo TST01=$TST01
the reason of $FNAM01 was because I was reading files in input in a loop where the test is nested...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX utility to find difference in folder, file and contents of file against a base version

Hi, I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility? Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies

2. Shell Programming and Scripting

behavior of find utility's -mtime -7 primary

Can I ask a question not related to original question. I have this below command running on a directory which contains thousands of files. This command runs for 5 minutes. Any files received in folder1 during the execution of command is getting moved, even though that file is just received and it's... (6 Replies)
Discussion started by: Super123
6 Replies

3. AIX

Basic FC Utility on AIX?

Good Morning! My p550 running AIX 5.3 TL9 SP6 is supposedly connected to its SAN. However, it's not configuring its luns or behaving like it sees any traffic at all. "fcstat fcs0" and "fcstat fcs1" both indicate no traffic moving across the interfaces. Does AIX have a basic command that... (4 Replies)
Discussion started by: dafydd2277
4 Replies

4. AIX

URGENT: zip utility on AIX 5.x

Do you know where can I find the 'zip' binary utility for AIX 5.x ? I have the zip-2.3.0.0.bff file, but I don't have root access and I want to test the 'zip' utility. Thank you !!! (2 Replies)
Discussion started by: V3l0
2 Replies

5. Shell Programming and Scripting

Question on Find Utility

Hi Guys, Do you know how can I find files with modificatioin time less than 30 MINUTES using the find utility? Or if u have any other mechanism to find it using script, I'll appreciate it. Thanks! (5 Replies)
Discussion started by: marlonus999
5 Replies

6. Shell Programming and Scripting

options in FIND utility

hi folks, I want to select all files older than 13 days from a specified directory for that i used find /home/amar -name '*.*' -mtime 13 but it gives me all the files from subdirectories also, I dont want that I want files only from /home/amar and not from /home/amar/abc/.. which... (8 Replies)
Discussion started by: amarnath
8 Replies

7. UNIX for Dummies Questions & Answers

can't find my NEDIT utility after shell change

Hello, My System Admin. just switched me from KSH to BASH and something happened to my "nedit" utility! Does anyone know how to reactivate nedit by anychance? Thanks very much! BobK (2 Replies)
Discussion started by: bobk544
2 Replies

8. Shell Programming and Scripting

Compound command with 'find' utility?

I'm trying to write a script using the 'find' command and it's -exec option to run a compound command against the files found. Example: find . -name "*.conf" -exec cat {} | grep "#" > /tmp/comments.list \; Of course the above doesn't work. So I experimented for a bit to see if there was... (6 Replies)
Discussion started by: deckard
6 Replies

9. Programming

Threaded 'find' utility

I need to modify my version of find in unix and get it to create and use two POSIX threads to carry out concurrent finding operations. How do i get about doing this>? If anyone could help me it would be much appreciated. Thanx Mariuca (1 Reply)
Discussion started by: mariuca
1 Replies
Login or Register to Ask a Question