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?

Showing Answers 1 - 8 of 8 Answers

prasul

  • Dec 22nd, 2007
 

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.

  Was this answer useful?  Yes

gattu

  • Apr 30th, 2008
 

lets say window.list has the file list
then this will do the trick

cat window.list | sed 's///\/g'

  Was this answer useful?  Yes

amita

  • Apr 1st, 2016
 

DOS style backslashes to UNIX style:

vi filename
escape:%s/ctrlm//g/
enter
-------------------------------
Directory comparision
diff -r dir1 dir2
---------------------------------------
last line added to scripts:
tail -10f filename --- it will show every 10 new appened line
-----------------------------------------------------------------------------------------------
top processes:

top command

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions