write a script to convert all dos style backslashes to unix style slashes in a list of files? write a script to list all the differences between two directories ? what is the command for to display the last newly appending lines of a file during appending data to the same file by same processes ? what is the command to display top most processes which has utilised most of the cpu?
RE: write a script to convert all dos style backslashes to unix style slashes in a list of files?write a script to list all the differences between two directories ?what is the command for to display the last newly appending lines of a file during appendi
for i in `ls *`;do cat $i|sed 'y|\|/|' > $i.newthis will create a new file for each of the replace files so remove the .new line to get the same updated.tail -f filenameshould display the updates made to a file.top -c -d2 should list the processes based on the current usage.
RE: write a script to convert all dos style backslashes to unix style slashes in a list of files?write a script to list all the differences between two directories ?what is the command for to display the last newly appending lines of a file during appendi
lets say window.list has the file list then this will do the trick
RE: write a script to convert all dos style backslashes to unix style slashes in a list of files?write a script to list all the differences between two directories ?what is the command for to display the last newly appending lines of a file during appendi
You can simply use dos2unix command which allow you to change all window special character to Unix format.
RE: write a script to convert all dos style backslashes to unix style slashes in a list of files?write a script to list all the differences between two directories ?what is the command for to display the last newly appending lines of a file during appendi
Command to list all the differences between two dir:
RE: write a script to convert all dos style backslashes to unix style slashes in a list of files?write a script to list all the differences between two directories ?what is the command for to display the last newly appending lines of a file during appendi
dos2unix only removes the control-M characters at the end of the line. You need to use sed to do the search and replace for '' to '/'.