/usr/bin/awk '{gsub(/\r/,); print $0; }' $0
will dump the file without ^M on stdout. Just pipe it to a file.
HTH,
umberto
On Wed, 2002-08-28 at 22:51, Tero P Paananen wrote:
To convert a windows file into a unix format you can use the
dos2unix command under unix.
It will get rid of all
DOS (aka Windows) and Unix use different line-termination sequences. In Microsoft
land, lines are terminated with a CR/LF pair. In Unix land, lines are terminated with
LF. When you view a Windows created file on Unix, the extra CR displays as a control
character.
--Kevin
P.S. CR == carriage
Mailing List
Subject: RE: struts-config windows 2 unix?
DOS (aka Windows) and Unix use different line-termination sequences. In
Microsoft land, lines are terminated with a CR/LF pair. In Unix land, lines
are terminated with LF. When you view a Windows created file on Unix, the
extra CR displays
'
Subject: RE: struts-config windows 2 unix?
To convert a windows file into a unix format you can use the dos2unix
command under unix.
It will get rid of all the ^M caracters that you see under vi.
Nicolas
-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
To convert a windows file into a unix format you can use the
dos2unix command under unix.
It will get rid of all the ^M caracters that you see under vi.
Use a text editor on Windows that can save in Unix format.
Practically any advanced text editor can do that. I use
UltraEdit myself.
thanks all... i find that the http status 500 problem is not from extra
control char's in the config, although i did clean the config file with
dos2unix anyway.
still getting:
error 500: no action instance for myclassname
??
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Here's a silly question that's bit me a few times: are you sure that the .class file
is physically packaged in the webapp?
-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:02 PM
To: Struts Users Mailing List
Subject: Re: struts-config
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 28, 2002 1:03 PM
Subject: RE: struts-config windows 2 unix? No Action Instance
Here's a silly question that's bit me a few times: are you sure that the
.class file is physically packaged in the webapp
, August 28, 2002 2:13 PM
To: Struts Users Mailing List
Subject: Re: struts-config windows 2 unix? No Action Instance
yeah, it's packaged at
WEB-INF/classes/ecapp
I also set the struts-config action mapping thus:
!-- database main page action --
action
path=/dbopsAction
type
?
-Max
- Original Message -
From: slickdev [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 28, 2002 11:13 AM
Subject: Re: struts-config windows 2 unix? No Action Instance
yeah, it's packaged at
WEB-INF/classes/ecapp
I also set the struts-config
.
--Kevin
-Original Message-
From: Desjardins, Nicolas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:36 PM
To: 'Struts Users Mailing List'
Subject: RE: struts-config windows 2 unix?
To convert a windows file into a unix format you can use the dos2unix
command under unix
11 matches
Mail list logo