10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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)
Discussion started by: svajhala
9 Replies
3. Shell Programming and Scripting
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)
Discussion started by: karthik adiga
11 Replies
4. Shell Programming and Scripting
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)
Discussion started by: phudgens
1 Replies
5. Shell Programming and Scripting
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)
Discussion started by: selvankj
11 Replies
6. Shell Programming and Scripting
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)
Discussion started by: avillanueva
6 Replies
7. Shell Programming and Scripting
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)
Discussion started by: kumar04
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: sureshg_sampat
5 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: jhmr7
2 Replies
10. Shell Programming and Scripting
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)
Discussion started by: sleepster
7 Replies
LIBEXSLT(3) Library Functions Manual LIBEXSLT(3)
NAME
libexslt - extension library for XSLT
SYNOPSIS
#include <libexslt/exslt.h>
void exsltCommonRegister(void);
void exsltDateRegister(void);
void exsltDynRegister(void);
void exsltFuncRegister(void);
void exsltMathRegister(void);
void exsltSetsRegister(void);
void exsltStrRegister(void);
void exsltRegisterAll(void);
void exsltSaxonRegister(void);
DESCRIPTION
The libexslt library is used to provide extensions to XSLT functions. These extensions come from the EXSLT project <http://www.exslt.org/>
USAGE
To make use of these functions in XSLT the appropriate namespace must be defined on the xsl:stylesheet element. To enable support for them
in libxslt(3) you must call the appropriate functions (listed in the SYNOPSIS section) to register the extensions. The xslt-config shell
script can be used to obtain the necessary flags for the pre-processor and linker. The supported extensions are:
COMMON
Namespace: http://exslt.org/common
See http://www.exslt.org/exsl/index.html for a description.
node-set() convert the given RTF into a node-set.
object-type() returns the type of the given argument.
document Create multiple output documents. See http://www.exslt.org/exsl/elements/document/index.html
MATH
Namespace: http://exslt.org/math
See http://www.exslt.org/math/index.html for a description.
min() returns the minimum value of the given node-set
max() returns the maximum value of the given node-set
highest() returns the nodes in the node-set whose value is the maximum value for the node-set.
lowest() returns the nodes in the node-set whose value is the minimum value for the node-set.
constant() returns a number value of the given constant with the given precision. The constants are PI, E, SQRRT2, LN2, LN10,
LOG2E, and SQRT1_2.
random() returns a random number between 0 and 1 inclusive.
abs() returns the absolute value of the argument.
sqrt() returns the square root of the argument.
power() returns the power base and power arguments.
log() returns the natural log of the argument.
sin() returns the sine of the argument.
cos() returns the cosine of the argument.
tan() returns the tangent of the argument.
asin() returns the arc sine of the argument.
acos() returns the arc cosine of the argument.
atan() returns the arc tangent of the argument.
atan2() returns the arc tangent function of the y/x arguments.
exp() returns the exponential function of the argument.
SETS
Namespace: http://exslt.org/sets
See http://www.exslt.org/set/index.html for a description.
difference() returns the difference between the two given node-sets.
intersection() returns a node-set of the nodes within both given node-sets.
distinct() returns a node-set of all nodes in the first argument that are not in the seconds argument.
has-same-node() returns TRUE if there is an intersection between the two given node-sets.
leading() returns a node-set of all nodes in the first argument that precede the first node in the second argument.
trailing() returns a node-set of all nodes in the first argument that follow the first node in the second argument.
DATES and TIMES
Namespace: http://exslt.org/dates-and-times
See http://www.exslt.org/date/date.html for a description.
date-time() returns the current date and time as a date/time string.
date() returns the date specified in the given date/time string.
time() returns the time specified in the date/time string given as the argument.
year() returns the year of a date as a number.
leap-year() returns true if the year given in a date is a leap year.
month-in-year() returns the month of a date as a number.
month-name() returns the full name of the month of a date.
month-abbreviation() returns the abbreviation of the month of a date.
week-in-year() returns the week of the year as a number.
week-in-month() returns the week in a month of a date as a number.
day-in-year() returns the month of a date as a number.
day-in-month() returns the day of a date as a number.
day-of-week-in-month()
returns the day-of-the-week in a month of a date as a number.
day-in-week() returns the day of the week given in a date as a number.
day-name() returns the full name of the day of the week of a date.
day-abbreviation() returns the abbreviation of the day of the week of a date.
hour-in-day() returns the hour of the day as a number.
minute-in-hour() returns the minute of the hour as a number.
second-in-minute() returns the second of the minute as a number.
seconds() returns the number of seconds specified by the argument string.
add() returns the date/time resulting from adding a duration to a date/time.
add-duration() returns the duration resulting from adding two given durations together.
difference() returns the duration between the first date and the second date.
duration() returns a duration string that represents the given number of seconds since 1970-01-01T00:00:00.
STRINGS
Namespace: http://exslt.org/strings
See http://www.exslt.org/str/index.html for a description.
tokenize() returns a node set of token elements, each containing one token from the string.
padding() returns a string padded to a certain length.
align() returns a string aligned within another string.
concat() returns the concatenation of the string values of the nodes in that node set.
FUNCTIONS
Namespace: http://exslt.org/functions
See http://www.exslt.org/func/index.html for a description.
function declares an extension function.
result returns the result of an extension function declared in function().
FILES
/usr/bin/xslt-config
shell script giving pre-processor and linker flags.
/usr/lib/libexslt.a
static library
/usr/lib/libexslt.so
sharable library
AUTHORS
Manual page by Heiko W. Rupp (hwr@pilhuhn.de)
SEE ALSO
libxml(3), libxslt(3), xmllint(1) xsltproc(1),
libxslt 04 November 2003 LIBEXSLT(3)