Sponsored Content
Full Discussion: Remove line from file
Top Forums Shell Programming and Scripting Remove line from file Post 302456493 by gvj on Friday 24th of September 2010 11:12:07 AM
Old 09-24-2010
sed -i '3d' filename
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove every third line from a file

I need to remove every second and every third line from a file. My idea was to do it in two operations. First every third line, then every second line. The problem is that i can't find out how to do it. I tried to look for some sed oneliners, but couldn't find any. Suggestions? (4 Replies)
Discussion started by: bistru
4 Replies

2. Shell Programming and Scripting

Remove header(first line) and trailer(last line) in ANY given file

Hi, I need some help in removing the header (first line) and the trailer (last line) in a give file... The data file actually comes in EBCDIC format and I converted it into ASCII.. Now I need to strip off the first line and the last line.. I think we can use sed to do something like this:... (2 Replies)
Discussion started by: madhunk
2 Replies

3. Shell Programming and Scripting

How to remove last line of the file

hi sir, i need help..how to remove last line of the each file for example i have files a.txt ,b.txt and so on..i wanted to delete last list of each file..the patten not same for each file..any help? thanks in advance (3 Replies)
Discussion started by: mani_um
3 Replies

4. UNIX for Dummies Questions & Answers

remove a line within a file

Hi all, i have a text file similar to belowA1 A2 A3 B1 ... .... *** # first occurance B1 ... .... *** # second occurance B1 ... .... *** # third occurance My desired output is B1 ... .... *** # second occurance B1 ... .... *** # third occurance I want to remove the first line that is after... (3 Replies)
Discussion started by: new2ss
3 Replies

5. Shell Programming and Scripting

Remove a line from a file

Hi ,guys. I have one question: I want to write a script which removes a line with certain string from a file, for example The name of the file is: "passwd", the contents of it is below: ************************* ... brownj2:x:5000: hynesp:x:5001: leeb:x:5002 dioxna:x:5003 ... ... (2 Replies)
Discussion started by: daikeyang
2 Replies

6. Shell Programming and Scripting

Remove first line of file

Is there an easy way to remove the first line of a file so that the file: aaron benjamin cecilia daniel elliot fernando would become benjamin cecilia daniel elliot fernando (4 Replies)
Discussion started by: locoroco
4 Replies

7. Shell Programming and Scripting

How to remove last line of the file

Hi, unix gurus, I need to remove last line of the file. anybody can help me thanks in advance (7 Replies)
Discussion started by: ken002
7 Replies

8. Shell Programming and Scripting

Remove line from file and read file line by line

I have a file output.txt. File looks like this name1 10 name2 2 name3 5 I get a number n and I need to remove all lines which has number (after name) smaller or equal to n number. After that I need to write lines from file and my output must be like this: Output: 'name1 10' Output: 'name2... (1 Reply)
Discussion started by: kubo12312
1 Replies

9. UNIX for Beginners Questions & Answers

Remove first line of file

How can I use bash to remove the first line of a file? (3 Replies)
Discussion started by: locoroco
3 Replies
ttf2afm(1)							      pdfTeX								ttf2afm(1)

NAME
ttf2afm - utility to generate AFM files for TrueType fonts SYNOPSIS
ttf2afm [OPTIONS] FONTFILE DESCRIPTION
ttf2afm is used to generate Adobe Font Metrics (AFM) files for TrueType (TTF) fonts to allow them to be used with TeX. ttf2afm takes the name of a TrueType font file as a required argument. It may also take one or more options from the list below (note that -d and -h are mutually exclusive). OPTIONS
-a print all glyphs -i read names in encoding vector in form `indexnum' -d print glyph names in the form `indexdecimal_num' -h print glyph names in the form `indexhex_num' -c name print encoding tables to file name.eMN, where M is the platform number and N is the encoding -e enc use encoding from file enc -o output output to file output instead of stdout Platform numbers can be one of 0 Apple Unicode 1 Macintosh 2 ISO 3 Microsoft Encodings can be 0 Roman (if platform is Macintosh) 0 Symbol (if platform is Microsoft) 1 Unicode (if platform is Microsoft) BUGS
None known, but submit bug reports to <pdftex@tug.org> (mailing list). AUTHOR
ttf2afm is part of pdfTeX and was written by Han The Thanh <thanh@informatics.muni.cz>. This manual page was written by C.M. Connelly <cmc@debian.org>, for the Debian GNU/Linux system. It may be used by other distributions without contacting the author. Any mistakes or omissions in the manual page are my fault; inquiries about or corrections to this manual page should be directed to me (and not to the primary author). pdfTeX September 2000 ttf2afm(1)
All times are GMT -4. The time now is 05:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy