Hi All
I have a field being returned from the DB that when opened in Vi shows a ^M before the rest of the field is displayed on the next line.
I need it so that the only newline character is the end of the line since I need to transform my file into an Excel report.
Thus my idea is to... (1 Reply)
--------------------------------------------------------------------------------
Hi All
I have a field being returned from the DB that when opened in Vi shows a ^M before the rest of the field is displayed on the next line.
I need it so that the only newline character is the end of the... (14 Replies)
Hi,
How to replace any character in a file with a newline character using sed ..
Ex:
To replace ',' with newline
Input:
abcd,efgh,ijkl,mnop
Output:
abcd
efgh
ijkl
mnop
Thnx in advance.
Regards,
Sasidhar (5 Replies)
Greetings!
Can we automate the process of removing a newline char from selected rows in a fixed width file using a shell?
Input is like
abcd1234
xyzd1234
abcd
a1b2c3d4
abcd1234
xyzd1234
xx
abcd1234
Expected output -
abcd1234xyzd1234
abcda1b2c3d4abcd1234xyzd1234
xxabcd1234
... (3 Replies)
I would like to add a line to the end of a single column text file. How do I go about doing that?
Input:
BEGIN
1
2
3
Output:
BEGIN
1
2
3
END
Thanks! (1 Reply)
Hi All,
I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of each file will have newline character at end.
Before:-
File Name:- File1.dat
102 121340560... (10 Replies)
Input eg:
Ouput Expected.
The #rd line had the unexpted new line, which need to be replaced with space.
I was planing to go with checking the length of each line using awk and if the length is less than the defeined limit, (12 in above case) will replace the newline with space.
... (5 Replies)
Discussion started by: deepakwins
5 Replies
LEARN ABOUT BSD
fork
FORK(3F)FORK(3F)NAME
fork - create a copy of this process
SYNOPSIS
integer function fork()
DESCRIPTION
Fork creates a copy of the calling process. The only distinction between the 2 processes is that the value returned to one of them
(referred to as the `parent' process) will be the process id of the copy. The copy is usually referred to as the `child' process. The
value returned to the `child' process will be zero.
All logical units open for writing are flushed before the fork to avoid duplication of the contents of I/O buffers in the external file(s).
If the returned value is negative, it indicates an error and will be the negation of the system error code. See perror(3F).
A corresponding exec routine has not been provided because there is no satisfactory way to retain open logical units across the exec. How-
ever, the usual function of fork/exec can be performed using system(3F).
FILES
/usr/lib/libU77.a
SEE ALSO fork(2), wait(3F), kill(3F), system(3F), perror(3F)4.2 Berkeley Distribution May 27, 1986 FORK(3F)