r*r
5 楼
or if ur unix doesn't hv it (i think all solaris hv this command)
u can use a simple perl script.
#!/usr/local/bin/perl
require "flush.pl";
$TMP_FILE = "/tmp/dos2unix.tmp";
foreach $f (@ARGV) {
if ( -f $f) {
print "Processing $f ..."; &flush( STDOUT);
open( OUT, "> $TMP_FILE") || die "Cannot open tmp file for writing\n";
open( IN, "< $f") || die "Cannot open tmp file for reading\n";
while( $line =
$l = length( $line);
if ( ( $l
【在 p**h 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: you can try 'dos2unix'.
c*t
6 楼
Thank you very much!
【在 r***r 的大作中提到】![](/moin_static193/solenoid/img/up.png)
:
: or if ur unix doesn't hv it (i think all solaris hv this command)
: u can use a simple perl script.
: #!/usr/local/bin/perl
: require "flush.pl";
: $TMP_FILE = "/tmp/dos2unix.tmp";
: foreach $f (@ARGV) {
: if ( -f $f) {
: print "Processing $f ..."; &flush( STDOUT);
: open( OUT, "> $TMP_FILE") || die "Cannot open tmp file for writing\n";
【在 r***r 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
:
: or if ur unix doesn't hv it (i think all solaris hv this command)
: u can use a simple perl script.
: #!/usr/local/bin/perl
: require "flush.pl";
: $TMP_FILE = "/tmp/dos2unix.tmp";
: foreach $f (@ARGV) {
: if ( -f $f) {
: print "Processing $f ..."; &flush( STDOUT);
: open( OUT, "> $TMP_FILE") || die "Cannot open tmp file for writing\n";
h*a
7 楼
onliner.
perl -pi -e 's/\cM//g' *
【在 r***r 的大作中提到】![](/moin_static193/solenoid/img/up.png)
:
: or if ur unix doesn't hv it (i think all solaris hv this command)
: u can use a simple perl script.
: #!/usr/local/bin/perl
: require "flush.pl";
: $TMP_FILE = "/tmp/dos2unix.tmp";
: foreach $f (@ARGV) {
: if ( -f $f) {
: print "Processing $f ..."; &flush( STDOUT);
: open( OUT, "> $TMP_FILE") || die "Cannot open tmp file for writing\n";
perl -pi -e 's/\cM//g' *
【在 r***r 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
:
: or if ur unix doesn't hv it (i think all solaris hv this command)
: u can use a simple perl script.
: #!/usr/local/bin/perl
: require "flush.pl";
: $TMP_FILE = "/tmp/dos2unix.tmp";
: foreach $f (@ARGV) {
: if ( -f $f) {
: print "Processing $f ..."; &flush( STDOUT);
: open( OUT, "> $TMP_FILE") || die "Cannot open tmp file for writing\n";
相关阅读
[转载] 字体问题[转载] the C programming Language by K&Rkao, 山水也不通知一声。。。don't intentionally give wrong answerswhat is the objdump map file format如何在GNUPLOT中使用颜色?紧急请教:Unix的ls命令DSL 问题?[转载] How is Compaq Prolian ML570?用GMAKE时有clock skew,运行时间为负,怎么回事?Re: what wrong with these thread program. Thanks for helpingThanks,pda. Re: How to enable line-number-mode permanently in xemacs?xterm in UNIXPostscript[转载] HOw to use Emacs as Xterm?大虾,看看这是咋回子事尼!how to implement background process using execl()CHEATING === Re: 看看我的第一个小script为什么不工作Cron job on Windows?xemacs