Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: rdcwayx
1,875
Posted By rdcwayx
It is not solved by above code. if you have...
It is not solved by above code. if you have several lines, you calculate wrong.

try this:
grep -o "\." infile|wc -l
awk '{sum+=gsub(/\./,"")}END{print sum}' infile
3,699
Posted By rdcwayx
ls ba[aeiou]*
ls ba[aeiou]*
2,739
Posted By rdcwayx
so why not go through the manual by yourself...
so why not go through the manual by yourself first?

http://linux.die.net/man/8/fence_ilo
846
Posted By rdcwayx
what to check? content, file size, or others? ...
what to check? content, file size, or others?

For example, check if the file is same or not on 111 and 222.

have ssh set between 111 and 222:

diff <(ssh user@host222 md5sum /path/file)...
1,777
Posted By rdcwayx
how about this, it is not exact for your request,...
how about this, it is not exact for your request, but get mostly.

perl -l40pe 's/^-+/\n/' svn.log|awk -F \| '{$3=""}1'

r7351 user01 2 lines Changed paths: D /trunk/demo/proj1/.project ...
3,545
Posted By rdcwayx
https://www.unix.com/unix-advanced-expert-users/145...
https://www.unix.com/unix-advanced-expert-users/145472-use-cron-run-job-every-other-week.html

# "first" friday -- and note # generally does work in crontab files as a comment
0 8 ** 6 [ $(( $((...
824
Posted By rdcwayx
awk 'NR>2{$0="NEW" RS $0}1' saved_doc
awk 'NR>2{$0="NEW" RS $0}1' saved_doc
6,148
Posted By rdcwayx
#!/usr/bin/bash FILE=/home/home1/name.csv if...
#!/usr/bin/bash
FILE=/home/home1/name.csv
if [ ! -f $FILE ] ; then
echo " file $FILE is not exist"
exit
fi

awk -F , 'int($4)!="0"||int($5)!="0" {printf "ref_num:%s\nAccount...
1,020
Posted By rdcwayx
No need shell script. There are several...
No need shell script.

There are several add-on in Firefox, seach by keyword "record", you will get several.
1,290
Posted By rdcwayx
Get non-zero number while : do echo...
Get non-zero number

while :
do
echo "Enter another number."
read num2
if [[ $num2 -eq 0 ]]; then
echo "divide by zero, try again"
else
break
fi
done
6,148
Posted By rdcwayx
so what did you try? Here are hints. -f...
so what did you try? Here are hints.

-f FILENAME can be used to identify if the file is exist or not.

awk can be used to get the report.
2,664
Posted By rdcwayx
with this sample: Table 1:- DateID ...
with this sample:

Table 1:-
DateID
KeyColumn
Field 1
Field 2

Table 2:-
KeyColumn
Field 2
Field 3


from DateID, I can find out the keyColumn, then is keyColumn unique that I can use...
1,945
Posted By rdcwayx
Did you try my code? It has fixed your issue.
Did you try my code? It has fixed your issue.
981
Posted By rdcwayx
Need GNU date command: #! /bin/bash ...
Need GNU date command:

#! /bin/bash
d=$(date -d "-30 days" +%Y%m%d%H%M%S)

awk -v d=$d '{split($3,a,"-");split($4,b,":")
s=sprintf("%04d%02d%02d%02d%02d%02d",a[1],a[2],a[3],b[1],b[2],b[3])...
1,586
Posted By rdcwayx
I get the answer same as in your first post. ...
I get the answer same as in your first post.
awk '$5!="0"||$7!="0"' number

DirB port 71 er_enc_out 56 er_bad_os 0
DirB port 75 er_enc_out 0 ...
1,945
Posted By rdcwayx
Ok, for example, you have a gz log file named...
Ok, for example, you have a gz log file named access.2013-08-13.log.gz

You save below line in a script file name batka.sh

cat batka.sh

gzcat $1|awk '/Received XML TextMessage/{print RS s RS...
1,586
Posted By rdcwayx
awk '$5!="0"||$7!="0"' number
awk '$5!="0"||$7!="0"' number
1,945
Posted By rdcwayx
I don't see your script. So you have to show us...
I don't see your script. So you have to show us first.

If you is talking about gzip log, you may try this:

gzcat LOGFILE|awk '/Received XML TextMessage/{print RS s RS $0}{s=$0}' RS="2013-"
1,945
Posted By rdcwayx
This command is not 100% suitable, has some...
This command is not 100% suitable, has some limits.

Limit 1: All logs in 2013
Limit 2: No key "2013-" in any other place, only found at first in each line.

awk '/Received XML...
1,432
Posted By rdcwayx
:):):):):)
:):):):):)
1,533
Posted By rdcwayx
awk 'NR==FNR{a[$1 FS $2];next} !($1 FS $2 in a)'...
awk 'NR==FNR{a[$1 FS $2];next} !($1 FS $2 in a)' file2 file1

sc2/10 10 . G C 50 F=5;U=4
sc2/24 24 . T G 31 F=5;U=4
sc2/11 30 . A T 60 F=5;U=4
3,405
Posted By rdcwayx
this command is correct, what mail client did you...
this command is correct, what mail client did you use?

Can you try to send to a gmail?
1,549
Posted By rdcwayx
so what's the reason to set another array b? ...
so what's the reason to set another array b?
awk '{a[$0]++} END{for(i in a){if (a[i]==1) {print i}}}' infile
1,027
Posted By rdcwayx
df -k /oradata or mount |grep oradata
df -k /oradata

or

mount |grep oradata
982
Posted By rdcwayx
:):):):):):):)
:):):):):):):)
Showing results 1 to 25 of 500

 

Featured Tech Videos

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