03-23-2017
Oh, that's a new one on me.
It looks like an internationalization feature, awk's equivalent of
digraphs and trigraphs, multi-byte sequences which implement "extended" non-ASCII characters while still writing the program in pure ASCII. They're predefined, so [.STRING.] is meaningless, and there's a big list somewhere of what ASCII sequences actually translate to what Russian characters somewhere.
Of course, the list will be in Russian, so us ASCII-worlders probably don't know the right words to find it. It will also probably depend on being in the right extended-ascii set where they have any meaning and using some Russian subset of awk. This feature is often not implemented unless it's really needed.
So to us, not that useful. To someone's special Russian awk in Russia, it might be indispensable.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
here is a data file.
-------------------------------------
KSH, CSH, BASH, PERL, PHP, SED, AWK
KSH, CSH, BASH, PERL, PHP,
BASH, PERL, PHP, SED, AWK
CSH, BASH, PERL, PHP, SED,
KSH, CSH, BASH, PERL, PHP, SED, AWK
-------------------------------------
My desired output is... (2 Replies)
Discussion started by: VTAWKVT
2 Replies
2. Shell Programming and Scripting
Hi ,
I have a bunch of files with different # of columns but I want to write a single awk script.
What is the awk symbol for last column? say '{print $lastcol}' or something (3 Replies)
Discussion started by: grossgermany
3 Replies
3. Shell Programming and Scripting
I have various numbers that I'm printing out from a statistical summary script. I'd like it to stop using exponential format. Of course, I can use printf with 'd' and 'f' and various parameters to specify a format, but then it has other undesirable effects, like tacking on extra 0's or truncating... (0 Replies)
Discussion started by: treesloth
0 Replies
4. Solaris
deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies
5. Shell Programming and Scripting
wondering if anyone has any thoughts to convert the below thru a shell script
Convert decimal signalling point notation to ANSI point code notation
There is a site that does that conversion but i need to implement the solution in a shell script.....Thoughts....
OS: Solaris 9
... (4 Replies)
Discussion started by: aavam
4 Replies
6. Shell Programming and Scripting
echo 0.633588 1875 | awk '{print $1 * $2 * 1024}'
is there a better way to run the above command? it keeps printing out in notation and i do not want that at all.
when i run the above, i get:
1.21649e+06
OS: linux
language:bash (1 Reply)
Discussion started by: SkySmart
1 Replies
7. Shell Programming and Scripting
hello folks,
I have few values in a log which are in scientific notation.
I am trying to convert into actual decimal format or integer but couldn't able to convert.
Values in scientific notation:
1.1662986666666665E-4
2.0946799999999998E-4
3.0741333333333333E-6
5.599999999999999E-7... (2 Replies)
Discussion started by: scriptscript
2 Replies
8. Shell Programming and Scripting
can someone spot what i'm doing wrong here:
awk 'BEGIN{printf("%0.2f", 1 / 2649320) * 100}'
i get this error:
awk: line 1: syntax error at or near *
then i do this and get the answer i'm trying to avoid:
awk 'BEGIN{print(1 / 2649320) * 100}'
3.77455e-05 (7 Replies)
Discussion started by: SkySmart
7 Replies
9. Shell Programming and Scripting
Input file:
data1 0.05
data2 1e-14
data1 1e-330
data2 1e-14
data5 2e-60
data5 2e-150
data1 4e-9
Desired output:
data2 1e-14
data1 1e-330
data2 1e-14
data5 2e-60
data5 2e-150
I would like to filter out those result that column 2 is less than 1e-10.
Command try: (1 Reply)
Discussion started by: cpp_beginner
1 Replies
10. Shell Programming and Scripting
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
RE(1) General Commands Manual RE(1)
NAME
re - programm to conver russian texts between different encodings
SYNOPSIS
re <infile><outfile><infrmt><outfrmt><f|b|s><u|l|s>
DESCRIPTION
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
re is a program that converts russian texts between encodings.
OPTIONS
The easiest way to convert some file into readable form (KOI-8), just type this:
re <SourceFile> <DestFile> ? K
where :
<SourceFile> - unreadable file
<DestFile> - resulting file
? - tells RE that source codepage is unknown and RE should analyze the file and determine the source codepage
K - tells RE that destination codepage is KOI-8
Note: If you know, what is source codepage, you may use it instead of "?" option. For example, you want to convert letter.txt file which
was written in Win you know, that this file is in 1251 codepage:
re letter.txt letter2.txt W K
Now examine the letter2.txt - you should see russian symbols in KOI-8.
Here is the know codepages list and their abbreviatures:
W - Windows 1251 "_" - _xxe
D - Dos "%" - %hex
K - KOI-8 "\" - 'hex
L - Latin G - Graph_win
I - Iso "<" - <binhex>
H - HEX + - +UTF7-
S - ShiftKbrd C - C_MIC
M - Mac Y - Y_c16
A - AFF Z - Z_c32
O - Odd(UTF8_1) F - F(UTF8_2)
B - Base64 P - Pict
E - Express N - N_Estl
T - T-Html V - V_Vpp855
U - User X - X_sp
"-" - uue J - J_diff
Other options are: [-v][-E|-R|-N][-e|-s]
-v - tells what is processing
-n - don't tells what is processing (default)
-E - converts all p,H from Russian to English
-R - converts all p,H from English to Russian
-N - lets all p,H Russian or English as in text (default)
-e - converts all symbols 0x80 - 0xFF
-s - converts only 64 symbols of Russian Alphabet (default)
AUTHOR
This manual page was written by Aigars Mahinovs <aigarius@debian.org>, for the Debian GNU/Linux system (but may be used by others).
March 21, 2000 RE(1)