Search Results

Search: Posts Made By: |UVI|
2,019
Posted By |UVI|
The script is only for example. I've to...
The script is only for example.

I've to backup various folder for various hosts, and some folder include running Virtual Machines.

So I've to launch a script on remote machine that check if...
2,019
Posted By |UVI|
strange behaviour script terminate before complete execution
I'm working on a script to make backup of various folder located on various host using different OS.
I got a strange behaviour because the script donět process all lines of a configuration file, the...
2,847
Posted By |UVI|
#!/bin/bash awk 'BEGIN{ while ( (...
#!/bin/bash


awk 'BEGIN{
while ( ( getline < "file2" ) > 0){
array_test[$1]=$0
}
}


{
print $1 " " $2 " " $3 " " $4 " " array_test[$5]
}' file1


a simple use of associative...
2,336
Posted By |UVI|
cat input.txt | awk '{ if...
cat input.txt | awk '{
if (length($0)+length(APPEND) < 20 ){
TMP = APPEND $0
gsub(/\\/,"",TMP)
print TMP
APPEND=""
}else{

TMP = APPEND $0
gsub(/\\/,"",TMP)
LINE = substr(TMP,1,19)...
2,769
Posted By |UVI|
cat input.txt | awk 'BEGIN{ while (getline ...
cat input.txt | awk 'BEGIN{
while (getline > 0 && NF > 0){
data_array[$1]+=0
if ( NR > 1 ){
C1 = $1
C2 = $2

if ( P1 == C1 && P2 != C2){
...
1,224
Posted By |UVI|
#!/bin/bash DATA1=file1.txt ...
#!/bin/bash

DATA1=file1.txt
DATA2=file2.txt

awk 'BEGIN {
while ((getline < "'$DATA2'") > 0)
f2array[$1] = "foo";
}

{
results[$1]+=0
results[$2]+=0
results[$3]+=0
if ( $1 in...
1,164
Posted By |UVI|
cat input.txt | awk 'BEGIN{ FS=","; } ; { if...
cat input.txt | awk 'BEGIN{ FS=","; } ; { if (NR!=1){
for (i = 1 ; i<=$6; i++ ){
cores = $7/$6
print $1 "," i "," cores "," $8
}
}
}'
34,995
Posted By |UVI|
I think this works only if uptime < 1 day ;)
I think this works only if uptime < 1 day ;)
34,995
Posted By |UVI|
echo $(uptime) | sed 's/^.\+up\...
echo $(uptime) | sed 's/^.\+up\ \+\([^,]*\).*/\1/g'
6,506
Posted By |UVI|
If you use gmail there is a problem. gmail...
If you use gmail there is a problem.

gmail refuse mail that are coming from unknown hosts.

You have to use smtp
1,676
Posted By |UVI|
please provide input and output examples
please provide input and output examples
2,769
Posted By |UVI|
cat input.txt | awk 'BEGIN{ while (getline ...
cat input.txt | awk 'BEGIN{
while (getline > 0){
if ( NR > 1 ){
C1 = $1
C2 = $2

if ( P1 == C1 && P2 != C2){
if ( (P2+1)%16 != C2 )
...
2,075
Posted By |UVI|
cat input.txt | awk 'BEGIN{ while (getline ...
cat input.txt | awk 'BEGIN{
while (getline > 0){
F1 = $1
F2 = $2
F3 = $3
gsub (/\(/,"",F1)
gsub (/\(/,"",F3)
if (F1 > 2 || F2 > 2 || F3 > 2){
print "(2.5 2.5...
2,769
Posted By |UVI|
another way awk 'BEGIN{ while (getline ...
another way

awk 'BEGIN{
while (getline > 0){
if ( NR > 1 ){
C1 = $1
C2 = $2

if ( P1 == C1 ){
if ( (P2+1)%16 != C2)
data_array[$1]++
}
...
Showing results 1 to 14 of 14

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