> First.. I have a file with comma delineated fields. The data in each field
> is enclosed in double quotes ("). However, some data fields have a quote
> within the quotes, and I need to remove that. What is my best choice for
> this?
As Alan said, this is CSV. If you can tell me how many fields there are, I
can easily do this for you. Not knowing the number of fields makes it more
complicated, but simple to do if known. An example line is preferable.
> Second.. A text file that contains data within brackets in this format:
> useless text here[first/last]and useless text here
>
> I need to just take the data "first" and "last" and output it into another
> file like this:
> first:last
if there are no other [something/something] string in the useless text,
this will do it
perl -ne 'print "$1:$2\n" if /\[(.*?)\/(.*?)\]/;' your_file > outfile
hth
charles
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.