Sponsored Content
Top Forums Shell Programming and Scripting Can't figure out how to find specific characters in specific columns Post 302733771 by pamu on Wednesday 21st of November 2012 04:09:36 AM
Old 11-21-2012
Quote:
Originally Posted by RudiC
Correct. But there may be non POSIX compatible extensions, like in e.g. mawk, Still you would need to phrase the condition like $265$266$267$268=="9999". Might be worth a shot.
I think this FS="" also not supported by all extensions.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can't figure out how to display specific data from a line using awk.

Hello, I cannot figure this one out. I would like to do the following. I have a line that has 7 words. It is possible that the line can have 20 words too. I always want to show the 9th word and beyond. The 9th word will always change so I do not have something to search for, so I think... (1 Reply)
Discussion started by: ctcuser
1 Replies

2. Shell Programming and Scripting

tell me how many specific characters there are?

i'm trying to get the user to enter a character, then the script should search for how many of that character exists in the file. I have the following code, but it doesn't work properly and it shows the wrong amount (i don't think im supposed to use grep). For example, I want it to say, "There are... (7 Replies)
Discussion started by: kev269
7 Replies

3. Shell Programming and Scripting

Find and replace a string a specific value in specific location in AIX

Hi, I have following samp.txt file in unix. samp.txt 01Roy2D3M000000 02Rad2D3M222222 . . . . 10Mik0A2M343443 Desired Output 01Roy2A3M000000 02Rad2A3M222222 . . (5 Replies)
Discussion started by: techmoris
5 Replies

4. Shell Programming and Scripting

sed replacing specific characters and control characters by escaping

sed -e "s// /g" old.txt > new.txt While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies

5. Shell Programming and Scripting

Count specific characters at specific column positions

Hi all, I need help. I have an input text file (input.txt) like this: 21 GTGCAACACCGTCTTGAGAGG 50 21 GACCGAGACAGAATGAAAATC 73 21 CGGGTCTGTAGTAGCAAACGC 108 21 CGAAAAATGAACCCCTTTATC 220 21 CGTGATCCTGTTGAAGGGTCG 259 Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Discussion started by: thienxho
2 Replies

6. Shell Programming and Scripting

Remove first n characters from specific columns

I have a file like: s_20331 803 1 1 5 1:2=0.00000000 1:3=0.00000000 1:4=0.11111111 s_20331 814 1 1 5 1:2=0.00000000 1:3=0.12611607 1:4=0.00000000I would like to remove the four characters "x:x=" from all columns containing them (in my actual file, there are 15 total columns (i.e. columns... (1 Reply)
Discussion started by: pathunkathunk
1 Replies

7. UNIX for Dummies Questions & Answers

Printing lines with specific strings at specific columns

Hi I have a file which is tab-delimited. Now, I'd like to print the lines which have "chr6" string in both first and second columns. Could anybody help? (3 Replies)
Discussion started by: a_bahreini
3 Replies

8. Shell Programming and Scripting

Find and replace with 0 for characters in a specific position

Need command for position based replace: I need a command to replace with 0 for characters in the positions 11 to 20 to all the lines starts with 6 in a file. For example the file ABC.txt has: abcdefghijklmnopqrstuvwxyz 6abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz... (4 Replies)
Discussion started by: thangabalu
4 Replies

9. UNIX for Beginners Questions & Answers

Find records with specific characters in 2 nd field

Hi , I have a requirement to read a file ( 5 fields , ~ delimited) and find the records which contain anything other than Alphabets, Numbers , comma ,space and dot . ie a-z and A-Z and 0-9 and . and " " and , in 2nd field. Once I do that i would want the result to have field1|<flag> flag can... (2 Replies)
Discussion started by: ashwin3086
2 Replies

10. Shell Programming and Scripting

Calling specific characters from a find variable

I'm trying to do something like this: find . -name blablabla -exec ln -s ./"{:53:14} blablabla" \; The idea is find blablabla and create a symbolic link to it using part of it's path and then it's name, "blablabla." I just don't know if I can call characters out of a find variable. ... (16 Replies)
Discussion started by: scribling
16 Replies
iconv_8859-2(5) 					Standards, Environments, and Macros					   iconv_8859-2(5)

NAME
iconv_8859-2 - code set conversion tables for ISO 8859-2 (Latin 2) DESCRIPTION
The following code set conversions are supported: +--------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+--------------------+ | Code |Symbol |Target Code |Symbol | Target Output | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |MS 1250 |win2 | Windows Latin 2 | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |MS 852 |dos2 | MS-DOS Latin 2 | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |Mazovia |maz | Mazovia | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |DHN |dhn | Dom Handlowy Nauki | +--------------+--------+--------------+--------+--------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. ISO 8859-2 to MS 1250 For the conversion of ISO 8859-2 to MS 1250, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | MS 1250 | ISO 8859-2 | MS 1250 | |24 | 4 |261 |271 | |177-237 | 40 |265 |276 | |241 | 245 |266 |234 | |245 | 274 |267 |241 | |246 | 214 |271 |232 | |251 | 212 |273 |235 | |253 | 215 |274 |237 | |254 | 217 |276 |236 | |256 | 216 |266 |236 | +---------------+----------------+----------------+---------------+ ISO 8859-2 to MS 852 For the conversion of ISO 8859-2 to MS 852, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | MS 852 | ISO 8859-2 | MS 852 | |24 | 4 |316 |327 | |177-237 | 40 |317 |322 | |240 | 377 |320 |321 | |241 | 244 |321 |343 | |242 | 364 |322 |325 | |243 | 235 |323 |340 | |244 | 317 |324 |342 | |245 | 225 |325 |212 | |246 | 227 |326 |231 | |247 | 365 |327 |236 | |250 | 371 |330 |374 | |251 | 346 |331 |336 | |252 | 270 |332 |351 | |253 | 233 |333 |353 | |254 | 215 |334 |232 | |255 | 360 |335 |355 | |256 | 246 |336 |335 | |257 | 275 |337 |341 | |260 | 370 |340 |352 | |261 | 245 |341 |240 | |262 | 362 |342 |203 | |263 | 210 |343 |307 | |264 | 357 |344 |204 | |265 | 226 |345 |222 | |266 | 230 |346 |206 | |267 | 363 |347 |207 | |270 | 367 |350 |237 | |271 | 347 |351 |202 | |272 | 255 |352 |251 | |273 | 234 |353 |211 | |274 | 253 |354 |330 | |275 | 361 |355 |241 | |276 | 247 |356 |214 | |277 | 276 |357 |324 | |300 | 350 |360 |320 | |301 | 265 |361 |344 | |302 | 266 |362 |345 | |303 | 306 |363 |242 | |304 | 216 |364 |223 | |305 | 221 |365 |213 | |306 | 217 |366 |224 | |307 | 200 |367 |366 | |310 | 254 |370 |375 | |311 | 220 |371 |205 | |312 | 250 |372 |243 | |313 | 323 |374 |201 | |314 | 267 |375 |354 | |315 | 326 |376 |356 | |366 | 367 | | | +---------------+----------------+----------------+---------------+ ISO 8859-2 to Mazovia For the conversion of ISO 8859-2 to Mazovia, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | Mazovia | ISO 8859-2 | Mazovia | |24 | 4 |323 |243 | |177-237 | 40 |324-325 |40 | |240 | 377 |326 |231 | |241 | 217 |327-333 |40 | |242 | 40 |334 |232 | |243 | 234 |335-336 |40 | |244-245 | 40 |337 |341 | |246 | 230 |340-341 |40 | |247-253 | 40 |342 |203 | |254 | 240 |343 |40 | |255-256 | 40 |344 |204 | |257 | 241 |345 |40 | |260 | 370 |346 |215 | |261 | 206 |347 |207 | |262 | 40 |350 |40 | |263 | 222 |351 |202 | |264-265 | 40 |352 |221 | |266 | 236 |353 |211 | |267-273 | 40 |354-355 |40 | |274 | 246 |356 |214 | |275-276 | 40 |357-360 |40 | |277 | 247 |361 |244 | |300-303 | 40 |362 |40 | |304 | 216 |363 |242 | |305 | 40 |364 |223 | |306 | 225 |365 |40 | |307 | 200 |366 |224 | |310-311 | 40 |367 |366 | |312 | 220 |370-373 |40 | |313-320 | 40 |374 |201 | |321 | 245 |375-376 |40 | |322 | 40 | | | +---------------+----------------+----------------+---------------+ ISO 8859-2 to DHN For the conversion of ISO 8859-2 to DHN, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | DHN | ISO 8859-2 | DHN | |24 | 4 |322 |40 | |177-237 | 40 |323 |205 | |240 | 377 |324-325 |40 | |241 | 200 |326 |231 | |242 | 40 |327-333 |40 | |243 | 203 |334 |232 | |244-245 | 40 |335-336 |40 | |246 | 206 |337 |341 | |247-253 | 40 |340 |40 | |254 | 207 |341 |240 | |255-256 | 40 |342-345 |40 | |257 | 210 |346 |212 | |260 | 370 |347-351 |40 | |261 | 211 |352 |213 | |262 | 40 |353-354 |40 | |263 | 214 |355 |241 | |264-265 | 40 |356-360 |40 | |266 | 217 |361 |215 | |267-273 | 40 |362 |40 | |274 | 220 |363 |216 | |275-276 | 40 |364 |223 | |277 | 221 |365 |40 | |300-305 | 40 |366 |224 | |306 | 201 |367 |366 | |307-311 | 40 |370-371 |40 | |312 | 202 |372 |243 | |313-320 | 40 |373-376 |40 | |321 | 204 | | | +---------------+----------------+----------------+---------------+ 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_8859-2(5)
All times are GMT -4. The time now is 12:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy