make the first your last


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers make the first your last
# 1  
Old 02-23-2005
make the first your last

Hi I am using grep to interrogate the last command and I want to find users for both tue and wed,

The problem: for some reason the grep command will not allow me to do an or

i.e. last | grep "Mon || Tue" | more will not return any info
last | grep "Mon" | more returns all users for Mon

any ideas i've tried most of the grep variations (-e, "Mon,Tue", grep "Mon" "Tue")

Thankz
# 2  
Old 02-23-2005
Bug Try this...

last | grep -E "Tue | Mon" | more

That seemed to work for me. I should mention that i'm using Fedora Core 3, so I don't know if -E is supported on your platform's grep utility. -E is for "extended REGEX".
# 3  
Old 02-23-2005
Quote:
Originally Posted by deckard
I should mention that i'm using Fedora Core 3, so I don't know if -E is supported on your platform's grep utility.
If it isn't, try the "egrep" command.

Cheers
ZB
# 4  
Old 02-24-2005
Cheers *nixers, problem almost solved
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Make check install and make all install

hi dear i want to know what is different between make check install and make all install? thanks in advane fereshte (3 Replies)
Discussion started by: komijani
3 Replies

2. Programming

Issue with make, no rule to make target etc.

I have been trying to split up my src directory to clear out files that are not re-compiled very often. Now I have the following setup in my trunk, trunk/bld trunk/src/ trunk/src/src_server trunk/makefile.linux In the make file, I have compile rules SOURCELOC = src # compile src c++... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

3. UNIX for Dummies Questions & Answers

Difference between configure/make/make install.

Hi, While installation of apache on linux, we perform the below tasks. 1) Untar 2) configure 3) make 4) make install. I wanted to understand the difference and working of configure/make/make install. Can any one help me understanding this? Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies

4. UNIX for Dummies Questions & Answers

How to make a make from other folder

Hi, Sorry for my English. I want Execute a make from other folder but no it's a normal make. The comand is: make telosb install,3 And for example if i have to execute this comand in /tmp and i am in /$HOME how he would be now the comand? thx (7 Replies)
Discussion started by: Grobix
7 Replies

5. Programming

makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file So, if I run make with specified file:make -f target.mak is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies

6. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

7. Linux

Error in issuing a make and make install

Hi, Recently I install a package and try to do a make and make install. However, in the make it gives me below error:- make:Nothing to be done for 'install-exec-am' make:Nothing to be done for 'install-data-am' Can anyone please explain to me what does this mean? I have been trying... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

8. HP-UX

make

How do I configure make file to work in hp-ux ??? Everything I "make" exits with errors!!! (1 Reply)
Discussion started by: mwagz
1 Replies

9. UNIX for Dummies Questions & Answers

make

Hi, i need to run make on a solaris 10 sparc e250, but i get "make: not found" the make app exists under /usr/css/bin so what do i need to do? Thanks Alan (3 Replies)
Discussion started by: e250user
3 Replies

10. UNIX for Dummies Questions & Answers

make and make install commands

Hi there, I am installing a package at the moment on to my Solaris version 8 and I have run into a problem with the 'make' command. I have installed the package using the 'pkgadd' command and I am now at the stage where I have to use the 'make' command followed by the 'make install'... (4 Replies)
Discussion started by: gerwhelan
4 Replies
Login or Register to Ask a Question