Search Results

Search: Posts Made By: anishkumarv
891
Posted By anishkumarv
sed/awk is helpful for this?
Dear Team,
Thanks in advance.

The actual content is like below in a file.




and i want the output lik this.




using sed/awk is this possible??
1,122
Posted By anishkumarv
How to remove the Blocked content!!
Dear Team,

Please find the screen shot , which shows the attacked page of

of my website, people saying using the webmaster tool only we

can remove this malicious code.

but is it...
1,526
Posted By anishkumarv
Using Sed / Awk how we can do this?
In a file contains N number of line like this .

"Anish.com, Inc.",3499,"Kumar.CO",1815413,3/28/12 7:55,3/27/14 23:59,"ZW","Zimbabwe","ZA","2nd"

"Restricted and Reserved names...
1,505
Posted By anishkumarv
Is this possible using SED and AWK?
Dear Geeks,

I want to manipulate a file with certain modifications for that using sed or AWK how to do this process for one file i have this type of data.

Input File:

"Restricted and...
1,068
Posted By anishkumarv
Hi already i configured, ntp , but both the...
Hi already i configured, ntp , but both the servers are different place.

one is IST time zone and other is CDT time zone, i want to both the system has same time zone?
1,068
Posted By anishkumarv
how to get the same time in two systems,
Hi all,

how to get the same time in two systems,

for example:

in one system i have the correct time, and second system i have wrong time.

now i want the first sytem to second sytem, i...
3,423
Posted By anishkumarv
Auto answer option in scripting.
Hi masters,

How to get auto answer option in scripting. for example in my script i uses the gpg command , in that beginning it will ask

passpharse : ( in that i need to type my...
4,988
Posted By anishkumarv
100% iam sure, the socket is not already in use...
100% iam sure, the socket is not already in use and i checked too..
4,988
Posted By anishkumarv
Perl "Invalid argument error"
Hi ,

we have a issue in server, we are running a perl script to connect our clients, but we are not able to connect, every time we are getting the

"Invalid argument error"

Even i...
2,959
Posted By anishkumarv
Email alerts whenever someone logs into server via SSH any user?
Hi all,

Thanks in Advance!!

I dont know how to start to write script for this process, my requirement is if any user logs into server automatically Admin get mail alert. how is this...
2,716
Posted By anishkumarv
:-( :-( :-( hmm Iam asking how to get the...
:-( :-( :-( hmm Iam asking how to get the commands , History is the only way?? i know Crontab and all.
2,716
Posted By anishkumarv
you mean Distro? Centos 6 normally we...
you mean Distro?

Centos 6

normally we can view commands using history command, but how can we automate this process as daily, is it possible to get the command details in daily basis?
2,716
Posted By anishkumarv
How to get users history as mail..
Hi all,

Thanks in Advance,


i want to view my users commands, what commands they are using in their terminal like that, how to automate this history process daily.
1,663
Posted By anishkumarv
#!/sbin/sh echo "Welcome to my First Script" ...
#!/sbin/sh
echo "Welcome to my First Script"
echo "Enter a word"
read PASS
if [ "$PASS" = "intel" ]; then
echo "You are correct"
fi
if [ "$PASS" = "apple" ]; then
echo "Thats...
2,466
Posted By anishkumarv
exec 2>errlogHow to include in this script, ...
exec 2>errlogHow to include in this script,

because this also not working || ( echo "query failed" >> $LOG ) and i have another i doubt ,

suppose if one query not execute properly or throw...
2,466
Posted By anishkumarv
#!/bin/bash current_date=`date...
#!/bin/bash
current_date=`date +%d-%m-%Y_%H.%M.%S`
Today=`date +%d%m%Y`
Lfriday=`date +%d%m%Y -d last-friday`
RootPath=/var/domaincount/com
ch=domaincount...
2,466
Posted By anishkumarv
Sorry Man..I missed to post here..but using...
Sorry Man..I missed to post here..but using EOFMYSQL statement only i run myscript -- i got error only

ya 100% working
2,466
Posted By anishkumarv
LOG=/var/tmp/log/com/comcount$current_date.log ...
LOG=/var/tmp/log/com/comcount$current_date.log


mysql zonefile<<EOFMYSQL || echo "query failed" >> $LOG
CREATE TABLE com$Today(domain VARCHA(255),col2 VARCHAR(255),col3 VARCHAR(255),col4...
2,466
Posted By anishkumarv
yes mail alert
yes mail alert
2,466
Posted By anishkumarv
How to Create LOG and Validate for this Script
Hi all,

This is my Script


#!/bin/bash
current_date=`date +%d-%m-%Y_%H.%M.%S`
Date=`date +%d%m%Y`
Lfriday=`date +%d%m%Y -d last-friday`
RootPath=/var/domaincount/com

mysql...
6,135
Posted By anishkumarv
Thanks all , for your prompt replies , ...
Thanks all , for your prompt replies ,




ya its working fine, dude but my problem was only the file size,

The file contain these kind of data's from that it using awk its sorting only uniqe...
9,515
Posted By anishkumarv
hi, cate file name | sed 's/<[^>]*>//g' ...
hi,

cate file name | sed 's/<[^>]*>//g'


I hope this works for your requirement
6,135
Posted By anishkumarv
Thanks a lot for your effort brother gunzip...
Thanks a lot for your effort brother

gunzip < biz.zone.gz | awk -v TOTALFILE="$RootPath/$today.count" -v BIZFILE="$RootPath/$today.biz"
# print ALL lines into BIZFILE
{ print $0 > BIZFILE }...
6,135
Posted By anishkumarv
Hi all, Sorry for the late Reply this is my...
Hi all,

Sorry for the late Reply this is my Script Using this script we are using for domain count.


#!/bin/bash

current_date=`date +%d-%m-%Y_%H.%M.%S`
today=`date +%d%m%Y`...
6,135
Posted By anishkumarv
awk eating too much memory?
Hi all,

using AWK iam sorting auniq data from a file the file size is 8GB, while running that script , the over all cpu usage will be nearly 8
how to avoid this ?? any other alternate is...
Showing results 1 to 25 of 96

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