Sponsored Content
Full Discussion: Grep as a verb
The Lounge What is on Your Mind? Grep as a verb Post 302784281 by hanson44 on Thursday 21st of March 2013 11:14:46 PM
Old 03-22-2013
Is it eff sick?
Or eff ess check?
Or something else?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

2. UNIX for Dummies Questions & Answers

| help | unix | grep - Can I use grep to return a string with exactly n matches?

Hello, I looking to use grep to return a string with exactly n matches. I'm building off this: ls -aLl /bin | grep '^.\{9\}x' | tr -s ' ' -rwxr-xr-x 1 root root 632816 Nov 25 2008 vi -rwxr-xr-x 1 root root 632816 Nov 25 2008 view -rwxr-xr-x 1 root root 16008 May 25 2008... (7 Replies)
Discussion started by: MykC
7 Replies

3. UNIX for Dummies Questions & Answers

| help | unix | grep (GNU grep) 2.5.1 | advanced regex syntax

Hello, I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide. ls -aLl /bin | grep "\(x\)" Which works, just highlights 'x' where ever, when ever. I'm trying to to get (?:) to work but... (4 Replies)
Discussion started by: MykC
4 Replies

4. Shell Programming and Scripting

grep for certain files using a file as input to grep and then move

Hi All, I need to grep few files which has words like the below in the file name , which i want to put it in a file and and grep for the files which contain these names and move it to a new directory , full file name -C20091210.1000-20091210.1100_SMGBSC3:1000... (2 Replies)
Discussion started by: anita07
2 Replies

5. UNIX for Dummies Questions & Answers

Advanced grep'in... grep for data next to static element.

I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups. My goal is to grep the directory for the word "full" and then... (2 Replies)
Discussion started by: SysAdm2
2 Replies

6. Shell Programming and Scripting

AWK/GREP: grep only lines starting with integer

I have an input file 12.4 1.72849432773174e+01 -7.74784188610632e+01 12.5 9.59432114416327e-01 -7.87018212757537e+01 15.6 5.20139995965960e-01 -5.61612429666624e+01 29.3 3.76696387248366e+00 -7.42896194101892e+01 32.1 1.86899877018077e+01 -7.56508762501408e+01 35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies

7. UNIX for Dummies Questions & Answers

Bash - CLI - grep - Passing result to grep through pipe

Hello. I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv" lsmod | (e)grep '^nv???????????? I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long ... (1 Reply)
Discussion started by: jcdole
1 Replies

8. Shell Programming and Scripting

Diff between grep .* file name and grep '.*' filename

Hi, Can anyone let me know what is difference between grep .* foo.c grep '.*' foo.c I am not able to understand what is exact difference. Thanks in advance (2 Replies)
Discussion started by: SasDutta
2 Replies

9. UNIX for Dummies Questions & Answers

Piping grep into awk, read the next line using grep

Hi, I have a number of files containing the information below. """"" Fundallinfo 6.3950 14.9715 14.0482 """"" I would like to grep for Fundallinfo and use it to read the next line? I ideally would like to read the three numbers that follow in the next line and... (2 Replies)
Discussion started by: Paul Moghadam
2 Replies

10. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
uurate(1)						      General Commands Manual							 uurate(1)

