Sponsored Content
Full Discussion: del 1st 2 lines
Top Forums UNIX for Dummies Questions & Answers del 1st 2 lines Post 302367785 by thegeek on Tuesday 3rd of November 2009 12:34:09 PM
Old 11-03-2009
1. use tail

Code:
tail -n +3 filename.txt

2. sed
Code:
sed '1d;2d' filename.txt

or

Code:
sed '1,2d' filename.txt

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how tp del progs

ermm... wats the general commands to uninstall programs.....izzit rpm -e cos it keep telling me package not installed..... anyway anyone know any good links for licq for redhat 9.0 shrike ... cos downloaded one ... dun seems to be working ... trying to get rid of it appreciate if anyone can... (3 Replies)
Discussion started by: kaya
3 Replies

2. UNIX for Dummies Questions & Answers

route del trouble

Hi, I'm having trouble deleting a route: # route del 192.168.0.0 SIOCDELRT: Invalid process # route del -net 192.168.0.0 SIOCDELRT: Invalid argument The route is in the table: # route Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 ... (1 Reply)
Discussion started by: spaesani
1 Replies

3. UNIX for Dummies Questions & Answers

How to del word by random input?

Hi, I got big problem. a line contains like this: Hell "A,B,C", how to delete A or B or C by using sed or other tools? I do not have any idea. Many thanks. (2 Replies)
Discussion started by: lemon_06
2 Replies

4. Shell Programming and Scripting

need to delete all lines from a group of files except the 1st 2 lines

Hello, I have a group of text files with many lines in each file. I need to delete all the lines in each and only leave 2 lines in each file. (3 Replies)
Discussion started by: script_op2a
3 Replies

5. Shell Programming and Scripting

awk to del files

Hi, I want to delete files but it has space beween name & .log For ex -rw-r--r-- 1 root other 5429 Mar 19 2008 \AnjuP .log -rw-r--r-- 1 root other 1352 Mar 21 2008 \ranjap .log -rw-r--r-- 1 root other 1355 Mar 29 2008 \varghp .log so if I run ls -ltr | head -3 | awk '{print $9 $10}... (8 Replies)
Discussion started by: tuxian
8 Replies

6. UNIX for Dummies Questions & Answers

del lines

i have file that looks like this: 031000503 2000049262784 LCK00000050 i want to look like this: 031000503 2000049262784 LCK00000050 i'd like to del 10-15 Please use code tags! (6 Replies)
Discussion started by: lawsongeek
6 Replies

7. Shell Programming and Scripting

not del a file not affecting other permissions

i was faced by a question from a friend. i found it very tricky. all my months of learning unix i never can figure it out still. heres the question he faced me with. wondering if you all can help me figure a solution. ill let him know the forums helped me out :D What command would you use... (10 Replies)
Discussion started by: sunny231
10 Replies

8. UNIX for Dummies Questions & Answers

append following lines to 1st line, every 3 lines

I have output like this: USER_ID 12/31/69 19:00:00 12/31/69 19:00:00 USER_ID 12/31/69 19:00:00 12/31/69 19:00:00 USER_ID 12/31/69 19:00:00 12/31/69 19:00:00 USER_ID 12/31/69 19:00:00 12/31/69 19:00:00 ... where USER_ID is a unique user login followed by their login timestamp and... (6 Replies)
Discussion started by: MaindotC
6 Replies

9. Shell Programming and Scripting

Del Line if specific issue

HI Guys I have below input : PO 121255 SorkO_RM_,rlsmel=310_410_3_11104_43831 PO 125564 SorkO_RM_,rlsmel=007G43823 I want delete line which have "_" after = Sign Output : PO 125564 SorkO_RM_,rlsmel=007G43823 (2 Replies)
Discussion started by: pareshkp
2 Replies
Locale::Codes::LangExt(3pm)				 Perl Programmers Reference Guide			       Locale::Codes::LangExt(3pm)

NAME
Locale::Codes::LangExt - standard codes for language extension identification SYNOPSIS
use Locale::Codes::LangExt; $lext = code2langext('acm'); # $lext gets 'Mesopotamian Arabic' $code = langext2code('Mesopotamian Arabic'); # $code gets 'acm' @codes = all_langext_codes(); @names = all_langext_names(); DESCRIPTION
The "Locale::Codes::LangExt" module provides access to standard codes used for identifying language extensions, such as those as defined in the IANA language registry. Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default IANA language registry codes will be used. SUPPORTED CODE SETS
There are several different code sets you can use for identifying language extensions. A code set may be specified using either a name, or a constant that is automatically exported by this module. For example, the two are equivalent: $lext = code2langext('acm','alpha'); $lext = code2langext('acm',LOCALE_LANGEXT_ALPHA); The codesets currently supported are: alpha This is the set of three-letter (lowercase) codes from the IANA language registry, such as 'acm' for Mesopotamian Arabic. This is the default code set. ROUTINES
code2langext ( CODE [,CODESET] ) langext2code ( NAME [,CODESET] ) langext_code2code ( CODE ,CODESET ,CODESET2 ) all_langext_codes ( [CODESET] ) all_langext_names ( [CODESET] ) Locale::Codes::LangExt::rename_langext ( CODE ,NEW_NAME [,CODESET] ) Locale::Codes::LangExt::add_langext ( CODE ,NAME [,CODESET] ) Locale::Codes::LangExt::delete_langext ( CODE [,CODESET] ) Locale::Codes::LangExt::add_langext_alias ( NAME ,NEW_NAME ) Locale::Codes::LangExt::delete_langext_alias ( NAME ) Locale::Codes::LangExt::rename_langext_code ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangExt::add_langext_code_alias ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangExt::delete_langext_code_alias ( CODE [,CODESET] ) These routines are all documented in the Locale::Codes::API man page. SEE ALSO
Locale::Codes The Locale-Codes distribution. Locale::Codes::API The list of functions supported by this module. http://www.iana.org/assignments/language-subtag-registry The IANA language subtag registry. AUTHOR
See Locale::Codes for full author history. Currently maintained by Sullivan Beck (sbeck@cpan.org). COPYRIGHT
Copyright (c) 2011-2013 Sullivan Beck This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2013-11-04 Locale::Codes::LangExt(3pm)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy