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 的大作中提到】
: you can try 'dos2unix'.
c*t
6 楼
Thank you very much!
【在 r***r 的大作中提到】
:
: 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 的大作中提到】
:
: 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 的大作中提到】
:
: 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 的大作中提到】
:
: 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";
相关阅读
[转载] how to see which port in use?Sql server 6.5 or higher version.NNTP server on UNIXRe: 已经有打印机在网络上如何设置并使用?How to use Chinese under Unix ?破unixhow to install .sfx file to unix有甚么类似acdsee的unix下的看图软件吗?磁带驱动器求救!如何将两个UNIX的硬盘互倒数据!很急!!!who knows how to use nslookup?Where is Cxterm5.1?Does Linux support thread?anyone know how to generate encrypted passwd by crypt() ?HELP:scorllbar on xterm windowhow to set path environment in Solaris?lp service produce segmentation fault有没有关于UNIX的CERTIFICATE?到哪里去找材料?[转载] 请教--急!!!!!一个很基础的问题