mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-05 21:04:01 +00:00
Review: https://reviewboard.asterisk.org/r/1891/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
11 lines
167 B
Bash
11 lines
167 B
Bash
#!/bin/sh
|
|
#
|
|
# usage: undos <file>
|
|
#
|
|
# strips CRs from a file - useful when moving DOS-created files
|
|
# onto UN*X machines
|
|
|
|
cat $1 | tr -d "\r" > $1.tmp
|
|
mv $1.tmp $1
|
|
|