Printing, Personal Computing and Mobile BoardsHave Been Migrated to HP Support Forums

Open Menu

Printing, Personal Computing and Mobile BoardsHave Been Migrated to HP Support ForumsOpen Menu

We have completed the migration of all boards within the Printing and Digital Imaging, Desktops and Workstations, and Mobile categories to the HP Support Forums. Please see this post for full details on the migration, and how to get to your content.

It searches through the file for the value of the UPDATE# (hopefully there is never more than 1 occurrence of any particular update number in a file) obtained from file1 and looks for the corresponding account numbers in both file1 and file2 by printing the 2nd line below the UPDATE #. This also assumes that the Account number is always 2 lines below the Update number.

The 'grep -l' in the script searches through the files in /root/pw/test and returns the filename of the file with the same UPDATE number. The sed statement for FILE2ACCT then looks for the ACCT# in the file returned by the 'grep -l' command.