Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Hi,
I know, particular value in the variable should always be of lenth 7 , but the value that is present in thevariable might be of any no.of characters less than or equal to 7... if the no.of characters in the variable is less than 7, I want to add, zeroes at the starting of the field.. How can... (3 Replies)
how we can replace char with a string
example
char *a="a.s"
so finally
what i ant to do
raplace a with ant and s sree
so in my array a i want to store the value as "ant.sree"
thank u in advance (1 Reply)
I have a customer who logged some cc and bank account numbers in their apache logs. I got the cc numbers x'd out with
sed -e 's/args=\{16\}/args=XXXXXXXXXXXXXXXX/g' -e 's/cardnum=\{16\}/cardnum=XXXXXXXXXXXXXXXX/g'but that wasn't too difficult due to the value being 16 digits.
The bank account... (7 Replies)
Hi All
I want to take a Hexadecimal number as input and i want to find lenth of the input and pass it to char s ( char s ). I have a program to convert hexadecial to binary but it is taking limited input but i want to return binary number based on input. How? (1 Reply)
I have a string like
Months=jan feb mar april x y ..
Here the number of fields in Months is not definite
I need to extract each field in the Months string and pass it to awk . Don't want to use for in since it is a loop . How can i do it (2 Replies)
Hi All,
I have a file which is like below. I need to read all the patterns that starts with P and then replace the 9 digit values to 8 digit values (remove leading integer). Can you please help
Example : ( Please look below File)
File :
P,1
M1,... (7 Replies)
My sample file is variable length, with out any field delimiters. It has min of 18 chars length and the 'CRLF' is potentially between 12-14 chars. How do I replace this with a space? I still want to keep end of record, but just want to remove these new lines chars in the middle of the data.
... (7 Replies)
Discussion started by: chandrath
7 Replies
LEARN ABOUT SUSE
curl_unescape
curl_unescape(3) libcurl Manual curl_unescape(3)NAME
curl_unescape - URL decodes the given string
SYNOPSIS
#include <curl/curl.h>
char *curl_unescape( char *url, int length );
DESCRIPTION
Obsolete function. Use curl_easy_unescape(3) instead!
This function will convert the given URL encoded input string to a "plain string" and return that as a new allocated string. All input
characters that are URL encoded (%XX where XX is a two-digit hexadecimal number) will be converted to their plain text versions.
If the 'length' argument is set to 0, curl_unescape() will use strlen() on the input 'url' string to find out the size.
You must curl_free() the returned string when you're done with it.
AVAILABILITY
Since 7.15.4, curl_easy_unescape(3) should be used. This function will be removed in a future release.
RETURN VALUE
A pointer to a zero terminated string or NULL if it failed.
SEE ALSO curl_easy_escape(3), curl_easy_unescape(3), curl_free(3), RFC 2396
libcurl 7.7 22 March 2001 curl_unescape(3)