Search Results

Search: Posts Made By: simonirang
1,367
Posted By pamu
You need to rewrite the file... try this... ...
You need to rewrite the file...

try this...

awk -v Cur_CPU=10 -v Cur_RAM=11 -v Cur_HAR=13 '/CPU/{$1=$1" "Cur_CPU}
/RAM/{$1=$1" "Cur_RAM}
/HAR/{$1=$1" "Cur_HAR}1' file > temp_file

mv...
1,367
Posted By pamu
Is this what you want..? awk -v...
Is this what you want..?


awk -v Cur_CPU=10 -v Cur_RAM=11 -v Cur_HAR=13 '/CPU/{$1=$1" "Cur_CPU}
/RAM/{$1=$1" "Cur_RAM}
/HAR/{$1=$1" "Cur_HAR}1' file

CPU 10 1 2 3 4 5 6
RAM 11 2 3 4 5 6 7...
4,769
Posted By vidyadhar85
does below work? have u tried running it on...
does below work? have u tried running it on command prompt?


$(find . $logloc . -name 'SystemOut_* -mtime +2 -exec mv {} /home/songja/test \;)
Showing results 1 to 3 of 3

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