Categories Linux shell script sed tips Post author By Arun N. Post date January 1, 2010 No Comments on sed tips Remove trailing space from a file using sed $cat | sed 's/[ \t]*$//' > Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related ← Find Tips → Mysql Queries and Tips Leave a ReplyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. CAPTCHA Code * Notify me of follow-up comments by email. Notify me of new posts by email. Δ