|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Quote:
What about a simple C program? You can write it as you wish and need not guess and try how the system commands work with huge files: #include<stdio.h> int main(int argc, char* argv[]) { int c; while ((c = fgetc(stdin)) != EOF) { if (c != '\n') fputc(c, stdout); } } You can of course add test for succesfull read, return the completion code ... Regards ![]() |
|
#17
|
|||
|
|||
|
Quote:
What about a simple C program? You can write it as you wish and do not need to guess how the system tools work with huge files: #include<stdio.h> int main(int argc, char* argv[]) { int c; while ((c = fgetc(stdin)) != EOF) { if (c != '\n') fputc(c, stdout); } } You can of course add test for reading errors, return the return code and and and... Regards ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > line stiching |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|