If user chosen to tolower then it should convert file name to lower or vice versa. when file names converted it should put into appropriate subdirectories.
e.g when files converted it then seperate them out with file etension where it will seperate them out . such as file.pdf, phone.doc both... (1 Reply)
Hi, I have a variable $Ctrcd which contains country names in upper case and i want to convert them into lower case. I have tried so many solutions from already existing threads but couldn't get the correct one.
Can anybody help me with this.....
Thanks a lot.. (2 Replies)
Hi
I am working in ksh and need to convert the following line into lower case:
N344 N228 P227 N115 P116 N332 P331 P343 P293 N342 N294 N335 N329 P330 P336 P097 P092 N098 P334 N337 P345 P338 N091 N333
so the output should look like this:
n344 n228 p227 n115 p116 n332 p331 p343 p293 n342... (5 Replies)
I have a package to install and the installation script which does it . The files/directories names in the script are all lower case but the actual package has everything in upper case - file names, directories . I don't want to rename directories and files in the package - it has a lot of them . ... (2 Replies)
Hi All
I have a script which extracts values from a Database (A persons name) and puts it into a variable in my script IE: $NAME
However the Value in the DB is all in uppercase and contains the users first name and last name
EG:
> echo $NAME
GRAHAM BOYLE
>
What I need is only the... (7 Replies)
Hello Unix Gurus :
It would be really appreciative if can find a solution for this .
I have records in a file .
I need to Capitalize the records based on condition .
For Example i tried the following Command
COMMAND -->
fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
There is a script where we pass the parameter in lower case:
say: . ./scriptName pArameter
#!/bin/ksh
echo "`date` Entering $0 Reloading the $1 table "
mname1=$1
(code to login MYSQL Database)
Truncate table $mname1;
exit
!
Since now there is a limitaion of MYSQL that it accept... (5 Replies)
dear all,
i have file input
ABCDE_Asta_Key_Park,COJ050,10.142.3.150
C_BDEFG_City_Lake,C_BIR0,10.135.3.6
C_FDGEBIR_Axaudia,C_ABIR1,10.135.3.34
I want to change lowercase in to uppercase for all strings
output
ABCDE_ASTA_KEY_PARK,COJ050,10.142.3.150
C_BDEFG_CITY_LAKE,C_BIR0,10.135.3.6... (5 Replies)
Hi,
I need to convert the hostname to uppercase and attach it to a string.
eg: $hostname output mymac
Final output should be Production.MYMAC (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT OPENSOLARIS
str
strfind(3GEN) String Pattern-Matching Library Functions strfind(3GEN)NAME
strfind, strrspn, strtrns, str - string manipulations
SYNOPSIS
cc [ flag ... ] file ... -lgen [ library ... ]
#include <libgen.h>
int strfind(const char *as1, const char *as2);
char *strrspn(const char *string, const char *tc);
char * strtrns(const char *string, const char *old, const char *new,
char *result);
DESCRIPTION
The strfind() function returns the offset of the first occurrence of the second string, as2, if it is a substring of string as1. If the
second string is not a substring of the first string strfind() returns -1.
The strrspn() function trims chartacters from a string. It searches from the end of string for the first character that is not contained in
tc. If such a character is found, strrspn() returns a pointer to the next character; otherwise, it returns a pointer to string.
The strtrns() function transforms string and copies it into result. Any character that appears in old is replaced with the character
in the same position in new. The new result is returned.
USAGE
When compiling multithreaded applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in mul-
tithreaded applications.
EXAMPLES
Example 1 An example of the strfind() function.
/* find offset to substring "hello" within as1 */
i = strfind(as1, "hello");
/* trim junk from end of string */
s2 = strrspn(s1, "*?#$%");
*s2 = '