Search Results

Search: Posts Made By: reid
950
Posted By MadeInGermany
or while [ $size -gt 82 ] && [ $count -lt 3 ]<...
or
while [ $size -gt 82 ] && [ $count -lt 3 ]< and > are redirection symbols, even within [ ]. (And within [[ ]] they have a different meaning.)
BTW the > 82 has created a file named 82 - have a...
4,040
Posted By Corona688
$ cat pdp-active.awk BEGIN { FS="[...
$ cat pdp-active.awk

BEGIN {
FS="[ \t\r:]+"
}

{ sub("^" FS, ""); }

/^(ccas-statistics|uplink|downlink|apn-radius-acct-server-statistics):/ {
while( !($0 ~ "^" FS "$") ) {...
3,162
Posted By Akshay Hegde
Some links might help you Welcome to The...
Some links might help you

Welcome to The UNIX Grymoire! (http://www.grymoire.com/Unix/)

Classic Unix Utilities (http://www.softpanorama.org/Tools/index.shtml)

Date functions by Chris F.A....
5,071
Posted By agama
That's the way I'd do it. Accept a "tty too"...
That's the way I'd do it. Accept a "tty too" flag and echo before the remainder of your processing:


if [[ $1 == "-t" ]]
then
shift
echo "$*"
fi

# rest of your log code here

...
40,173
Posted By Perderabo
As reborg mentioned, the second is faster because...
As reborg mentioned, the second is faster because xargs will collect file names and execute a command with as long as a length as possible. Often this will be just a single command. This was...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy