Sponsored Content
Full Discussion: Grep Commands
Top Forums Shell Programming and Scripting Grep Commands Post 302848119 by RudiC on Wednesday 28th of August 2013 01:36:27 PM
Old 08-28-2013
Try this ORed regex:
Code:
egrep '[0-9][0-9]/[0-9][0-9]/(2010|2011)' file
20136789|Active|01/01/2010 11:42:28 AM
20126789|Active|12/31/2011 05:40:28 PM
egrep -v '[0-9][0-9]/[0-9][0-9]/(2010|2011)' file
20126789|Active|01/01/2012 08:42:28 AM
20126789|Active|12/31/2013 08:40:28 AM

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find and grep commands

I'm having trouble with the following commands i. count the number of lines which end in a 4 letter word grep '{4\}$' bfile <<seems to print out everything abc abc abcd joe joe john bob bill gregory greg greg gregory the grep command prints out the lines with 4 letter words and the... (3 Replies)
Discussion started by: StrengthThaDon
3 Replies

2. Shell Programming and Scripting

Grep commands in loop

Hi All, Reference to my previous post I need to compare all the lines in the file1 with file2 for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date. need output in file3 10/04/2008 09/04/2008 09/04/2008 08/04/2008 can anyone suggest me Thanks... (0 Replies)
Discussion started by: karthikn7974
0 Replies

3. UNIX for Dummies Questions & Answers

grep commands

I need your's help to display user with greep command form /etc/passwd 1. to display all login to begin and finishing with letter a or b etc.users admina bserb broota 2. beginning and finishing with the same sign etc. users aghata:.... roootr:....3. to contain what the least three... (1 Reply)
Discussion started by: ViruS89
1 Replies

4. Shell Programming and Scripting

Difference between 2 grep - commands

Hi, I need to know the difference between this commands: grep * *search* grep "*" *search* As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content. But was does the first command?? Best... (1 Reply)
Discussion started by: xus
1 Replies

5. Shell Programming and Scripting

echo and grep commands

Hey im new in this...anything will be helpful... The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user. Example: file1.txt ======= a aa aaa... (2 Replies)
Discussion started by: Sundown
2 Replies

6. Shell Programming and Scripting

Grep commands & format

I have these grep commands and need to put them next each other (in horizontal layout). cat /tmp/dsmc.out |grep Done cat /tmp/dsmc.out |grep "Elapsed processing time:" cat /tmp/dsmc.out |grep "Client date/time:" cat /tmp/dsmc.out |grep "Total number of bytes transferred:" so that it... (6 Replies)
Discussion started by: Daniel Gate
6 Replies

7. Shell Programming and Scripting

Join two commands sed and grep

Hi all, I have two separate commands which I would like to join. Basically, I want to match a line and insert a character at the end of the previous line to the matched line Here is what I have gotgrep -B1 '^>' sed 's/$/*/' Any help is much appreciated thanks (5 Replies)
Discussion started by: kaav06
5 Replies

8. Shell Programming and Scripting

Help with ls, grep commands

Oracle Linux 6.4/Bash shell I have six files as shown below. Using ls/grep (or anything) , I need to list all files which start with the pattern stomper but not the ones which ends with 1. $ touch stompera $ touch stomperb $ touch stomperc $ touch stompera1 $ touch stomperb1 $ touch... (7 Replies)
Discussion started by: kraljic
7 Replies

9. Homework & Coursework Questions

Grep commands: need some practice help please

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Use the less command to view the words file. To see the results of a grep that returns many rows, pipe the... (3 Replies)
Discussion started by: asaint
3 Replies

10. UNIX for Beginners Questions & Answers

Task grep and awk commands

Hi everyone, I have a question, please help me. awk -F: '$3<75' /etc/passwd grep -ir nashorn ./ | grep "^*\.java" what do these commands do ? Thanks (2 Replies)
Discussion started by: burak171
2 Replies
ACTCTRL(8)						    Linux System Administration 						ACTCTRL(8)

NAME
actctrl - configure IBM Active 2000 ISDN adaptor SYNOPSIS
actctrl [-d Driver-Id] action options ... DESCRIPTION
actctrl is used to setup the IBM Active 2000 ISDN device driver and for downloading the firmware into the ISDN card. The use of actctrl makes sense, if you are using an IBM Active 2000 card only. OPTIONS
-d Driver-Id selects the S0 interface named by Driver-Id. Driver-Ids are defined during driver initialisation. See act2000(4) for a description of the syntax to be used for modularized and monolithic driver versions. This option must be used to identify the S0 interface if more than one S0 interface is existent. If a single IBM Active 2000 is used, it may be omitted. If using more than one card, sup- port for the other cards is enabled with the add action of actctrl. Ids may not start with digits or small x, because these values are misinterpreted as numeric parameters by insmod. For loading the module, always the newest modutils package should be used to avoid problems during load. The following actions may be given to actctrl. add [bus[ port[ irq[ id]]]] enables support for an additional card in the driver. bus is is an integer describing the bus-type of the card. Currently, the only value which is allowed here is 1 meaning ISA-bus. In the future, the values 2 (for MCA) and 3 (for PCMCIA) will be available. port is either an integer describing the base port, or the string auto which enables autoprobing. irq is either an integer describing the IRQ to use, the string auto, which enables grabbing of the next free IRQ or the string none which enables polled mode for this card. id is an arbitrary string for referencing the card at a later time. dproto protocol [msn0,msn1, ... msn9] selects the D-channel protocol and defines MSN's if using Euro protocol. protocol may be either the string 1tr6 or the string euro. If selecting Euro protocol, a comma-separated list of up to 10 MSN's may be appended. For defining an empty entry in this list, use a dash. load firmware downloads the firmware into the card and starts operation. Usually the images are located in '/lib/firmware/isdn'. The firmware is named bip1120.bpl. dump is available if the program is configured using the --enable-dump option only. The contents of internal driver variables is dumped on stdout. FILES
'/lib/firmware/isdn'/bip1120.bpl This is the image of the firmware designed for both the German 1TR6 protocol and Euro ISDN. BUGS
No bugs so far. AUTHOR
(C) 1997 by Fritz Elfert <fritz@isdn4linux.de> SEE ALSO
isdnctrl(8), act2000(4), isdnctrl(4), ttyI(4). isdn4k-utils-3.9 1999/09/06 ACTCTRL(8)
All times are GMT -4. The time now is 01:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy