Sponsored Content
Top Forums Shell Programming and Scripting Discard part of a file based on a pattern --- Post 302902190 by Subbeh on Monday 19th of May 2014 08:48:22 AM
Old 05-19-2014
Try this:
Code:
awk '/---/{p++;next} p==2' file

This User Gave Thanks to Subbeh For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to change a particular value in a file based on a pattern

how to change a particular value in a line of a file based on a pattern eg: source file will be like ================= 99999999999 maximum number(0) ksuisikjjsl;;l skjss''llsl minimum number 0000000 maximum number of golds(0) target should be like ================= ... (9 Replies)
Discussion started by: orbeyen
9 Replies

2. Shell Programming and Scripting

listing Directory chronologically based on part of file name

hi Everbody, I had file names as shown file_01_20101104.txt file_01_20101105.txt file_02_20101104.txt file_01_20101205.txt file_03_20101104.txt file_02_20101105.txt Now i want to list them based on the date in the file name as shown... file_01_20101104.txt file_02_20101104.txt... (3 Replies)
Discussion started by: Reddy482
3 Replies

3. UNIX for Dummies Questions & Answers

Removing Part of a variable based on a pattern

Hi All, I am writing a script to work with files in a folder. The files are all in the following patterns (without quotes): "some filename - NxNN - the end.YYY" or "some filename - NNxNN - the end.YYY" Where N = a single number and YYY is the extension. Basically what I want... (5 Replies)
Discussion started by: sgtbobie
5 Replies

4. Shell Programming and Scripting

how to find pattern and discard lines before it?

Hi all, I'd like to search a file for the first occurence of the phrase "PLASTICS THAT EXPIRE" and then discard all the lines that came before it. Output the remainder to a new file. Operating system is hp-ux. I've searched for usual awk and sed one liners but can't find a solution. Thank... (4 Replies)
Discussion started by: Scottie1954
4 Replies

5. Shell Programming and Scripting

Remove part of a file based on identifiers

here below is a part of the file cat fileName.txt NAME=APP-VA-va_mediaservices-113009-VA_MS_MEDIA_SERVER_NOT_PRESENT-S FIXED=false DATE= 2013-02-19 03:46:04.4 PRIORITY=HIGH RESOURCE NAME=ccm113 NAME=APP-DS-ds_ha-140020-databaseReplicationFailure-S FIXED=false DATE= 2013-02-19... (4 Replies)
Discussion started by: vivek d r
4 Replies

6. Shell Programming and Scripting

Grep a part of file based on string identifiers

consider below file contents cat myOutputFIle.txt 8 CCM-HQE-ResourceHealthCheck: Resource List : No RED/UNKNOWN resource Health entries found ---------------------------------------------------------- 9 CCM-TraderLogin-Status: Number of logins: 0... (4 Replies)
Discussion started by: vivek d r
4 Replies

7. Shell Programming and Scripting

Splitting textfile based on pattern and name new file after pattern

Hi there, I am pretty new to those things, so I couldn't figure out how to solve this, and if it is actually that easy. just found that awk could help:(. so i have a textfile with strings and numbers (originally copy pasted from word, therefore some empty cells) in the following structure: SC... (9 Replies)
Discussion started by: luja
9 Replies

8. Shell Programming and Scripting

Finding pattern in a text file and returning a part of the word

Dear All, assume that we have a text file or a folder of files, I want to find this pattern followers*.csv in the text file , and get * as the output. There are different matches and * means every character. Thank you in advance. Best, David (1 Reply)
Discussion started by: davidfreed
1 Replies

9. UNIX for Advanced & Expert Users

Split one file to many based on pattern

Hello All, I have records in a file in a pattern A,B,B,B,B,K,A,B,B,K Is there any command or simple logic I can pull out records into multiple files based on A record? I want output as File1: A,B,B,B,B,K File2: A,B,B,K (9 Replies)
Discussion started by: deal1dealer
9 Replies

10. UNIX for Beginners Questions & Answers

Splitting a file based on a pattern

Hi All, I am having a problem. I tried to extract the chunk of data and tried to fix I am not able to. Any help please Basically I need to remove the for , values after K, this is how it is now A,, B, C,C, D,D, 12/04/10,12/04/10, K,1,1,1,1,0,3.0, K,1,1,1,2,0,4.0,... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
wxMenu(3erl)						     Erlang Module Definition						      wxMenu(3erl)

