Sponsored Content
Top Forums Shell Programming and Scripting How to grep for certain pattern Post 302353544 by vidyadhar85 on Tuesday 15th of September 2009 02:32:27 PM
Old 09-15-2009
this also do
Code:
awk '/-----/{next}{print}{exit}'  filename

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to grep this pattern??

Hi All, I have a file like this, from this file I want to grep only this "package com.att.com;".... even though spaces are present at starting of the line. i.e., the o/p should ignore these two lines from the file : asdasdasd package ; ignore this line asdasdasd adsfkl90-9-0 package... (13 Replies)
Discussion started by: askumarece
13 Replies

2. Shell Programming and Scripting

how to grep the pattern ?

how to grep the pattern ? How can I grep or find the pattern from this files in the directory. I have couple of ascii files too.I have to grep the binary files.Please assist me Thanks Francis (2 Replies)
Discussion started by: faviji
2 Replies

3. Shell Programming and Scripting

Want to grep for a pattern and display the content above that pattern

Hi, When we have a failure, sometimes we just step restart the job from the next step. Later when we open the log for analysis of the failure, it is becoming difficult to go to the failure part. For eg., if it is a 1000 line log, the failure may be at 500th line. so wat i want to do is, grep... (6 Replies)
Discussion started by: ajayakunuri
6 Replies

4. Emergency UNIX and Linux Support

Grep pattern

I have to search from millions of lines of code of lines having following pattern: get_token , get_token For example: fn1(string.get_token(), string1.get_token()); Thanks in advance (5 Replies)
Discussion started by: uunniixx
5 Replies

5. Shell Programming and Scripting

Grep the word from pattern line and update in subsequent lines till next pattern line reached

Hi, I have got the below requirement. please suggest. I have a file like, Processing Item is: /data/ing/cfg2/abc.txt /data/ing/cfg3/bgc.txt Processing Item is: /data/cmd/for2/ght.txt /data/kernal/config.klgt.txt I want to process the above file to get the output file like, ... (5 Replies)
Discussion started by: rbalaj16
5 Replies

6. Shell Programming and Scripting

How to Grep than scan line below grep pattern

Hello Colleagues, I have a file that looks like below. 6-12731913-12731913 9230760143480 410018547148230 20131002193434+0500 20131002193434+0500 ;20131002T161031000-10.50.241.21-21912131-1419034760, ver: 0 20131009 92220056296730 CC0P abc Core_Context_R1A SMS 6-12726796-12726796... (14 Replies)
Discussion started by: umarsatti
14 Replies

7. Shell Programming and Scripting

sed and awk usage to grep a pattern 1 and with reference to this grep a pattern 2 and pattern 3

Hi , I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows. # diff mir_lex.c.modified mir_lex.c.orig 3209c3209 < if(yy_current_buffer -> yy_is_our_buffer == 0) { --- >... (5 Replies)
Discussion started by: breezevinay
5 Replies

8. Shell Programming and Scripting

Grep lines before a pattern having some other pattern

Hi All, I am trying to fetch lines before a pattern, I got to know about -B flag in grep but we have to pass the number to get those lines before some pattern say (X), now what if I want to get line/s with some other pattern say (Y) before X pattern? How to get about it? please help. Input:... (5 Replies)
Discussion started by: dips_ag
5 Replies

9. UNIX for Dummies Questions & Answers

Grep -v lines starting with pattern 1 and not matching pattern 2

Hi all! Thanks for taking the time to view this! I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern. Example: Drink a soda Eat a banana Eat multiple bananas Drink an apple juice Eat an apple Eat multiple apples I... (8 Replies)
Discussion started by: demmel
8 Replies

10. UNIX for Beginners Questions & Answers

Grep/awk using a begin search pattern and end search pattern

I have this fileA TEST FILE ABC this file contains ABC; TEST FILE DGHT this file contains DGHT; TEST FILE 123 this file contains ABC, this file contains DEF, this file contains XYZ, this file contains KLM ; I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
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)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy