I have a output of a command like this.
the command is : bdf|sed '/^e/d'|awk '{print$2/1048576}'
output :
0
0.515625
0.481979
2
2
2
7.8125
4
2
0.488281
7.8125
3.90625
4
1.95312
1
0.488281 (4 Replies)
Hello,
I have a shell script that is used as follows:
./script -s <Oracle_server_name>
the script returns several lines in this format:
parameter name required value Current Value comments
--------------- ------------- -------------- ---------
My objective now is to compare 2... (1 Reply)
Hello,
I have two strings those are outputs of two echo commands:
$ logslist=`ls -1rt vp_lb_indv*.log | tail -1`; tail -7 $logslist | head -1
ERROR: Errors printed on pages 5,22.
$ logslist=`ls -1rt vp_lb_indv*.log | tail -1`; errpages=`tail -7 $logslist | head -1`; echo... (3 Replies)
Hi,
I am trying to sort and display the below(like) input using awk command:
Input:
------
0;A
4;A
5;A
33;A
45;A
0;B
4;B
5;B
33;B
45;B
Output (desired): (5 Replies)
hi friends,
The code:
i=1
while
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l $filename | awk '{print $1}'`
echo $count>>summary.csv
#Gives just the count of lines of file "filename"
i=`expr... (1 Reply)
Disclaimer: OP is 100% Awk beginner.
I use this code on ASCII files I need to report against.
awk 'BEGIN {
tokens = 0
tokens = 0
tokens = 0
}
{ for (token in tokens)
{ if ($1 == token){print $0; tokens++;}}}
END {for (token in tokens){
if( tokens ==... (1 Reply)
In shell script i have two variables with value
debit_sal="DOG,HIU,JIU,GYT,PPI,KIU,HUY........."
debit_req='HIU, JIU, HUY, GTR, KOI, ............"
i stored this two in two array
arr=$(echo $debit_sal| tr "," "\n");
arr1=$(echo $debit_req| tr ", " "\n"); #(note second arry has comma with... (5 Replies)
NEVERMIND.... "$TIME" did the trick... stupid me. :o
Hi,
I know that this must be something pretty dumb but I cant figure it out myself.
I have this:
#!/bin/bash
TIME="Time: 20120611"
FILE=file.log
grep $TIME $FILE
And I get the following output:
file.log:Time: 20120611... (2 Replies)
I run cygwin on windows 7, and have been using the windows command line. I've been trying to gunzip some previously compressed large sequence output files in .txt.gz format. This worked for about the first 10 files and then for the rest of them the file (as viewed using the 'head' command) is... (1 Reply)
I hope I can explain this correctly. I am using Bash-4.2 for my shell.
I have a group of file names held in an array. I want to compare the names in this array against the names of files currently present in a directory. If the file does not exist in the directory, that is not a problem.... (5 Replies)
Discussion started by: BudMan
5 Replies
LEARN ABOUT OPENSOLARIS
iconv_dhn
iconv_dhn(5) Standards, Environments, and Macros iconv_dhn(5)NAME
iconv_dhn - code set conversion tables for DHN (Dom Handlowy Nauki)
DESCRIPTION
The following code set conversions are supported:
+--------------------------------------------------------------------+
| Code Set Conversions Supported |
+--------------+--------+--------------+--------+--------------------+
| Code |Symbol |Target Code |Symbol | Target Output |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |ISO 8859-2 |iso2 | ISO Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |MS 1250 |win2 | Windows Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |MS 852 |dos2 | MS-DOS Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |Mazovia |maz | Mazovia |
+--------------+--------+--------------+--------+--------------------+
CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal.
DHN to ISO 8859-2
For the conversion of DHN to ISO 8859-2, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | ISO 8859-2 | DHN | ISO 8859-2 |
|24-177 | 40 |222 |40 |
|200 | 241 |223 |364 |
|201 | 306 |224 |366 |
|202 | 312 |225-230 |40 |
|203 | 243 |231 |326 |
|204 | 321 |232 |334 |
|205 | 323 |233-237 |40 |
|206 | 246 |240 |341 |
|207 | 254 |241 |355 |
|210 | 257 |242 |363 |
|211 | 261 |243 |372 |
|212 | 346 |244-340 |40 |
|213 | 352 |341 |337 |
|214 | 263 |342-365 |40 |
|215 | 361 |366 |367 |
|216 | 363 |367 |40 |
|217 | 266 |370 |260 |
|220 | 274 |371-376 |40 |
|221 | 277 | | |
+---------------+----------------+----------------+---------------+
DHN to MS 1250
For the conversion of DHN to MS 1250, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | MS 1250 | DHN | MS 1250 |
|200 | 245 |233-237 |40 |
|201 | 306 |240 |341 |
|202 | 312 |241 |355 |
|203 | 243 |242 |363 |
|204 | 321 |243 |372 |
|205 | 323 |244-251 |40 |
|206 | 214 |252 |254 |
|207 | 217 |253-255 |40 |
|210 | 257 |256 |253 |
|211 | 271 |257 |273 |
|212 | 346 |260-340 |40 |
|213 | 352 |341 |337 |
|214 | 263 |342-345 |40 |
|215 | 361 |346 |265 |
|216 | 363 |347-360 |40 |
|217 | 234 |361 |261 |
|220 | 237 |362-365 |40 |
|221 | 277 |366 |367 |
|222 | 40 |367 |40 |
|223 | 364 |370 |260 |
|224 | 366 |371 |40 |
|225-230 | 40 |372 |267 |
|231 | 326 |373-376 |40 |
|232 | 334 | | |
+---------------+----------------+----------------+---------------+
DHN to MS 852
For the conversion of DHN to MS 852, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | MS 852 | DHN | MS 852 |
|200 | 244 |212 |206 |
|201 | 217 |213 |251 |
|202 | 250 |214 |210 |
|203 | 235 |215 |344 |
|204 | 343 |216 |242 |
|205 | 340 |217 |230 |
|206 | 227 |220 |253 |
|207 | 215 |221 |276 |
|210 | 275 |222-375 |40 |
|211 | 245 | | |
+---------------+----------------+----------------+---------------+
DHN to Mazovia
For the conversion of DHN to Mazovia, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | Mazovia | DHN | Mazovia |
|200 | 217 |212 |215 |
|201 | 225 |213 |221 |
|202 | 220 |214 |222 |
|203 | 234 |215 |244 |
|204 | 245 |216 |242 |
|205 | 243 |217 |236 |
|206 | 230 |220 |246 |
|207 | 240 |221 |247 |
|210 | 241 |222-247 |40 |
|211 | 206 | | |
+---------------+----------------+----------------+---------------+
FILES
/usr/lib/iconv/*.so conversion modules
/usr/lib/iconv/*.t conversion tables
/usr/lib/iconv/iconv_data list of conversions supported by conversion tables
SEE ALSO iconv(1), iconv(3C), iconv(5)SunOS 5.10 18 Apr 1997 iconv_dhn(5)