Sponsored Content
Top Forums Shell Programming and Scripting Break a file into smaller pieces with same search string Post 303023873 by nadeemrafikhan on Tuesday 25th of September 2018 05:43:18 AM
Old 09-25-2018
below is the Input file

Code:
<BEAM-PATTERN-LIST>
<bean pattern>
<M>0.0,0.00</M>
<M>1.0,0.00</M>
<M>2.0,0.00</M>
<M>3.0,0.00</M>
<M>4.0,0.00</M>
<M>5.0,0.10</M>
<M>6.0,0.10</M>
<M>7.0,0.10</M>
<M>8.0,0.20</M>
<M>9.0,0.20</M>
</bean pattern>
<bean pattern>
<M>170.0,26.50</M>
<M>171.0,26.40</M>
<M>172.0,26.30</M>
<M>173.0,26.30</M>
<M>174.0,26.20</M>
<M>175.0,26.10</M>
<M>176.0,26.10</M>
<M>177.0,26.10</M>
<M>178.0,26.00</M>
<M>179.0,26.00</M>
</bean pattern>
<bean pattern>
<M>190.0,26.00</M>
<M>191.0,26.10</M>
<M>192.0,26.10</M>
<M>193.0,26.10</M>
<M>194.0,26.20</M>
<M>195.0,26.30</M>
<M>196.0,26.30</M>
<M>197.0,26.40</M>
<M>198.0,26.50</M>
<M>199.0,26.50</M>
</bean pattern>
---------------
---------------
------so on-----------
-----------------
</BEAM-PATTERN-LIST>

out put files
first file:
Code:
<M>0.0,0.00</M>
<M>1.0,0.00</M>
<M>2.0,0.00</M>
<M>3.0,0.00</M>
<M>4.0,0.00</M>
<M>5.0,0.10</M>
<M>6.0,0.10</M>
<M>7.0,0.10</M>
<M>8.0,0.20</M>
<M>9.0,0.20</M>

second output file
Code:
<M>170.0,26.50</M>
<M>171.0,26.40</M>
<M>172.0,26.30</M>
<M>173.0,26.30</M>
<M>174.0,26.20</M>
<M>175.0,26.10</M>
<M>176.0,26.10</M>
<M>177.0,26.10</M>
<M>178.0,26.00</M>
<M>179.0,26.00</M>

third out file
Code:
<M>190.0,26.00</M>
<M>191.0,26.10</M>
<M>192.0,26.10</M>
<M>193.0,26.10</M>
<M>194.0,26.20</M>
<M>195.0,26.30</M>
<M>196.0,26.30</M>
<M>197.0,26.40</M>
<M>198.0,26.50</M>
<M>199.0,26.50</M>

---------------
-------nth output file-----------
------------------

hope i make clear this one
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to insert line break + string in vi (search & replace )

Hello all i have big test file that has allot of structure text something like this : <foo1 *.html> <blah action> somthing 1 somthing 2 </blah> </foo1 > now i will like to insert 2 more lines of text below the <blah action> so it will be like : <foo1... (1 Reply)
Discussion started by: umen
1 Replies

2. Shell Programming and Scripting

appending string to text file based on search string

Hi, I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that? Please help. Malay (1 Reply)
Discussion started by: malaymaru
1 Replies

3. Shell Programming and Scripting

search string in a file and retrieve 10 lines including string line

Hi Guys, I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same. can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies

4. UNIX for Dummies Questions & Answers

add a string to a file without line break

I searched and found "echo -n" and "printf" are solution for this, but they are not here: $ echo "hello" >> test $ cat test hello $ echo -n "world" >> test $ cat test hello world $ echo -n " seriously?" >> test $ cat test hello world seriously? This is not successful... (15 Replies)
Discussion started by: stunn3r
15 Replies

5. Shell Programming and Scripting

Search a string in a text file and add another string at the particular position of a line

I am having a text file which is having more than 200 lines. EX: 001010122 12000 BIB 12000 11200 1200003 001010122 2000 AND 12000 11200 1200003 001010122 12000 KVB 12000 11200 1200003 In the above file i want to search for string KVB and add/replace... (1 Reply)
Discussion started by: suryanarayana
1 Replies

6. Shell Programming and Scripting

Search a string in a text file and add another string at the end of line

Dear All I am having a text file which is having more than 200 lines. EX: 001010122 12000 BIB 12000 11200 1200003 001010122 2000 AND 12000 11200 1200003 001010122 12000 KVB 12000 11200 1200003 In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies

