S
Scott Bass
Hi,
Say I have 100 files, f1 - f100. Say the first line is "Table 1.1.1 <a
bunch of whitespace> Page 1 of x"
What I need perl to spit out is:
f1 /* Table 1.1.1 */
f2 /* Table 1.1.2 */
f3 /* Table 1.1.3.1.5 */
etc.
In pseudocode: "take columns 1-30 from line 1 from 100 separate files, and
spit out the filename, two tabs, slash asterisk, the text from columns 1-30,
asterisk slash"
However, I would also like the output sorted by the data in a 2nd file. So,
if that 2nd file is:
Table 1.1
Table 1.5
Table 2.1
Table 3.1
Table 1.2
Table 2.2
Table 3.2
etc.
then I would like the output sorted by the order as found in that 2nd file.
Any ideas?
Thanks,
Scott
Say I have 100 files, f1 - f100. Say the first line is "Table 1.1.1 <a
bunch of whitespace> Page 1 of x"
What I need perl to spit out is:
f1 /* Table 1.1.1 */
f2 /* Table 1.1.2 */
f3 /* Table 1.1.3.1.5 */
etc.
In pseudocode: "take columns 1-30 from line 1 from 100 separate files, and
spit out the filename, two tabs, slash asterisk, the text from columns 1-30,
asterisk slash"
However, I would also like the output sorted by the data in a 2nd file. So,
if that 2nd file is:
Table 1.1
Table 1.5
Table 2.1
Table 3.1
Table 1.2
Table 2.2
Table 3.2
etc.
then I would like the output sorted by the order as found in that 2nd file.
Any ideas?
Thanks,
Scott