Sponsored Content
Top Forums Shell Programming and Scripting How to grep for certain pattern Post 302353527 by aoussenko on Tuesday 15th of September 2009 01:50:12 PM
Old 09-15-2009
Thanks
 

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
iconv_8859-1(5) 					Standards, Environments, and Macros					   iconv_8859-1(5)

NAME
iconv_8859-1 - code set conversion tables for ISO 8859-1 (Latin 1) DESCRIPTION
The following code set conversions are supported: +--------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+--------------------+ | Code |Symbol |Target Code |Symbol | Target Output | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646 |646 | 7 bit ASCII | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646de |646de | German | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646da |646da | Danish | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646en |646en | English ASCII | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646es |646es | Spanish | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646fr |646fr | French | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646it |646it | Italian | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-1 |8859 |ISO 646sv |646sv | Swedish | +--------------+--------+--------------+--------+--------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. ISO 8859-1 to ISO 646 (7-bit ASCII) For the conversion of ISO 8859-1 to ISO 646, all characters not in the following table are mapped unchanged. Converted to Underscore '_' (137) --------------------------------- 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646de (GERMAN) For the conversion of ISO 8859-1 to ISO 646de, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646de | ISO 8859-1 | ISO 646de | |247 | 100 |337 |176 | |304 | 133 |344 |173 | |326 | 134 |366 |174 | |334 | 135 |374 |175 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 327 330 331 332 333 335 336 337 340 341 342 343 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 367 370 371 372 373 375 376 377 ISO 8859-1 to ISO 646da (DANISH) For the conversion of ISO 8859-1 to ISO 646da, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | Conversions Performed | +---------------+----------------+----------------+---------------+ | ISO 8859-1 | ISO 646da | ISO 8859-1 | ISO | +---------------+----------------+----------------+---------------+ |646da | | | | +---------------+----------------+----------------+---------------+ |305 | 135 |345 |175 | +---------------+----------------+----------------+---------------+ |306 | 133 |346 |173 | +---------------+----------------+----------------+---------------+ |330 | 134 |370 |174 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 133 134 135 173 174 175 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 331 332 333 334 335 336 337 340 341 342 343 344 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 371 372 373 374 376 377 ISO 8859-1 to ISO 646en (ENGLISH ASCII) For the conversion of ISO 8859-1 to ISO 646en, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------+ | Conversions Performed | +-----------------------------+-----------------------------+ | ISO 8859-1 | ISO 646en | +-----------------------------+-----------------------------+ |243 |043 | +-----------------------------+-----------------------------+ Converted to Underscore '_' (137) --------------------------------- 043 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 347 350 351 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646fr (FRENCH) For the conversion of ISO 8859-1 to ISO 646fr, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646fr | ISO 8859-1 | ISO 646fr | |243 | 043 |347 |134 | |247 | 135 |350 |175 | |250 | 176 |351 |173 | |260 | 133 |371 |174 | |340 | 100 | | | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 043 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 341 342 343 344 345 346 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 372 373 374 375 376 377 ISO 8859-1 to ISO 646it (ITALIAN) For the conversion of ISO 8859-1 to ISO 646it, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646it | ISO 8859-1 | ISO 646it | |243 | 043 |350 |175 | |247 | 100 |351 |135 | |260 | 133 |354 |176 | |340 | 173 |362 |174 | |347 | 134 |371 |140 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 043 100 133 134 135 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 244 245 246 250 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 321 322 323 324 325 326 327 330 331 332 333 334 335 336 337 341 342 343 344 345 346 352 353 354 355 356 357 360 361 362 363 364 365 366 367 370 372 373 374 375 376 377 ISO 8859-1 to ISO 646es (SPANISH) For the conversion of ISO 8859-1 to ISO 646es, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646es | ISO 8859-1 | ISO 646es | |241 | 133 |321 |134 | |247 | 100 |347 |175 | |260 | 173 |361 |174 | |277 | 135 | | | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 173 174 175 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 242 243 244 245 246 250 251 252 253 254 255 256 257 261 262 263 264 265 266 267 270 271 272 273 274 275 276 300 301 302 303 304 305 306 307 310 311 312 313 314 315 316 317 320 322 323 324 325 326 327 330 331 332 333 334 335 336 337 340 341 342 343 344 345 346 350 351 352 353 354 355 356 357 360 362 363 364 365 366 367 370 371 372 373 374 375 376 377 ISO 8859-1 to ISO 646sv (SWEDISH) For the conversion of ISO 8859-1 to ISO 646sv, all characters not in the following tables are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-1 | ISO 646sv | ISO 8859-1 | ISO 646sv | |304 | 133 |344 |173 | |305 | 135 |345 |175 | |311 | 100 |351 |140 | |326 | 134 |366 |174 | |334 | 136 |374 |176 | +---------------+----------------+----------------+---------------+ Converted to Underscore '_' (137) --------------------------------- 100 133 134 135 136 140 173 174 175 176 200 201 202 203 204 205 206 207 210 211 212 213 214 215 216 217 220 221 222 223 224 225 226 227 230 231 232 233 234 235 236 237 240 241 242 243 244 245 246 247 250 251 252 253 254 255 256 257 260 261 262 263 264 265 266 267 270 271 272 273 274 275 276 277 300 301 302 303 306 307 310 312 313 314 315 316 317 320 321 322 323 324 325 327 330 331 332 333 335 336 337 340 341 342 343 346 347 350 352 353 354 355 356 357 360 361 362 363 364 365 367 370 371 372 373 375 376 377 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 28 Apr 1997 iconv_8859-1(5)
All times are GMT -4. The time now is 07:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy