Search Results

Search: Posts Made By: yongitz
2,375
Posted By yongitz
hi there! you could use find command to find...
hi there! you could use find command to find those old mails then remove them..
1,566
Posted By yongitz
If you can use cp command first with the...
If you can use cp command first with the "--parents" parameter then you can achieve with ease what you what, then try the find command again then delete them.

find /home/darshak -name "*" -mtime...
2,492
Posted By yongitz
If file is consistent, this might work sed...
If file is consistent, this might work

sed 's/system/HI/2' file
3,595
Posted By yongitz
check out diff, comm and even grep utilities..
check out diff, comm and even grep utilities..
1,758
Posted By yongitz
Did you try changing your prog action into this? ...
Did you try changing your prog action into this?

$1 ~ var {print $0}
1,758
Posted By yongitz
Your pattern should be ^012$ to get what you...
Your pattern should be ^012$ to get what you want, and your program action should be $1 ~ var {print $0}
8,125
Posted By yongitz
What backup scheme are you using? Is it within...
What backup scheme are you using? Is it within the LAN or an offsite backup? If I were you, I would discard my current backup process and go with rysnc. It will automate the process of deleting files...
8,125
Posted By yongitz
Hi! prior to any deletion, you can try getting...
Hi! prior to any deletion, you can try getting all the list of files and redirect it to a text file, then after the deletion or at any given time you might want to get all the list of files again and...
2,275
Posted By yongitz
Can you provide your expected output from your...
Can you provide your expected output from your given example?
6,792
Posted By yongitz
not all the time! if the 1st column has the 789...
not all the time! if the 1st column has the 789 then your logic will go wrong.. :)

::EDIT:: Haven't read your disclaimer at first.. :)
6,792
Posted By yongitz
shorter version of the above suggestion.. ...
shorter version of the above suggestion..

awk '/789/ {print $4}' file|wc -l
22,242
Posted By yongitz
or simply sed -n '1,10p' INPUT > OUTPUT &&...
or simply

sed -n '1,10p' INPUT > OUTPUT && sed -n '30,40p' INPUT >> OUTPUT
6,123
Posted By yongitz
What I have in mind is a nasty solution.. ...
What I have in mind is a nasty solution..

1. extract the 1st columns from both files using cut or awk the redirect the output to a temp file.
2. use the suggested grep command above.

...
6,123
Posted By yongitz
You might want to post here your sample input...
You might want to post here your sample input files and your expected output file.
6,123
Posted By yongitz
A simple grep -vf fileA fileB might do...
A simple

grep -vf fileA fileB

might do the job. You don't need the while statement I guess.
3,930
Posted By yongitz
man sed
man sed
2,155
Posted By yongitz
You might want to try lwp-request. man lwp-request
You might want to try lwp-request. man lwp-request
2,511
Posted By yongitz
try this instead grep -o apple tomo |wc -l
try this instead

grep -o apple tomo |wc -l
2,511
Posted By yongitz
Hi! If grep can be use then try this: grep...
Hi! If grep can be use then try this:

grep apple tomo|wc -w


EDIT: my bad! ignore this suggestion as I tested this with sample file and gives erroneous output.
2,500
Posted By yongitz
grep -f set1 set2
grep -f set1 set2
8,946
Posted By yongitz
I didnt mean the instance of your db in the box....
I didnt mean the instance of your db in the box. What i meant is the occurences of ORA- in your logfile. In your modified script, as I said it will count all the occurences of ORA- including your...
8,946
Posted By yongitz
this will give you erroneous output. you will be...
this will give you erroneous output. you will be counting all instances of ORA- including ORA-00600. try appending a line with ORA-00600 in your logfile and run this command.
8,946
Posted By yongitz
The above suggested command will search for the...
The above suggested command will search for the string ORA- excluding instances of "ORA-00600" and will count the total matched lines. Or you could ommit the "wc -l" command and used the "-c" switch...
8,946
Posted By yongitz
A simple solution would be to pipe your first...
A simple solution would be to pipe your first grep results to another grep command like this..

grep ORA- alert_pindb.log | grep -v "ORA-00600" |wc -l


Hope that helps.
2,083
Posted By yongitz
that's because of bad command substitution plus...
that's because of bad command substitution plus your expression shouldn't have any spaces on both sides of the operator...

iCOUNT = WC -l COUNTFILE.log

should be

iCOUNT=`WC -l...
Showing results 1 to 25 of 69

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