Sunday, January 06, 2013

Linux command to replace string in all files in directory

    grep -rl 'string1' * | xargs sed -ie 's/string1/string2/g'

Change string1 to string you want to replace.
Change string2 to replace string. 

Delete all files with same extension in Linux command

    find . -name '*.yourext' -print0 | xargs -0 rm

Replace yourext with extension you want.
Or change *.yourext to pattern that you want.

Tuesday, December 04, 2012

Blue Highlight on Desktop Icon Name Windows XP

Method 1
  1. Right click on Desktop.
  2. Click on "Arrange Icons By".
  3. Uncheck on "Lock Web Items on Desktop".
Method 2
  1. Right click on "My Computer".
  2. Click on "Properties".
  3. Click on "Advanced" tab.
  4. Click on "Settings".
  5. Click on "Visual Effects" tab.
  6. Check on "Custom".
  7. Check on "Use drop shadows for icon labels on the desktop".
Method 3
  1. Right click on Desktop.
  2. Click on "Properties".
  3. Click on "Themes" tab.
  4. Select "Windows XP" theme.
  5. Click on "OK" button.
Method 4
  1. Right click on Desktop.
  2. Click on "Properties".
  3. Click on "Desktop" tab.
  4. Click on "Customize Desktop " button.
  5. Click on "Web" tab.
  6. Delete all item in "Web pages" box except "My Current Home Page".
  7. Uncheck on "My Current Home Page".
  8. Uncheck on "Lock desktop items".
  9. Click on "OK" button.