Sponsored Content
Full Discussion: grep command query
Top Forums Shell Programming and Scripting grep command query Post 302389877 by jim mcnamara on Tuesday 26th of January 2010 09:43:54 AM
Old 01-26-2010
Code:
grep -c '^Mon Jan 25'  myfile

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

query on grep command

Hai Friends Can anyone provide me a grep command to print x to y lines in a file. For example: grep command to display 15th line to 21st Thanks in advance Collins (4 Replies)
Discussion started by: collins
4 Replies

2. Shell Programming and Scripting

Query regarding grep

In what cases the following command ignores lines in input file: $ grep -c "^" inputfile (1 Reply)
Discussion started by: amicon007
1 Replies

3. Shell Programming and Scripting

Grep query

As part of my never-ending nagios automation project I am need to implement the following run line into a loop; -bash-3.00$ grep ${feed} /usr/local/feed/service/clients/*/bin/* | awk -F/ '{print "To restart: /"$2"/"$3"/"$4"/"$5"/"$6"/"$7"/"$8"/"$9}' Which prints to screen; To restart:... (3 Replies)
Discussion started by: JayC89
3 Replies

4. UNIX Desktop Questions & Answers

ls grep query

Hi please can someone help me with a query? The following command is executed: $ ls abc def hij You execute the command: ls | grep f*. Which files will be displayed and why? thanks (13 Replies)
Discussion started by: tmn0004676
13 Replies

5. Shell Programming and Scripting

grep/sed query

Hi all, I have one query,in my script,i give one input like sectionname that enclose with and that will search in specific file in specific directory.If found ,then it's search next section and begin of section ,sometext means different sectionname. p1 p2 p3 p4 p5 p6 I want to... (2 Replies)
Discussion started by: suryanarayan
2 Replies

6. UNIX for Dummies Questions & Answers

query related to grep

Hi All, The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt But I am not sure, whether, all result stored in .txt file in case of multi-line result. Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies

7. Shell Programming and Scripting

grep command query

list ALL file entries with a last modification date of September 20. using grep (1 Reply)
Discussion started by: polineni
1 Replies

8. Shell Programming and Scripting

Grep query

Hi, What does this line do grep -E 'ORA-' $LIN_TOP/log/status.log > /dev/null 2>&1 Does this check in status.log and in std out, stderr also.? Thanks (3 Replies)
Discussion started by: nag_sathi
3 Replies

9. UNIX for Dummies Questions & Answers

Query about 'rm' command

Hi, Can a file & folder be removed using single rm command. eg., rm <arguments> <file> <folder> Please let me know if this is possible. Thank you. (1 Reply)
Discussion started by: Vinay_Kumar
1 Replies

10. UNIX for Dummies Questions & Answers

File grep quick query

Hi Experts, I need some suggestion on file grep. I am trying to find multiple pattern with the file grep as below grep "2013" trace.log | grep -f pattern.cfg -i > $LOG if ; then mail -s "Exception" "sample@abc.com" < $LOG fi Is it possible to obtain what pattern I got in the... (5 Replies)
Discussion started by: senthil.ak
5 Replies
appender_type_stream.h(3)					       log4c						 appender_type_stream.h(3)

NAME
appender_type_stream.h - Log4c stream appender interface. SYNOPSIS
#include <log4c/defs.h> #include <log4c/appender.h> Variables __LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_stream Detailed Description Log4c stream appender interface. The stream appender uses a file handle FILE* for logging. The appender's name is used as the file name which will be opened at first log. An appender can also be associated to an opened file handle using the log4c_appender_set_udata() method to update the appender user data field. In this last case, the appender name has no meaning. 2 default stream appenders are defined: 'stdout' and 'stderr'. The following examples shows how to define and use stream appenders. o the simple way log4c_appender_t* myappender; myappender = log4c_appender_get('myfile.log'); log4c_appender_set_type(myappender, &log4c_appender_type_stream); o the sophisticated way log4c_appender_t* myappender; myappender = log4c_appender_get('myappender'); log4c_appender_set_type(myappender, &log4c_appender_type_stream); log4c_appender_set_udata(myappender, fopen('myfile.log', 'w')); Variable Documentation __LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_stream Stream appender type definition. This should be used as a parameter to the log4c_appender_set_type() routine to set the type of the appender. Author Generated automatically by Doxygen for log4c from the source code. Version 1.2.1 Mon May 2 2011 appender_type_stream.h(3)
All times are GMT -4. The time now is 06:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy