Hello,
I am having an issue setting the locale. This issue is only as root, and not as another user, which means there is something overwriting as root user.
when I do locale as root, it gives me the following:
LANG=en_US.utf8
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"...
The locale is set to Japanese as follows:
export LANG=ja_JP.SJIS
export LC_ALL= ja_JP.SJIS
Now, when I do locale, it displays that lang is set to ja_JP.SJIS.
However, I am still not able to print or view Japanese char in UNIX. Should I use Reflection for this?
Thanks
Hello,
when I do locale in HP-UX, I see the following:
# locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
Does this mean no locale set? Is there a default set to English?
Also, how can i set this to japanese in SJIS?
THANKS
Srikanth
That worked. Thanks very much.
I have one more question. How can I format date field in a file. I have the 4th field as date and I want all lines to be unique format: dd/mm/yyyy hh:mi:ss
How can I do this? Thanks again.
1,$s/\t/,/g will replace tab with ,
however issue is with placing quotes for the first field
I am trying to place " at the end of the first field for all lines but this is not working:
1,$s/,/",/1
Hello, I am trying to the following. can you let me know how?
1. I have a tab delimited file. I need to enclose the first field in double quotes.
2. I need to replace the tab with comma.
Thanks for the help.
I know Informatica 7.1.3 has bulk processing capability. When you create partitions in a session, do you also need to create partition on the actual Oracle source table or does the session take care of it? Also what about parallel processing in Informatica? How does it work? Does it have to be...
How do I specify a process to use a specific number of CPU's?
Also, how can I kill all instances of a process for a specific user. Kill -9 PID would kill one instance but I want to kill all instances.
thanks
I probably need to reformat my question. It is not as straight forward as I indicated.
file 1 file 2
_________________________
A (hi) A (hi)
B C (bad)
C (good) D (good)
D (good)
In this case A and D match. B is missing in file 2 and C does not...
sdiff is in a much better format. However I see one problem.
file 1 file 2
____________________
A A
B C
C D
D
when I compare file 1 and 2, file 2 is only missing line B.
But sdiff compares line by line and the output shows as 2 lines that are...
I am trying to understand sed but this seems to be very confusing to me. What is the best way to learn sed?
I am trying to debug a program and not sure what the following lines of code mean -
export ARGS=`echo $line | sed 's/,/" "/g'`
ARGS=`echo $ARGS | sed 's/^/"/'`
ARGS=`echo $ARGS | sed...
The output generated from diff is not easy to understand for a common user. what is the quickest way to format it so the user will be able to understand?
I am comparing 2 db schemas and printing the table info using diff.
Thanks
If I have main folder called /var/opt/dshs
and there are several subfolders like A1, A2, A3,....
The complete dir structure is
/var/opt/dshs/A1/input/myfile.txt
This myfile.txt is under each folder, A1, A2,...
I want to grep a specific word from each of these files myfile.txt.
Do I have to...
I am trying to do a grep on a file, but I am always getting this message -
Binary file tmp.log matches.
I am giving the following command to search for 3038 and display all the lines in the file -
grep -40 '3038' tmp.log
I am kind of new to grep and trying to figure it out...
thanks
Thanks for the response...
I added uuencode to your command. When I use this it says invalid option -s
(cat mailtext; uuencode /dir/file.txt file.txt) | mail -s "Test Mail" my_email@yahoo.com
When I change this from -s to -t, the email goes fine along with the attachment. However, the...
I am using elm command to email a file from my script. This file is in regular format and not in a zipped format. However, the file goes in the body of the email instead of as a seperate attachment.
elm -s "Test Mail" my_email@yahoo.com < /dir/file.txt
How can I send it as a seperate...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.