Search Results

Search: Posts Made By: doganaym
10,997
Posted By doganaym
what I am saying is: vmware mac addresses...
what I am saying is:
vmware mac addresses usually starts with "00:50", but if any other pattern exists, you ifconfig -a on your vmware server and use your own pattern.

---------- Post updated at...
3,840
Posted By doganaym
diff file1 file2 --old-line-format="%L"...
diff file1 file2 --old-line-format="%L" --new-line-format="" --unchanged-line-format="" -h

or

diff file1 file2 --old-line-format="%L" --new-line-format="" --unchanged-line-format=""...
10,997
Posted By doganaym
if you need a script to identify if your server...
if you need a script to identify if your server is vm or not,
I consider that you have at least one vmware and 1 physical server.
you can ifconfig -a on both and change 00:50 if needed scott
10,997
Posted By doganaym
if [ $(ifconfig -a|grep HWaddr|grep "00:50"|wc...
if [ $(ifconfig -a|grep HWaddr|grep "00:50"|wc -l) -eq 0 ]
then
echo "Not VMware or Physical"
else
echo "VMware"
fi
770
Posted By doganaym
awk '{print "\"Don\047t...
awk '{print "\"Don\047t Panic!\""}'
1,189
Posted By doganaym
append your public key to remote server's...
append your public key to remote server's ~/.ssh/authorized_keys
file
1,400
Posted By doganaym
awk '{if(NF==2)print $1}'
awk '{if(NF==2)print $1}'
2,006
Posted By doganaym
sort file1.txt > file1 sort file2.txt > file2 ...
sort file1.txt > file1
sort file2.txt > file2
comm -23 file1 file2
3,840
Posted By doganaym
did you try this? sort file1.txt > file1 ...
did you try this?

sort file1.txt > file1
sort file2.txt > file2
comm -23 file1 file2 > result
3,840
Posted By doganaym
simply use comm (be sure that both files are...
simply use comm (be sure that both files are sorted, otherwise comm produces wrong output):

comm -23 file1.txt file2.txt
954
Posted By doganaym
sorry, I forgot the first one: awk -F...
sorry, I forgot the first one:

awk -F '{print substr('$line',length('$line')-14,10)}' ftpList$i.txt > Dates$i.txt
954
Posted By doganaym
you can not use shell variable directly in awk....
you can not use shell variable directly in awk. try this:

awk -F '{print substr($line,length('$line')-14,10)}' ftpList$i.txt > Dates$i.txt

Use code tags!
954
Posted By doganaym
do not use single quote('): ssh $user@$host...
do not use single quote('):

ssh $user@$host ls -1 $was7sourcedir/$src_file_name${param}* > $workdir/ftpList$i.txt
1,272
Posted By doganaym
then this may help (distincts for col1 and col2):...
then this may help (distincts for col1 and col2):

select * from
(
select col1, col2, col3 ,row_number() over (partition by col1, col2 order by null) rn
from table1
) where rn=1;
3,660
Posted By doganaym
if you mean wtmp, you can: echo "" >...
if you mean wtmp, you can:
echo "" > /var/log/wtmp

or
cat /dev/null > /var/log/wtmp

or
cp /dev/null /var/log/wtmp


if fails, run this:
/usr/lib/acct/wtmpfix
1,272
Posted By doganaym
you can use uniq: file1 1 2 3 4 1 2 3 4 ...
you can use uniq:

file1
1 2 3 4
1 2 3 4
1 2 3 3
9 9 9 3

## ignore first three columns
$ uniq file1 -f 3
1 2 3 4
1 2 3 3
Showing results 1 to 16 of 16

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