ls -rt1 /Users/user/Documents/*.doc | tail -1 | sed 's/ /\\ /g' | sed 's/(/\\(/g' | sed 's/)/\\)/g'
Thursday, July 9, 2009
escape potential spaces and parentheses in output
Subscribe to:
Post Comments (Atom)
ls -rt1 /Users/user/Documents/*.doc | tail -1 | sed 's/ /\\ /g' | sed 's/(/\\(/g' | sed 's/)/\\)/g'
No comments:
Post a Comment