You can use POSIX character classes with tr
This converts all of the control characters (those ^M, etc) characters to a # in filename then writes the output to newfilename.
HI All
I need a shell script ehich removes all special characters from file and converts the file to UTF-* format
Specail characters to be removed must be configurable.
strIllegal = @"?/><,:;""'{|\\+=-)(*&^%$#@!~`";
Please help me in getting this script as my scripting skilla are... (2 Replies)
Hi everyone
I have file1 contains:
'7832'
' 8765
6543
I want a sed command that will format as:
'7832' , '8765' , '6543'
I tried
sed -e s/\'//g -e 's/^*//;s/*$//' file1 > file2
sed -e :a -e '$!N; s/\n/ /; ta' file2
which gives: 7832 8765 6543
I need some help to continue with... (5 Replies)
Hi ,
I want to replace the special characters in the file.
For eg: cat abc
1234/4455/acb
234/k/lll/
234`fs`fd
I want to replace / and ` with the letter a and the output should like below. How to achieve this.
1234a4455aacb
234akallla
234afsafd (2 Replies)
I have a line ending with special character and 0
The special character is the field separator for this line
in VI mode the file will look like below, but while cat the special character wont display
i know the hexa code for the special character ^_ is \x1f and ascii code is
\0037,
... (0 Replies)
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Hi Unix Guru,
I have an requirement for replace some specail characters in a file, my file came from mainframe.
please see below example:
when open it with vi
17896660|89059215|04/24/1998 00:00:00.000000| abc 123-453-1312^M<85>^M<85>|124557
if I run cat -v I got following:... (25 Replies)
Hi Team,
I have data like this.
|*|.5|*|0.2|*|A.B|*|
Would like to add zero (0) before the decimal point where there is no zero as
|*|0.5|*|0.2|*|A.B|*|
How to replace |*|. with |*|0.
I tried below command which didn't work
echo '|*|.5|*|0.2|*|A.B|*' | sed... (4 Replies)
Hello Team,
Any help would be much appreciated for the below scenario:
I have a sed command below where I am trying to replace the contents of 'old_pkey' variable with 'new_pkey' variable in a Soap request file (delete_request.txt). This works fine for regular string values, but this new_pkey... (8 Replies)
Discussion started by: ChicagoBlues
8 Replies
LEARN ABOUT SUNOS
sjtojis
jistoeuc(1) User Commands jistoeuc(1)NAME
jistoeuc, jistosj, euctojis, euctosj, sjtojis, sjtoeuc - Code conversion between JIS, PC kanji, and Japanese EUC
SYNOPSIS
jistoeuc [-8] [-U] [filename...]
jistosj [-8] [-U] [filename...]
euctojis [-8] [-U] [filename...]
euctosj [-U] [filename...]
sjtojis [-8] [-U] [filename...]
sjtoeuc [-U] [filename...]
AVAILABILITY
SUNWjfpu
DESCRIPTION
For Japanese language handling, the jistoeuc family provides conversion between different code standards. command [ filename ...] does the
specified conversion on the contents of the input filenames and writes it to stdout.
If filename is not given, it reads and converts characters from the standard input.
jistoeuc converts JIS to Japanese EUC
jistosj converts JIS to PC kanji
euctojis converts Japanese EUC to JIS
euctosj converts Japanese EUC to PC kanji
sjtojis converts PC kanji to JIS
sjtoeuc converts PC kanji to Japanese EUC
OPTIONS -8 With this option specified, the commands jistoeuc, jistosj, sjtojis, and sjtoeuc, can support JIS X 0201 (Half-Size Katakana).
This 8-bit JIS code does not use ISO Shift-In and Shift-Out escape sequences.
-U The output is not buffered (The default is buffered output).
SEE ALSO iconv(1), iconv_ja(5)NOTES
This command can handle shift-in escape sequences for the following character sets:
JIS X 0208 shift-in escape - E$B, E$(B, E$@
JIS X 0212 shift-in escape - E$(D
JIS X 0201 Roman shift-in escape - E(J, E(H
ASCII shift-in escape - E(B
euctojis and sjtojis can handle shift-in escape sequences for the following character sets:
JIS X 0208 shift-in - E$B
JIS X 0212 shift-in - E$(D (except when sjtojis command is specified)
JIS X 0201 Roman shift-in - E(J
jistoeuc does not check whether or not each code in the input file is correct. Conversion with PC kanji is not based on TOG Japanese Ven-
dors Council (TOG/JVC) Recommended Code Set Conversion Specification between Japanese EUC and Shift-JIS. The iconv(1) utility provides
these functions. See iconv(1) and iconv_ja(5) for more information.
BUGS
If JIS X 0212 character set is specified as input, jistosj and euctosj can not support the conversion correctly. euctosj, sjtoeuc, jis-
tosj, and sjtojis can support conversion correctly only if JIS X 0208 1 ku - 84 ku is specified as input.
SunOS 5.10 10 Jan 2003 jistoeuc(1)