Many of the utilities introduced in this site is related Microsoft .NET development. However, you may find very interesting power utilities such as Notepad2 , Windows Desktop Search, TaskSwitchXP , and SysInternals .
http://www.hanselman.com/blog/ScottHanselmans2005UltimateDeveloperAndPowerUsersToolList.aspx
sed is utility to replace particular text with new text in files.
s/// doesn’t work with \n
use y/// for \n replacement
Or you can use ‘tr’
$> tr -s '~' '\n' < inputfile > outputfile
tr -d '\015' < inputfile > outputfile
Detecting ^M (\r\n)
Note that “^M” is “Cntrl+V and Enter” Key
#!/bin/sh
if grep "^M" $1 > /dev/null
then
echo $1 contains DOS Carriage Return
fi
Check $path folder for the files that are older that 7 days and delete them.
find $path 2>>$DLOG -mtime +7 ! -exec rm -rf {} \;
check man page