Hi,
how to i remove leading and trailing spaces from a line? the spaces can be behind or in front of any field or line
example of a line in the input data:
Amy Reds , 100 , /bin/sh
how to i get it to be: Amy Read,100,/bin/sh
i saw something on this on the Man pages for AWK... (7 Replies)
I am having xml document as below.
<transactionid>
00
</transactionid>
<tracknumber>
0
</tracknumber>
<key>
N/A
</key>
But the data contains leading and trailing spaces between the tags. Please let me know how can i remove these leading and trailing spaces between the tags.... (2 Replies)
Dear All,
can you please advice how do i remove trailing and leading spaces from a pipe-delimited file using "tr" command
the below cmd, i tried removed all spaces
tr -d ' '<s1.txt>s2.txt1
Many thx
Suresh (5 Replies)
Hi All,
I have a file with the following contents with multiple lines
172445957| 000005911|8| 400 Peninsula Ave.#1551 | And,K |935172445957|000005911
607573888 |000098536 | 2|Ane, B |J |Ane |1868 |19861206|20090106|20071001
I want to trim the "leading and trailing spaces only" from... (2 Replies)
I'm currently writing my sql results to a file and they have trailing spaces after each field. I want to get rid of these spaces and I'm using this code:
TVXTEMP=$(echo $TVXTEMP|sed -e 's/\ //g')
It doesn't work though. I'm not familiar with sedscript, and the other codes I've found online... (6 Replies)
Hi All,
I am having a file which contains negative numbers, wht i am doing is re-formattting the file(moving few columns and add few hard codings between), while reformatting i would want the negative numbers to have the sign as trailing rather than leading.
Existing
-2400.00
34
0.00... (11 Replies)
Does anyone know of a way with C Shell that will work on both Linux and Sun to clear all leading and trailing blanks from a previously specified string? I am using the following code to replace blanks with underscores:
set Company = `echo $Company | sed 's/ /_/g
but I don't want any... (1 Reply)
Hi All,
I am using a informatica job to create a csv file and a unix script the mail the generated file.Everything is working fine but I am not seeing leading zeros in the csv file sent in the mail.These zeros were present when the .csv file was generated by informatica procees.
Is there any... (11 Replies)
Hi,
I am trying to remove leading and trailing spaces from a file using awk but somehow I have not been able to do it.
Here is the data that I want to trim.
07/12/2017 15:55:00 |entinfdev |AD ping Time ms | .474| 1.41| .581|green |flat... (9 Replies)
Hi
I have variable named tablename. The value to tablename variable has leading and trailing white spaces. How to remove the leading and training white spaces and write the value of the tablename without space to a file using shell script. ( for e.g. tablename= yyy )
INPUT
... (10 Replies)
Discussion started by: pottic
10 Replies
LEARN ABOUT ULTRIX
munmap
munmap(2) System Calls Manual munmap(2)Name
munmap - unmaps memory of a character device
Syntax
#include <sys/types.h>
#include <sys/mman.h>
caddr_t munmap(addr, len)
caddr_t addr;
size_t len;
Arguments
addr Specifies the address space of the calling process at which the unmapping begins.
len Specifies the number of bytes to unmap.
Description
The system call unmaps a specified number of bytes (len) starting at a specified address (addr) from the address space of the calling
process. You mapped this device in a previous call to Subsequent access to the unmapped region results in a signal. You cannot unmap
data, stack, and text segments using
The system call rounds len to the nearest multiple of page size as returned by
The range [addr, addr + len] may contain more than one mapped region created by In this case, unmaps all of the mapped regions.
Restrictions
All of the mapped regions must be wholly contained in the range [addr, addr + len]. That is, addr must be the beginning of some mapped
region and addr + len must be the end of some (possibly different) mapped region.
Return Value
If successful, returns 0. Otherwise, it returns -1 and sets the errno argument to one of the errors listed in the Diagnostics section.
Diagnostics
The call to fails if one or more of the following is true:
[EINVAL] The address you specified in addr is not a multiple of the page size as returned by
[EINVAL] The addresses in the range [addr, addr + len] are not valid in the process address space.
[EINVAL] All of the segments being unmapped are not entirely contained in the range [addr, addr + len].
See Alsogetpagesize(2), getsysinfo(2), mmap(2)munmap(2)