NAME
uurate - Report Taylor UUCP statistics SYNOPSIS
uurate [ -acdefhipqtvx ] [ -s host ] [ -I config ][ logfile... ] or simply, uurate for a traffic summary report. DESCRIPTION
The uurate command provides tabular summary reports on the operation of the Taylor UUCP system. Data is taken from the currently active log files, standard input, or from a list of log files given on the command line. Output is in the form of tabular reports summarizing call, file transfer, and command execution (uuxqt) activity. The log and stats files given to uurate must be in the ``Taylor'' or ``V2'' format. Also, note that call and file transfer activities are logged in separate files, nominally called Log and Stats, respectively. For reports to be meaningful, the Log and Stats files should be given to uurate together, and cover the same time period. If neither the -i or -I option nor any logfile options are given, uurate defaults to taking its input from the current Taylor Log and Stats files. The names are either as defined at compilation time, in case there is no config file, or taken from the arguments of the keywords logfile and statfile when encountered in the config file. This is the normal mode of operation. The reporting options described below can be used to select the set of reports desired. If no options are given, a summary report is dis- played. If there is no relevant data for a particular report or host, that report or host will be suppressed. OPTIONS
The following options may be given to uurate: -a All reports. Identical to -cfexp. -c Report on call statistics. Requires data from a Log file. -d will print the default config file to be used. -e Report on efficiency (total connect time versus time spent transferring files). Requires data from both a Log and a Stats file, and they must span the same time period. -f Report on file transfer statistics. Requires data from a Stats file. -h will print a short help information. -i tells uurate to read any logfile information from standard input. -p report on protocol errors and packets sent/received -q do not print the Environment information, -t All reports. Identical to -cfexp. plus the Compact summary. -v will print the version id string -x Report on remote execution requests (e.g., rmail). Requires data from a Log file. -s host Restrict report output to host. -I config file an alternate config file may be passed by this option. DESCRIPTION OF REPORTS
There are four reports available: the call, file transfer, efficiency, and remote execution reports. Each may be selected by a command line option. All reports may be selected via the options -a or -t. If no report selection options are given, uurate displays a compact traffic summary report (see below). Summary report If no report options are given, uurate displays a traffic summary report. This is particularly useful in daily cron jobs which report on errors and the like. Traffic statistics for each active system is reported on a single line. If more than one system was active, a 'totals' line is included at the end of the report. Protocol packet report The protocol report gives statistics on min/max packet and window sizes used during transmission. Further on data is collected for packets transferred. The data is collected for each host/protocol type. The fields are described below: site UUCP node name of neighbor host system, typ Type of protocol used Min minimum packet/window size Max maximum packet/window size sent packets sent resent packets resent received packets received Protocol error report The protocol report gives statistics on packet errors during transmission. The data is collected for each host/protocol type. The fields are described below: site UUCP node name of neighbor host system, typ Type of protocol used header number of errors in header checksum number of checksum errors order number of order errors resent number packets resent rem-reject packets that the remote site rejected Call report The call report gives statistics on inbound and outbound calls for each active host system. The fields are described below: site UUCP node name of neighbor host system, succ. Successful calls attempted to/by that system, failed Failed calls to/by that system, total Total calls to/by that system, time Collected connect time (hh:mm:ss) for all calls, File transfer reports The file transfer reports give statistics on inbound and outbound file transfers (regardless of which end initiated the transfer) for each active host system. There are two reports, one for files sent to the remote system and one for files received from the remote system. The fields in each report are described below: site UUCP node name of neighbor host system files Number of files transferred Bytes/1000 Total size of files transferred given in thousands xfr time Total time (hh:mm:ss) spent on transfer the files, B/sec Average transfer rate (bytes/sec). Efficiency report The efficiency report describes the utilization of the links to each active remote system, giving the ratio of total connect time to the time spent actually transferring files. The fields are described below: site UUCP node name of neighbor host system connected Total connect time for that system (turn-around) xfr time Total file transfer time for that system overhead Connect time not used to transfer files, eff. % Ratio of connect time to transfer time (xfer*100/conn) Command executions report The remote execution report describes remotely requested command executions from each active host system, like rmail and rnews. Up to eight command names are displayed. If there are more, the rest will be put together in an `Misc.' column. The fields are described below: site UUCP node name of neighbor host system, (command) Number of requests of this command, Misc. Number of other requests, if more than eight. FILES The file names below may be changed at compilation time or by the configuration file, so these are only approximations. /usr/spool/uucp/Log V2/Taylor format call/execution log, /usr/spool/uucp/Stats V2/Taylor format file transfer log. SEE ALSO uucico(8) BUGS Does not understand other than V2/TAYLOR logging formats. Anyone care to volunteer to add the not mentioned? Scanning the arguments of logfile and statfile keywords in config should handle lines continued with the backslash as well. The failfm field in the call statistics table is always zero, unless something really serious happens, e.g. uucico got SIGQUIT or the whole system crashed. AUTHOR Robert B. Denny (denny@alisa.com). Loosely based on the DECUS UUCP program uurate by Mark Pizzolato. Modified by Stephan Niemz (stephan@sunlab.ka.sub.org). Modified by Klaus Dahlenburg (kdburg@incoahe.hanse.de). uurate(1)
All times are GMT -4. The time now is 07:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy