Sponsored Content
Full Discussion: Allignment
Top Forums Shell Programming and Scripting Allignment Post 302340220 by clx on Monday 3rd of August 2009 04:42:59 AM
Old 08-03-2009
I still doubt you have space.
please double check that there is no space in anyside of "=".

check and if fails, post the command with code tags.
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Allignment of lines in a file

Hi All, I am using the below scrit to insert lines in a file: #!/bin/ksh # To delete the last line if it contains the pattern Redirect permanent / Virgin Atlantic Airways - Popup echo "Enter the URL that should point to the particular microsite" read url # To delete the last line if it... (2 Replies)
Discussion started by: Shazin
2 Replies

2. Shell Programming and Scripting

linux 'paste' allignment problem

Hi Everyone, # cat 1 #!/usr/bin/perl print "c\tc\t\n"; # cat 2 #!/usr/bin/perl print "b\tb\t\n"; print "b\tb\t\n"; print "b\tb\t\n"; # perl 1 > 11 # perl 2 > 22 # cat 11 c c # cat 22 b b b b b b # paste 11 22 (5 Replies)
Discussion started by: jimmy_y
5 Replies

3. Shell Programming and Scripting

Text allignment using PERL

Hi Friends, For daily reports i make perl script like below. @dirlist = `cat out.txt |cut -d "|" -f1 >create.txt`; @dirlist1 = `cat out.txt|wc -l *e* >create2.txt`; open FILE, ">OUTPUT.txt"; @command = `cat out.txt |cut -d "|" -f1`; print FILE map{$_-2 ."\n"}@command; @dirlist2 =... (1 Reply)
Discussion started by: adaleru
1 Replies

4. Shell Programming and Scripting

Output allignment

Hi Guys, I hope you are doing good out there. I am facing some issues in the alligment of the output of a shell script. Below is the statement which is formatting the output:echo $File | awk -F '' '{print $13,$15="\t"$16,$4="",$5,$6,$7}' and its output is Domain Log file ... (2 Replies)
Discussion started by: singh.chandan18
2 Replies

5. Shell Programming and Scripting

awk - script help: column to row format of data allignment?

Experts Good day, I have the following data, file1 BRAAGRP1 A2X B2X C2X D2X BRBGRP12 A3X B3X Z10 D09 BRC1GRP2 LO01 (4 Replies)
Discussion started by: rveri
4 Replies

6. Shell Programming and Scripting

Allignment input file

Guys, I have a requirement as below 36%/ 55%/var 82%/tmp 74%/opt now i want the output to be --------------------------------- Disk% Mount --------------------------------- 36% / 55% var 82% tmp 74% opt ---------------------------------------- I have used... (3 Replies)
Discussion started by: AraR87
3 Replies
wcstold(3)						     Library Functions Manual							wcstold(3)

NAME
wcstold - Converts a wide-character string to a long double-precision value LIBRARY
Standard C Library (libc) SYNOPSIS
#include <wchar.h> long double wcstold ( const wchar_t *ws, wchar_t **endptr); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: wcstold(): ISO C Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to the wide-character string to be converted to a long double-precision floating-point value. Points to a pointer in which the wcstold() function stores the position of the final wide-character segment of the string, which contains unrecognized characters and the null terminator. DESCRIPTION
The wcstold() function converts the initial portion of the wide-character string pointed to by the ws parameter to a long double-precision floating-point value. The input wide-character string is first broken down into three parts: an initial (possibly empty) sequence of white- space wide-character codes (as specified by the iswspace() function); a subject sequence interpreted as a floating-point constant; and a final wide-character string of one or more unrecognized wide-character codes, including the terminating null wide character. The subject sequence is then (if possible) converted to a floating-point number and returned as the result of the wcstold() function. The subject sequence is expected to consist of an optional + (plus sign) or - (minus sign), a nonempty sequence of digits (which may con- tain a radix character), and an optional exponent. The exponent consists of e or E, followed by an optional sign, followed by one or more decimal digits. The subject sequence is the longest initial subsequence of the input wide-character string (starting with the first non- white-space wide-character code) that is of the expected form. The subject sequence contains no wide-character codes if the input wide- character string is empty or consists entirely of white-space wide-character codes, or if the first nonwhite-space wide-character code is other than a sign, a digit, or a radix character. If the subject sequence is valid, the sequence of wide-character codes, starting with the first digit or radix character (whichever occurs first), is interpreted as a floating-point or double-precision floating-point constant. The locale's radix character is treated as equiva- lent to the . (period) within floating-point constants in the C locale. If neither an exponent or radix character appears, a radix charac- ter is assumed to follow the last digit in the wide-character string. If the subject sequence begins with - ( a minus sign), the conversion value is negated. The radix character is determined by the LC_NUMERIC category in the program's current locale. In the C locale, or in a locale where the radix character is not defined, the radix character is a . (period). The wcstold() function stores a pointer to the final wide-character segment of the string (starting with the first invalid character) in the object pointed to by the endptr parameter, unless the endptr parameter is a null pointer. RETURN VALUES
The wcstold() function returns the converted value of a long double-precision floating-point value if a valid floating-point constant is found. If the converted value is outside the range of representable values (either too high or too low), the function returns plus or minus HUGE_VAL and sets errno to [ERANGE]. If the converted value would cause underflow, the function returns 0 (zero) and sets errno to [ERANGE]. If the subject sequence is empty or does not have the expected form, the function performs no conversion and returns 0 (zero). In this case, the value specified by the ws parameter is stored in the object pointed to by the endptr parameter, provided that the endptr parameter is not a null pointer. Since the wcstold() function returns 0 (zero) or HUGE_VAL in the event of an error and these values are also valid returns if the wcstold() function is successful, applications should set errno to 0 (zero) before each call to the wcstold() function and check errno after each return from the function. If errno is nonzero after a return, an error occurred. Additionally, if 0 (zero) is returned, applications should check if the endptr parameter equals the nptr parameter. In this case, there was no valid subject string. ERRORS
If the following condition occurs, the wcstold() function sets errno to the corresponding value: The converted value would cause underflow or, if outside the range of representable values, overflow. RELATED INFORMATION
Functions: atof(3), iswspace(3), localeconv(3), scanf(3), setlocale(3), wcstod(3), wcstol(3) Standards: standards(5) delim off wcstold(3)
All times are GMT -4. The time now is 07:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy