-
Senior Member
registered user
Re: bfree - how do you use this perl script?

Originally Posted by
Aleu
I have two Knoppix distros let say one from August and one from November 14th.
This is what I am doing so far:
1. I run knoppix from the old distro and give the command "dpkg -l > Knoppix_OLD"
2. I repeat this with a new distro "dpkg -l > Knoppix_NEW"
3. Then I run "diff Knoppix_OLD KNOPPIX_NEW and ..."?
I have your script saved as "Knoppix_diferences.pl" in the same directory.
Sould I add "#!/usr/bin/perl" at the very top of your script?
How can I use this script. What should be the correct procedure?
Thanks
Sorry, I wasn't very clear about it! You are getting there but just need a couple more things.
First, you need to make the script I provided executable (chmod +x Knoppix_differences.pl) or else you will need to run it as "perl Knoppix_differences.pl". If you make it executable, you will need to add the #!/usr/bin/perl to the first line of the script. I will assume you make it executable for the remaining instructions.
Then you need to feed the diff between the files into the script. You could do "diff knoppix_old knoppix_new | ./Knoppix_differences.pl" or else you could do "diff knoppix_old knoppix_new > knoppix_differences.txt" and then "./Knoppix_differenes.pl knoppix_differences.txt". Either of these approaches will print out the information to the screen. If you want to save them into a file, just add "> knoppix_diff_results.txt" to the end of the command where you are running the perl script.
I hope this is all clear and makes sense.
Similar Threads
-
Replies: 44
Last Post: 12-17-2003, 08:27 PM
-
Replies: 40
Last Post: 09-30-2003, 01:38 PM
-
Replies: 4
Last Post: 07-28-2003, 05:23 AM
-
By gjakuipers in forum The Lounge
Replies: 1
Last Post: 07-25-2003, 12:22 PM
-
Replies: 7
Last Post: 02-24-2003, 05:07 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

EMC KTN-SL3 15-Bay Disk Array Enclosure w/2x 303-108-000E Cards, Dual PSU,No HDD
$239.99

G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only
$200.00

Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i
$228.00

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.19

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV
$18.95

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

NVME M.2 Adapter Card PCIE X16 Splitter Expansion Controller 4-Disk Soft RAID
$24.43

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00