You are not logged in.
Ok so i was wondering if i could use a script to handle .pacnew files I feel like thats a no but im unsure also if automation is a horrible choice whats the next best method and program to use.
script:
for PACNEW_FILE in `find /etc/ -name "*.pacnew"`; do
BASE_FILE=`echo $PACNEW_FILE | sed '/\.pacnew//'`;
meld $PACNEW_FILE $BASE_FILE;
echo -n "Remove the file $PACNEW_FILE ? [y|n] ";
read -n 1 CHOICE
if [ "$CHOICE" = "y" ]; then
rm $PACNEW_FILE;
fi
done;
Last edited by Oblivion7 (2015-09-09 21:01:58)
Anyone who has never made a mistake has never tried anything new. ~Albert Einstein
Offline
Sure, this is what pacdiff does.
Not a SysAdmin issue moving to NC.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
When I execute pacdiff this is the output.
Cannot find the vim -d binary required for viewing differences.
EDIT: WELP I didnt have vim installed *Facepalms*.... (im a dumb-dumb )
Last edited by Oblivion7 (2015-09-09 21:27:03)
Anyone who has never made a mistake has never tried anything new. ~Albert Einstein
Offline
Check 'pacdiff -h', you can override the diff program and use meld if you prefer.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online