Sponsored Content
Full Discussion: Removing lines from a file
Top Forums Shell Programming and Scripting Removing lines from a file Post 303013336 by kristinu on Monday 19th of February 2018 09:04:14 PM
Old 02-19-2018
I want to remove files ending with

.001 to .207
.282 to .356
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing lines from a file

Hello i have 2 files file1 and file2 as shown below file1 110010000000206|567810008161509 110010000000207|567810072227627 110010000000208|567811368851555 110010000000209|567811422513652 110010000000210|567812130217683 110010000000211|567813220211182 110010000000212|567813449322589... (4 Replies)
Discussion started by: PradeepRed
4 Replies

2. Shell Programming and Scripting

Removing lines within a file

Hi There, I've written a script that processes a data file on our system. Basically the script reads a post code from a list file, looks in the data file for the first occurrence (using grep) and reads the line number. It then tails the data file, with the line number just read, and outputs to a... (3 Replies)
Discussion started by: tookers
3 Replies

3. UNIX for Dummies Questions & Answers

Removing lines from a file

I'm trying to find a command which will allow me to remove a range of lines (2-4) from a .dat file from the command line without opening the file. Someone mentioned using the ex command? Does anyone have any ideas? thanks (6 Replies)
Discussion started by: computersaysno
6 Replies

4. AIX

Removing the first and last lines in a file

Hi Gurus, I'm a little new to UNIX. How can I do remove the first and last line in a file? Say, supppose I have a file as below: 1DMA 400002BARRIE 401002CALGARY/LETHBRI 402002CARLETON 500001PORTLAND-AUBRN 501001NEW YORK, NY ... (1 Reply)
Discussion started by: naveendronavall
1 Replies

5. Shell Programming and Scripting

Removing the first and last lines in a file

Hi Gurus, I'm a little new to UNIX. How can I do remove the first and last line in a file? Say, supppose I have a file as below: Code: 1DMA 400002BARRIE 401002CALGARY/LETHBRI 402002CARLETON 500001PORTLAND-AUBRN 501001NEW YORK, NY 502001BINGHAMTON, NY ... (2 Replies)
Discussion started by: naveendronavall
2 Replies

6. Shell Programming and Scripting

Removing Lines From a File

Hi Does anybody know of a command that will enable me to remove all entries in a file that have the format (name & time) more testfile anthony 2003 anthonyr 2008 amorel 15:00 anthonyp 14:35 anthonyp 14:35 anthonyr 2008 ardean 13:28 arlene 2003 arlenem 08:15 arlenem 08:15... (5 Replies)
Discussion started by: jamba1
5 Replies

7. Shell Programming and Scripting

removing lines from file

Hi I have many files all with 1 field per line as in 12345 abcde john.paul.net 6789101 how do I remove ceratin lines from these files. Have tried sed but sed wrecks my head! Many thanks in advance for any help (9 Replies)
Discussion started by: rob171171
9 Replies

8. UNIX for Dummies Questions & Answers

removing several lines from a file

Hi folks, I have a long string of DNA sequences, and I need to remove several lines, as well as the line directly following them. For example, here is a sample of my starting material: >548::GY31UMJ02DLYEH rank=0007170 x=1363.5 y=471.0 length=478... (1 Reply)
Discussion started by: kkohl78
1 Replies

9. Shell Programming and Scripting

Removing lines from a file

Hi, I have a linux server that was hacked and I have a bunch of files that sporadically contain the following lines through out the file: <?php eval(base64_decode("Xxxxxxxxxxxxxx/xxxxxxxx")); I did't put the exact lines of the file in this post. The "Xxxx" are random letters/numbers.... (8 Replies)
Discussion started by: nck
8 Replies

10. Shell Programming and Scripting

Removing multiple lines from input file, if multiple lines match a pattern.

GM, I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed. I am assuming that sed, awk or even perl could do what I need. I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 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 11:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy