Sunday, March 05, 2006

dos 2 unix converter

quick script to convert win32 txt to unix CRLF -> LF


#!/bin/sh
for file
do
perl -pi.bak -e 's/\r\n?/\n/g;' $file
done

0 Comments:

Post a Comment

<< Home