NAME
wxMenu - See external documentation: wxMenu. DESCRIPTION
See external documentation: wxMenu . This class is derived (and can use functions) from: wxEvtHandler DATA TYPES
wxMenu() : An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes. EXPORTS
new() -> wxMenu() Equivalent to new([]) . new(Options::[Option]) -> wxMenu() Types Option = {style, integer()} See external documentation . new(Title::string(), Options::[Option]) -> wxMenu() Types Option = {style, integer()} See external documentation . append(This::wxMenu(), Item::wxMenuItem() (see module wxMenuItem)) -> wxMenuItem() (see module wxMenuItem) See external documentation . append(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to append(This, Itemid, Text, []) . append(This::wxMenu(), Itemid::integer(), Text::string(), X::wxMenu() | term()) -> wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> append(This,Itemid,Text,Submenu, []) append(This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem() Option = {help, string()} | {kind, WxItemKind} WxItemKind = integer() WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX append(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: append(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() Option = {help, string()} appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to appendCheckItem(This, Itemid, Text, []) . appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {help, string()} See external documentation . appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to appendRadioItem(This, Itemid, Text, []) . appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {help, string()} See external documentation . appendSeparator(This::wxMenu()) -> wxMenuItem() (see module wxMenuItem) See external documentation . break(This::wxMenu()) -> ok See external documentation . check(This::wxMenu(), Itemid::integer(), Check::bool()) -> ok See external documentation . delete(This::wxMenu(), X::integer() | term()) -> bool() See external documentation . Alternatives: delete(This::wxMenu(), Itemid::integer()) -> bool() delete(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() Destroy(This::wxMenu(), X::integer() | term()) -> bool() See external documentation . Alternatives: 'Destroy'(This::wxMenu(), Itemid::integer()) -> bool() 'Destroy'(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() enable(This::wxMenu(), Itemid::integer(), Enable::bool()) -> ok See external documentation . findItem(This::wxMenu(), X::integer() | string()) -> wxMenuItem() (see module wxMenuItem) | integer() See external documentation . Alternatives: findItem(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() findItem(This::wxMenu(), Item::string()) -> integer() findItemByPosition(This::wxMenu(), Position::integer()) -> wxMenuItem() (see module wxMenuItem) See external documentation . getHelpString(This::wxMenu(), Itemid::integer()) -> string() See external documentation . getLabel(This::wxMenu(), Itemid::integer()) -> string() See external documentation . getMenuItemCount(This::wxMenu()) -> integer() See external documentation . getMenuItems(This::wxMenu()) -> [wxMenuItem() (see module wxMenuItem)] See external documentation . getTitle(This::wxMenu()) -> string() See external documentation . insert(This::wxMenu(), Pos::integer(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: insert(This::wxMenu(), Pos::integer(), Itemid::integer()) -> insert(This,Pos,Itemid, []) insert(This::wxMenu(), Pos::integer(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {text, string()} | {help, string()} | {kind, WxItemKind} WxItemKind = integer() See external documentation . WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem) Equivalent to insert(This, Pos, Itemid, Text, Submenu, []) . insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() Option = {help, string()} insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to insertCheckItem(This, Pos, Itemid, Text, []) . insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenu- Item) Types Option = {help, string()} See external documentation . insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to insertRadioItem(This, Pos, Itemid, Text, []) . insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenu- Item) Types Option = {help, string()} See external documentation . insertSeparator(This::wxMenu(), Pos::integer()) -> wxMenuItem() (see module wxMenuItem) See external documentation . isChecked(This::wxMenu(), Itemid::integer()) -> bool() See external documentation . isEnabled(This::wxMenu(), Itemid::integer()) -> bool() See external documentation . prepend(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: prepend(This::wxMenu(), Itemid::integer()) -> prepend(This,Itemid, []) prepend(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() prepend(This::wxMenu(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {text, string()} | {help, string()} | {kind, WxItemKind} WxItemKind = integer() See external documentation . WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem) Equivalent to prepend(This, Itemid, Text, Submenu, []) . prepend(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: prepend(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() Option = {help, string()} prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to prependCheckItem(This, Itemid, Text, []) . prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {help, string()} See external documentation . prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem) Equivalent to prependRadioItem(This, Itemid, Text, []) . prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem) Types Option = {help, string()} See external documentation . prependSeparator(This::wxMenu()) -> wxMenuItem() (see module wxMenuItem) See external documentation . remove(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem) See external documentation . Alternatives: remove(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() remove(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() setHelpString(This::wxMenu(), Itemid::integer(), HelpString::string()) -> ok See external documentation . setLabel(This::wxMenu(), Itemid::integer(), Label::string()) -> ok See external documentation . setTitle(This::wxMenu(), Title::string()) -> ok See external documentation . destroy(This::wxMenu()) -> ok Destroys this object, do not use object again AUTHORS
<> wxErlang 0.98.9 wxMenu(3erl)
All times are GMT -4. The time now is 11:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy