skip to main | skip to sidebar

Arshad's Blog

Thursday, August 26, 2010

Trim whitespace

The one that worked for me:

echo ' foo bar ' | sed 's/^ *//;s/ *$//'
foo bar

Source: trim whitespace?
Posted by Arshad at 4:14 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Feedjit

Blog Archive

  • ▼  2010 (1)
    • ▼  August (1)
      • Trim whitespace
  • ►  2009 (2)
    • ►  September (1)
    • ►  May (1)
  • ►  2008 (2)
    • ►  July (2)
  • ►  2007 (3)
    • ►  July (2)
    • ►  February (1)

About Me

Arshad
View my complete profile