Messages in this thread | | | From | Roger Larsson <> | Subject | Re: Why are bad disk sectors numbered strangely, and what happens to them? | Date | Mon, 13 Oct 2003 18:29:15 +0200 |
| |
On Monday 13 October 2003 16.54, Maciej Zenczykowski wrote: > > find /usr/lib -type f|sed -e 's!.*!cat & >/dev/null || echo &!'|sh > > should obviously be: > find /usr/lib -type f|sed -e 's!.*!cat "&" >/dev/null || echo &!'|sh > in order to accept spaces in file names... (they do happen).
find /usr/lib -type f|sed -e 's!.*!cat "&" >/dev/null || echo "&"!'|sh
To accept even stranger characters... Like parantesis '(' Othervice I get:
sh: line 10051: syntax error near unexpected token `(' sh: line 10051: `cat "/usr/lib/qt-3.0.5/templates/ Dialog_with_Buttons_(Bottom).ui" >/dev/null || echo /usr/lib/qt-3.0.5/ templates/Dialog_with_Buttons_(Bottom).ui'
/RogerL
-- Roger Larsson Skellefteå Sweden - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |