Good!! Thanks.. works very well
---------- Post updated at 03:03 PM ---------- Previous update was at 02:07 PM ----------
If any one wants to understand the command please read the following:
#### Substitutes anything from space to .log and replace with nothing.
# -i: you can print it to the same file from which you are reading. When you use 'i' switch you will not see the output in STDOUT but the output will be printed to the reading file itself.
# -p: wraps your code in a loop and it has an advantage of printing the line automatically. So to print the file you can use
# -e: switch is for writing a one-liners program, it omits program file. Code can be written inside ' or ".
# s/: make substitutions based on those matches. Function which is designed to mimic the way substitution is done in the vi text editor.
# [^ ] This replaces anything except a space
# +: matches any non-empty string
# g: To make a global substitution the last slash is followed by a g.
# The second substitution does exactly the same thing except there's an another space which means it will remove the first entry.
###