09-12-2012
Quote:
Originally Posted by
muhnandap
I have tried that script . and the result is
M83AR-306 797
M83AR-312 685
M83AR-315 479
M83AR-319 193
M83AR-350 1184
M83AR-303
number 199 has gone
If the 199 is gone, there must have been a space after the 199 in your input file that was not present in what you posted as your input file. Please use code tags when posting contents of files so things like this might be visible.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Experts,
I have a file which looks like in this way
1 2233|A.K Shukla |G.M |Sales |12/12/52|6000
2 9876|Jai Sharma |Director |Production |12/03/50|67000
3 5678|Sumit Chakarborty |D.G.M |Marketing |19/04/43|6000
4 2365|Barun... (2 Replies)
Discussion started by: DilipPanda
2 Replies
2. Shell Programming and Scripting
In VI editor ctrl + g is used indicate the line number on which the cursor is placed...similarly is there a way to determine the column number of the cursor position..? (1 Reply)
Discussion started by: vijay_0209
1 Replies
3. Shell Programming and Scripting
I'm racking my brain on this one! :(
I have a list like this:
Paul 20
Paul 25
Paul 30
Frank 10
Julie 15
Julie 13
etc, etc...
I've been trying to figure out a way to have the output display the name in the first column ONCE and add the numbers in the second column and display that... (2 Replies)
Discussion started by: sdlennon
2 Replies
4. Shell Programming and Scripting
This is an vi editor question. I do not know is this a right place to ask this question or not?
I have a file with the following contents,
10 11
20 21
30 31
I want to copy first column that is 10,20,30 after second column, so that output will look like the following,
10 11 10
20 21 20... (3 Replies)
Discussion started by: MeetP
3 Replies
5. Shell Programming and Scripting
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies
6. UNIX for Dummies Questions & Answers
is there any command in vi editor to turn this
986.000 4.026.000 775.328.625 9.319.003.000
986.000 4.036.000 775.328.625 9.318.803.000
986.000 4.046.000 775.328.625 9.318.603.000
986.000 4.056.000 775.328.625 9.318.403.000
become this... (5 Replies)
Discussion started by: muhnandap
5 Replies
7. Shell Programming and Scripting
Dear All,
I have input file like this.
input.txt
CE2_12-15 3950.00 589221.0 9849709.0 768.0 CE2_12_2012
CE2_12-15 3949.00 589199.0 9849721.0 768.0 CE2_12_2012
CE2_12-15 3948.00 589178.0 9849734.0 768.0 CE2_12_2012
CE2_12-52 1157.00 ... (3 Replies)
Discussion started by: attila
3 Replies
8. Shell Programming and Scripting
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
Discussion started by: jacobs.smith
9 Replies
9. UNIX for Dummies Questions & Answers
How do i remove a column using vi editor
Assuming the file to be of format
1: 010 0xad45 sp1 - 11:29:51.498583949 500249144 Event1 rst bcfe jhv rgc
456: 010 0xadb sp2 - 11:29:51.498600605 4464 Event0abcrd adabc aasd
45: 010 0x10 sp0 - 11:29:51.498614165 13560 Back adxca... (6 Replies)
Discussion started by: sp0
6 Replies
10. Shell Programming and Scripting
Hi,
I have pipe separated file which contains some data having comma(,) in it. I want to remove the comma(,) only from particular column without changing data in other columns.
Below is the sample data file, I want to remove the comma(,) only from 5th column.
$ cat file1
ABC | DEF, HIJ|... (6 Replies)
Discussion started by: Prathmesh
6 Replies
LEARN ABOUT LINUX
iso-8859-6
ISO_8859-6(7) Linux Programmer's Manual ISO_8859-6(7)
NAME
iso_8859-6 - ISO 8859-6 character set encoded in octal, decimal, and hexadecimal
DESCRIPTION
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-6 encodes the
characters used in the Arabic language.
ISO 8859 alphabets
The full set of ISO 8859 alphabets includes:
ISO 8859-1 West European languages (Latin-1)
ISO 8859-2 Central and East European languages (Latin-2)
ISO 8859-3 Southeast European and miscellaneous languages (Latin-3)
ISO 8859-4 Scandinavian/Baltic languages (Latin-4)
ISO 8859-5 Latin/Cyrillic
ISO 8859-6 Latin/Arabic
ISO 8859-7 Latin/Greek
ISO 8859-8 Latin/Hebrew
ISO 8859-9 Latin-1 modification for Turkish (Latin-5)
ISO 8859-10 Lappish/Nordic/Eskimo languages (Latin-6)
ISO 8859-11 Latin/Thai
ISO 8859-13 Baltic Rim languages (Latin-7)
ISO 8859-14 Celtic (Latin-8)
ISO 8859-15 West European languages (Latin-9)
ISO 8859-16 Romanian (Latin-10)
ISO 8859-6 characters
The following table displays the characters in ISO 8859-6, which are printable and unlisted in the ascii(7) manual page. The fourth column
will only show the proper glyphs in an environment configured for ISO 8859-6.
Oct Dec Hex Char Description
-------------------------------------------------------------
240 160 A0 NO-BREAK SPACE
244 164 A4 x CURRENCY SIGN
254 172 AC ARABIC COMMA
255 173 AD SOFT HYPHEN
273 187 BB ARABIC SEMICOLON
277 191 BF ARABIC QUESTION MARK
301 193 C1 ARABIC LETTER HAMZA
302 194 C2 ARABIC LETTER ALEF WITH MADDA ABOVE
303 195 C3 ARABIC LETTER ALEF WITH HAMZA ABOVE
304 196 C4 ARABIC LETTER WAW WITH HAMZA ABOVE
305 197 C5 ARABIC LETTER ALEF WITH HAMZA BELOW
306 198 C6 ARABIC LETTER YEH WITH HAMZA ABOVE
307 199 C7 ARABIC LETTER ALEF
310 200 C8 ARABIC LETTER BEH
311 201 C9 ARABIC LETTER TEH MARBUTA
312 202 CA ARABIC LETTER TEH
313 203 CB ARABIC LETTER THEH
314 204 CC ARABIC LETTER JEEM
315 205 CD ARABIC LETTER HAH
316 206 CE ARABIC LETTER KHAH
317 207 CF ARABIC LETTER DAL
320 208 D0 ARABIC LETTER THAL
321 209 D1 ARABIC LETTER REH
322 210 D2 ARABIC LETTER ZAIN
323 211 D3 ARABIC LETTER SEEN
324 212 D4 ARABIC LETTER SHEEN
325 213 D5 ARABIC LETTER SAD
326 214 D6 ARABIC LETTER DAD
327 215 D7 ARABIC LETTER TAH
330 216 D8 ARABIC LETTER ZAH
331 217 D9 ARABIC LETTER AIN
332 218 DA ARABIC LETTER GHAIN
340 224 E0 ARABIC TATWEEL
341 225 E1 ARABIC LETTER FEH
342 226 E2 ARABIC LETTER QAF
343 227 E3 ARABIC LETTER KAF
344 228 E4 ARABIC LETTER LAM
345 229 E5 ARABIC LETTER MEEM
346 230 E6 ARABIC LETTER NOON
347 231 E7 ARABIC LETTER HEH
350 232 E8 ARABIC LETTER WAW
351 233 E9 ARABIC LETTER ALEF MAKSURA
352 234 EA ARABIC LETTER YEH
353 235 EB ARABIC FATHATAN
354 236 EC ARABIC DAMMATAN
355 237 ED ARABIC KASRATAN
356 238 EE ARABIC FATHA
357 239 EF ARABIC DAMMA
360 240 F0 ARABIC KASRA
361 241 F1 ARABIC SHADDA
362 242 F2 ARABIC SUKUN
NOTES
ISO 8859-6 lacks the glyphs required for many related languages, such as Urdu and Persian (Farsi).
SEE ALSO
ascii(7)
COLOPHON
This page is part of release 3.55 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-20 ISO_8859-6(7)