Jun 21, 2004 #1 Larshg Programmer Mar 1, 2001 187 DK Hi How do I remove all new lines i a text file and replace them with a space /Larshg
Jun 21, 2004 #2 guggach Programmer Jun 10, 2004 159 CH in vi :1,$j or :%j in other tools, you need arrays, see (and try) man pages 'tr' guggach Upvote 0 Downvote
Jun 21, 2004 #3 PHV MIS Nov 8, 2002 53,708 FR man tr Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
man tr Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jun 21, 2004 #4 guggach Programmer Jun 10, 2004 159 CH 'c' still remains your best friend. compile it, call: fname < inputname #include <stdio.h> int main() { register int aa; while((aa = getchar()) != EOF) putchar((aa == '\n') ? ' ' : aa); putchar('\n'); /* append a newline at end */ exit(0); } guggach Upvote 0 Downvote
'c' still remains your best friend. compile it, call: fname < inputname #include <stdio.h> int main() { register int aa; while((aa = getchar()) != EOF) putchar((aa == '\n') ? ' ' : aa); putchar('\n'); /* append a newline at end */ exit(0); } guggach
Jun 21, 2004 #5 vgersh99 Programmer Jul 27, 2000 2,146 US naaah, I'd say buy a couple of Cray's and ask NASA for their Mission Critical software. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
naaah, I'd say buy a couple of Cray's and ask NASA for their Mission Critical software. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+