Hi... me again... i find out soumething today... when you say
you are including "unsuccessfully" like a green... and it shouldnt... help please...
Please show a sample from your logfile so I can tell how to match it more specifically. If successfully appears at the beginning of a line, you could grep "^successfully" for instance.
Quote:
is there something like a "distinct" command?
If I get your meaning, i.e. 'distinct' like in SQL, people often use sort -u for that, but I suspect there are dates and the like which make the entries differ from each other even when you'd like them to be combined. Things like cut and/or awk can trim it down to the parts you want, after which you can sort -u to remove the duplicates. Depending on the problem, sometimes people do it all in one awk, noting down the things to keep in an associative array until the program ends, when they're all printed without duplicates. The output from this tends to be in unpredictable and arbitrary order however.
Hi Everyone,
How to assign the specific value which return from database?
here is the return value from database -->
(return status = 0)
0 <----- this
I only need to get the "0" .. assign to another declare variable.
hope someone will help me..
Please
thank you.. (4 Replies)
Ok, I sort of need to create a command files that will be ftped to another server to run.
I have some input variable that will need to be read, and then transformed into another script file. Here are some examples.
Server 1:
outputCmd.sh
passing in ./outputCmd.sh nh8oaxt Release_4_0... (1 Reply)
Ok so all i'm trying to do here is output a file and change the color of a specific word. I can't use grep with color because I need all lines of the file not just lines that match the pattern.
I can get this substitution to work but when it displays it shows exactly what i'm putting it rather... (14 Replies)
hi friends,
The code:
i=1
while
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l $filename | awk '{print $1}'`
echo $count>>summary.csv
#Gives just the count of lines of file "filename"
i=`expr... (1 Reply)
Hi, was after some help for the following. I want to enforce local passwd authentication for service accounts and kerberos authentication for users.
Solaris 11 lets me assign different PAM modules to specific users via usermod and linux lets me define via UID, but I can't find a way to do this... (0 Replies)
I have been reading old posts and trying to come up with a solution for the below: Use a tab-delimited input file to assign
point to variables that are used to update a specific field, Rank. I really couldn't find too much in the way of assigning points
to variable, but made an attempt at an awk... (4 Replies)