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
9 More Discussions You Might Find Interesting
1. Programming
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
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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. AIX
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
7. 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
8. Shell Programming and Scripting
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
9. UNIX for Beginners Questions & Answers
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
PICONV(1) Perl Programmers Reference Guide PICONV(1)
NAME
piconv -- iconv(1), reinvented in perl
SYNOPSIS
piconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
piconv -l
piconv [-C N|-c|-p]
piconv -S scheme ...
piconv -r encoding
piconv -D ...
piconv -h
DESCRIPTION
piconv is perl version of iconv, a character encoding converter widely available for various Unixen today. This script was primarily a
technology demonstrator for Perl 5.8.0, but you can use piconv in the place of iconv for virtually any case.
piconv converts the character encoding of either STDIN or files specified in the argument and prints out to STDOUT.
Here is the list of options. Each option can be in short format (-f) or long (--from).
-f,--from from_encoding
Specifies the encoding you are converting from. Unlike iconv, this option can be omitted. In such cases, the current locale is used.
-t,--to to_encoding
Specifies the encoding you are converting to. Unlike iconv, this option can be omitted. In such cases, the current locale is used.
Therefore, when both -f and -t are omitted, piconv just acts like cat.
-s,--string string
uses string instead of file for the source of text.
-l,--list
Lists all available encodings, one per line, in case-insensitive order. Note that only the canonical names are listed; many aliases
exist. For example, the names are case-insensitive, and many standard and common aliases work, such as "latin1" for "ISO-8859-1", or
"ibm850" instead of "cp850", or "winlatin1" for "cp1252". See Encode::Supported for a full discussion.
-C,--check N
Check the validity of the stream if N = 1. When N = -1, something interesting happens when it encounters an invalid character.
-c Same as "-C 1".
-p,--perlqq
--htmlcref
--xmlcref
Applies PERLQQ, HTMLCREF, XMLCREF, respectively. Try
piconv -f utf8 -t ascii --perlqq
To see what it does.
-h,--help
Show usage.
-D,--debug
Invokes debugging mode. Primarily for Encode hackers.
-S,--scheme scheme
Selects which scheme is to be used for conversion. Available schemes are as follows:
from_to
Uses Encode::from_to for conversion. This is the default.
decode_encode
Input strings are decode()d then encode()d. A straight two-step implementation.
perlio
The new perlIO layer is used. NI-S' favorite.
You should use this option if you are using UTF-16 and others which linefeed is not $/.
Like the -D option, this is also for Encode hackers.
SEE ALSO
iconv(1) locale(3) Encode Encode::Supported Encode::Alias PerlIO
perl v5.12.1 2010-07-01 PICONV(1)