I'm trying to make patches to make the old nvidia soundstorm drivers work on current kernels (
see my howto here).
One of the problems right now is that one of the files that needs to be patched contains leading tab characters in stead of spaces on some lines, which makes the patch command fail.
Does anyone know any way to do of any of these:
1. A way to get the patch command to work with lines containing tab characters?
2. A way to replace tab characters with spaces on specific lines of a file?
3. A way to replace ALL tab characters (or all leading tab characters) in a file with spaces?
4. Any other way to replace the text I need to change (some sed command I can include in a script)?
Specifically, I need a command to change this (but with tabs instead of "<tab>"):
Code:
<tab><tab><tab><tab><tab><tab><tab><tab><tab>:"=m"(currenttask->thread.i387.fxsave) );
Into this (tabs or spaces doesn't really matter, as long as the actual code in red gets changed):
Code:
:"=m"(currenttask->thread.xstate->fxsave) );
Bookmarks