Search Results

Search: Posts Made By: vikbenq
3,730
Posted By vikbenq
@ methyl ----- Man we got HOT..u r a genius.. ...
@ methyl ----- Man we got HOT..u r a genius..

It worked just fine...thanx a lot to all for ur help. have a good one.

I used this and it worked:

#!/bin/bash
DDMMM="`date '+%b %e'`" #...
3,730
Posted By vikbenq
no this is not what i meant... I am trying...
no this is not what i meant...

I am trying to pull the logs say vikbenq which would make more sense instead of using the word log.

#!/bin/bash
DATE=$(date +"%m-%d-%Y")

grep "vikbenq"...
3,730
Posted By vikbenq
Does not seems to be working :( If I use the...
Does not seems to be working :(

If I use the below script it works but if I use $DATE instead of Jan 6 it would not work.

#!/bin/bash
DATE=$(date +"%m-%d-%Y")

grep logs /var/log/messages |...
3,730
Posted By vikbenq
help writing a script using date
hello there ppl. happy new year to all

i am not an avid unix user and trying to resolve an issue which seems to be too tough for me..but would be way too easy for ya'll.

I am trying to pull the...
11,319
Posted By vikbenq
hello guys...at first I'm sorry to post this...
hello guys...at first I'm sorry to post this question here as I cannot find a way to post questions on this website.

Question:

I want to pull the logs for Today's date or say last 24 hours.
...
3,224
Posted By vikbenq
Agama, Thanx a lot..you are the man :) yes...
Agama, Thanx a lot..you are the man :)

yes this code is working now... u r like totally cool ..thanx for ur help.
3,224
Posted By vikbenq
thnx for the reponse.. below is the command im...
thnx for the reponse.. below is the command im tryin to use.

sed -r 'messages.1
s/<//g;
s/>//g;
s/[ \t]([a-zA-Z])/ <\1/g;
s/^[a-zA-Z]/<&/;
s/<[^ \t]*/&> /g;
s/^[^<]*</</;
s/ //g;...
3,224
Posted By vikbenq
thanx for the reply... but i cannot get it to...
thanx for the reply... but i cannot get it to work and i am using Ubuntu.
3,224
Posted By vikbenq
Extracting only words from a log file
hello:

i have a file and i am trying to extract only unique words from that file.

i used the command: cat messages.1 | tr " " "\n" | sort | uniq -c

but using this command outputs everything...
Showing results 1 to 9 of 9

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