I have a situation...I have a data file...that has space(an extra row with no data) at the end of file. I am trying to remove that spaces only if the file has a space at the end of file and if there is no space I don't want to do anything.
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Hi,
I have a Linux file which has content as shown below
2,Latest Event in RFP_EVENT match Lastest event in Source PRH_RQ_REQUEST,Failed... (3 Replies)
Hi
I guess this is very simple....
I want to add a space at the last line in a file.
The space has to be the last charachter on the last line, not at a new line.
Anyone ?? (7 Replies)
I'm trying to remove all of the empty lines at the end of a Tab delimited file. They have no data just tabs.
I've tried may things, here are a couple:
sed /^\t.\t/d File1 > File2
sed /^\t{44}/d File1 > File2
What am I missing? (9 Replies)
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)
Hi ,
I have a file which is like below. The file record is separated by | as delimiter. I want to remove the first and last | in the file and also I want to remove the spaces in the columns.
Original File
|3464114 |10 | REPORT|CA| 1|0|4825400|0|213167| 939396524|
Expected:... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
LEARN ABOUT HPUX
brk
brk(2) System Calls Manual brk(2)NAME
brk, sbrk - change data segment space allocation
SYNOPSIS DESCRIPTION
and are used to change dynamically the amount of space allocated for the calling process's data segment; see exec(2). The change is made
by resetting the process's break value and allocating the appropriate amount of space. The break value is the address of the first loca-
tion beyond the end of the data segment. The amount of allocated space increases as the break value increases. The newly allocated space
is set to zero.
sets the break value to endds and changes the allocated space accordingly.
adds incr bytes to the break value and changes the allocated space accordingly. incr can be negative, in which case the amount of allo-
cated space is decreased.
ERRORS
and fail without making any change in the allocated space if one or more of the following are true:
[ENOMEM] Such a change would result in more space being allocated than is allowed by a system-imposed maximum (see ulimit(2)).
[ENOMEM] Such a change would cause a conflict between addresses in the data segment and any attached shared memory segment (see
shmop(2)).
[ENOMEM] Such a change would be impossible as there is insufficient swap space available.
[EINVAL] Such a change will result in crossing the boundary to uninitialized data in the calling process's data segment.
WARNINGS
The pointer returned by is not necessarily word-aligned. Loading or storing words through this pointer could cause word alignment prob-
lems.
Be very careful when using either or in conjunction with calls to the malloc(3C) library routines. There is only one program data segment
from which all three of these routines allocate and deallocate program data memory.
RETURN VALUE
Upon successful completion, returns a value of 0. Otherwise, a value of -1 is returned and is set to indicate the error.
Upon successful completion, returns the old break value. Otherwise, is returned and is set to indicate the error. The symbol is defined in
the header No successful return from will return the value
AUTHOR
and were developed by AT&T and HP.
SEE ALSO exec(2), shmop(2), ulimit(2), end(3C), malloc(3C).
STANDARDS CONFORMANCE brk(2)