Re: linux question
From: Nadeem M. Khan <nadeem.m.khan_at_gmail.com>
Date: Wed, 25 Mar 2009 09:04:05 +0400
Message-ID: <2ede0e110903242204w5f740a35kdec0885157199048_at_mail.gmail.com>
On Wed, Mar 25, 2009 at 3:35 AM, Eugene Pipko <eugene.pipko_at_unionbay.com> wrote:
> Sorry one more thing:
> I don’t always know the file name, so how do I check for the file in the directory and pass that file into the sed command?
Date: Wed, 25 Mar 2009 09:04:05 +0400
Message-ID: <2ede0e110903242204w5f740a35kdec0885157199048_at_mail.gmail.com>
On Wed, Mar 25, 2009 at 3:35 AM, Eugene Pipko <eugene.pipko_at_unionbay.com> wrote:
> Sorry one more thing:
> I don’t always know the file name, so how do I check for the file in the directory and pass that file into the sed command?
ls -lrt will show you the last modified at the end of the listing.
Two more ways of converting a dos file to unix file:
- dos2unix dosfile (works for Redhat)
- cat dosfile | col -b > unixfile
Regards,
NMK.
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Mar 25 2009 - 00:04:05 CDT