coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

use comm command with regular expression


From: e-letter
Subject: use comm command with regular expression
Date: Thu, 14 Jun 2012 21:22:25 +0100

Readers,

File 1 contains data:

/some/text/abcd.xyz

File 2:

abcd.xyz

The manual does not seem to indicate that regular expressions can be
used with 'comm'. The task is to be able to compare file1 to file2
using a regular expression as a criterion for comparison, such as:

*cd.xyz

Then create a new file 'file3' that contains only those lines that
satisfy the regular expression, but must contain the same format style
as in file1.

Any help please?

Thanks in advance.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]