7. Shell Programming and Scripting

Search string within a file and list common words from the line having the search string

Hi, Need your help for this scripting issue I have. I am not really good at this, so seeking your help. I have a file looking similar to this: Hello, i am human and name=ABCD. How are you? Hello, i am human and name=PQRS. I am good. Hello, i am human and name=ABCD. Good bye. Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies

8. UNIX for Dummies Questions & Answers

Search for a string,delete the line and replace with new string in a file

Hi Everyone, I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file. I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies

9. UNIX for Beginners Questions & Answers

Search a string and display its location on the entire string and make a text file

I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file. Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies

10. UNIX for Beginners Questions & Answers

Search partial string in a file and replace the string - UNIX

I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this. string(Scenario 1)- user::r--,user::ourfrd:r-- String(Scenario 2)- user::r-- File **** # file: /local/Desktop/myfile # owner: me # group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
ISO_8859-14(7)						     Linux Programmer's Manual						    ISO_8859-14(7)

NAME
iso_8859-14 - the ISO 8859-14 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-14 encodes the characters used in Celtic languages. 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-14 Characters The following table displays the characters in ISO 8859-14, which are printable and unlisted in the ascii(7) manual page. The fourth col- umn will only show the proper glyphs in an environment configured for ISO 8859-14. Oct Dec Hex Char Description ---------------------------------------------------------------- 240 160 a0 NO-BREAK SPACE 241 161 a1 LATIN CAPITAL LETTER B WITH DOT ABOVE 242 162 a2 LATIN SMALL LETTER B WITH DOT ABOVE 243 163 a3 L POUND SIGN 244 164 a4 LATIN CAPITAL LETTER C WITH DOT ABOVE 245 165 a5 LATIN SMALL LETTER C WITH DOT ABOVE 246 166 a6 LATIN CAPITAL LETTER D WITH DOT ABOVE 247 167 a7 S SECTION SIGN 250 168 a8 LATIN CAPITAL LETTER W WITH GRAVE 251 169 a9 (C) COPYRIGHT SIGN 252 170 aa LATIN CAPITAL LETTER W WITH ACUTE 253 171 ab LATIN SMALL LETTER D WITH DOT ABOVE 254 172 ac LATIN CAPITAL LETTER Y WITH GRAVE 255 173 ad SOFT HYPHEN 256 174 ae (R) REGISTERED SIGN 257 175 af LATIN CAPITAL LETTER Y WITH DIAERESIS 260 176 b0 LATIN CAPITAL LETTER F WITH DOT ABOVE 261 177 b1 LATIN SMALL LETTER F WITH DOT ABOVE 262 178 b2 LATIN CAPITAL LETTER G WITH DOT ABOVE 263 179 b3 LATIN SMALL LETTER G WITH DOT ABOVE 264 180 b4 LATIN CAPITAL LETTER M WITH DOT ABOVE 265 181 b5 LATIN SMALL LETTER M WITH DOT ABOVE 266 182 b6 9| PILCROW SIGN 267 183 b7 LATIN CAPITAL LETTER P WITH DOT ABOVE 270 184 b8 LATIN SMALL LETTER W WITH GRAVE 271 185 b9 LATIN SMALL LETTER P WITH DOT ABOVE 272 186 ba LATIN SMALL LETTER W WITH ACUTE 273 187 bb LATIN CAPITAL LETTER S WITH DOT ABOVE 274 188 bc LATIN SMALL LETTER Y WITH GRAVE 275 189 bd LATIN CAPITAL LETTER W WITH DIAERESIS 276 190 be LATIN SMALL LETTER W WITH DIAERESIS 277 191 bf LATIN SMALL LETTER S WITH DOT ABOVE 300 192 c0 A LATIN CAPITAL LETTER A WITH GRAVE 301 193 c1 A LATIN CAPITAL LETTER A WITH ACUTE 302 194 c2 A LATIN CAPITAL LETTER A WITH CIRCUMFLEX 303 195 c3 A LATIN CAPITAL LETTER A WITH TILDE 304 196 c4 A LATIN CAPITAL LETTER A WITH DIAERESIS 305 197 c5 A LATIN CAPITAL LETTER A WITH RING ABOVE 306 198 c6 AE LATIN CAPITAL LETTER AE 307 199 c7 C LATIN CAPITAL LETTER C WITH CEDILLA 310 200 c8 E LATIN CAPITAL LETTER E WITH GRAVE 311 201 c9 E LATIN CAPITAL LETTER E WITH ACUTE 312 202 ca E LATIN CAPITAL LETTER E WITH CIRCUMFLEX 313 203 cb E LATIN CAPITAL LETTER E WITH DIAERESIS 314 204 cc I LATIN CAPITAL LETTER I WITH GRAVE 315 205 cd I LATIN CAPITAL LETTER I WITH ACUTE 316 206 ce I LATIN CAPITAL LETTER I WITH CIRCUMFLEX 317 207 cf I LATIN CAPITAL LETTER I WITH DIAERESIS 320 208 d0 LATIN CAPITAL LETTER W WITH CIRCUMFLEX 321 209 d1 N LATIN CAPITAL LETTER N WITH TILDE 322 210 d2 O LATIN CAPITAL LETTER O WITH GRAVE 323 211 d3 O LATIN CAPITAL LETTER O WITH ACUTE 324 212 d4 O LATIN CAPITAL LETTER O WITH CIRCUMFLEX 325 213 d5 O LATIN CAPITAL LETTER O WITH TILDE 326 214 d6 O LATIN CAPITAL LETTER O WITH DIAERESIS 327 215 d7 LATIN CAPITAL LETTER T WITH DOT ABOVE 330 216 d8 O LATIN CAPITAL LETTER O WITH STROKE 331 217 d9 U LATIN CAPITAL LETTER U WITH GRAVE 332 218 da U LATIN CAPITAL LETTER U WITH ACUTE 333 219 db U LATIN CAPITAL LETTER U WITH CIRCUMFLEX 334 220 dc U LATIN CAPITAL LETTER U WITH DIAERESIS 335 221 dd Y LATIN CAPITAL LETTER Y WITH ACUTE 336 222 de LATIN CAPITAL LETTER Y WITH CIRCUMFLEX 337 223 df B LATIN SMALL LETTER SHARP S 340 224 e0 a LATIN SMALL LETTER A WITH GRAVE 341 225 e1 a LATIN SMALL LETTER A WITH ACUTE 342 226 e2 a LATIN SMALL LETTER A WITH CIRCUMFLEX 343 227 e3 a LATIN SMALL LETTER A WITH TILDE 344 228 e4 a LATIN SMALL LETTER A WITH DIAERESIS 345 229 e5 a LATIN SMALL LETTER A WITH RING ABOVE 346 230 e6 ae LATIN SMALL LETTER AE 347 231 e7 c LATIN SMALL LETTER C WITH CEDILLA 350 232 e8 e LATIN SMALL LETTER E WITH GRAVE 351 233 e9 e LATIN SMALL LETTER E WITH ACUTE 352 234 ea e LATIN SMALL LETTER E WITH CIRCUMFLEX 353 235 eb e LATIN SMALL LETTER E WITH DIAERESIS 354 236 ec i LATIN SMALL LETTER I WITH GRAVE 355 237 ed i LATIN SMALL LETTER I WITH ACUTE 356 238 ee i LATIN SMALL LETTER I WITH CIRCUMFLEX 357 239 ef i LATIN SMALL LETTER I WITH DIAERESIS 360 240 f0 LATIN SMALL LETTER W WITH CIRCUMFLEX 361 241 f1 n LATIN SMALL LETTER N WITH TILDE 362 242 f2 o LATIN SMALL LETTER O WITH GRAVE 363 243 f3 o LATIN SMALL LETTER O WITH ACUTE 364 244 f4 o LATIN SMALL LETTER O WITH CIRCUMFLEX 365 245 f5 o LATIN SMALL LETTER O WITH TILDE 366 246 f6 o LATIN SMALL LETTER O WITH DIAERESIS 367 247 f7 LATIN SMALL LETTER T WITH DOT ABOVE 370 248 f8 o LATIN SMALL LETTER O WITH STROKE 371 249 f9 u LATIN SMALL LETTER U WITH GRAVE 372 250 fa u LATIN SMALL LETTER U WITH ACUTE 373 251 fb u LATIN SMALL LETTER U WITH CIRCUMFLEX 374 252 fc u LATIN SMALL LETTER U WITH DIAERESIS 375 253 fd y LATIN SMALL LETTER Y WITH ACUTE 376 254 fe LATIN SMALL LETTER Y WITH CIRCUMFLEX 377 255 ff y LATIN SMALL LETTER Y WITH DIAERESIS NOTES
ISO 8859-14 is also known as Latin-8. SEE ALSO
ascii(7) COLOPHON
This page is part of release 3.27 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-14(7)
All times are GMT -4. The time now is 05:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy