Article 539C4 Multilib Scripting challenge

Multilib Scripting challenge

by
business_kid
from LinuxQuestions.org on (#539C4)
I'm looking for scripting ideas for this challenge:

Quote:
Go through the /var/lib/pkgtools/packages files; for each file, remove the entries beginning 'usr/lib/' and 'lib/' and save the ones from each package to a separate file, preferably with a similar name.
I don't even know where to start. Awk is probably the one, but I left it out of my self-education; sed I'm primitive with; Grep I'm better, but I don't think it does enough; and a bash script doesn't get me round the tricky lines.

Alien Bob does an x86 multilib version of gcc & glibc, for replacing the originals. I selected the glibc-2.30-multilib-alien package on my pc as a good test, and copied it to my homedir. It had entries in lib/, lib64/, usr/lib/, and usr/lib64/ and in fact it seems to dump in almost every relevant directory. When I can process that, I'll take on the arm.

Given that I'm not throwing any towel in, I'd appreciate any suggestions to give me direction.latest?d=yIl2AUoC8zA latest?i=g0SBEvfZfA4:EQVETSq0HRo:F7zBnMy latest?i=g0SBEvfZfA4:EQVETSq0HRo:V_sGLiP latest?d=qj6IDK7rITs latest?i=g0SBEvfZfA4:EQVETSq0HRo:gIN9vFwg0SBEvfZfA4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments