LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Left justify att text in my 11 text files at once (https://www.linuxquestions.org/questions/linux-newbie-8/left-justify-att-text-in-my-11-text-files-at-once-915996/)

thepowerofone 11-28-2011 08:56 AM

Left justify att text in my 11 text files at once
 
How do I left justify the text in my 11 .text files at once without doing them individually. Would I need to use sed to do this as I am not to sure of sed.

Many thanks.

MTK358 11-28-2011 11:19 AM

I don't know what you mean by "left justify the text in a text file", but assuming that there are spaces to the left of each line and you want them gone, try this:

Code:

sed 's/^[ \t]*//'


All times are GMT -5. The time now is 03:36 PM.