Hi,
I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?
Thanks for your help. (1 Reply)
How to check whether a particular string contains dot or not?
Here I can not use grep as the string is not in a file. I will get this string from user input
Thanks, (2 Replies)
Is there a way to cnvert first letter alone in a string to upper case.
For eg: diamond should be converted to Diamond.
Thanks in Advance,
Kinny (6 Replies)
Example - Script to find the index of a month from array
MONTHS="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"
set -A MON $MONTHS
A="Sun May 23 09:34:30 GMT 2010"
getMonth=`echo $A|cut -c5-7` ##getMonth=May
Arrayindex_in_MONTHS_array= ???? # { 0,1,2,3,4 } - at fifth place
... (7 Replies)
I have an array XOFFS of size N. I have VDISTMIN and VDISTMAX.
I want to find the beginning and and index in XOFFS such that values are within
Example
Let XOFFS = (10 20 30 40 50)
If VDISTMIN = -20 and VDISTMAX = 20
Then ISTR = 1 and IEND = 2 as XOFFS through XOFFS fall within the... (2 Replies)
I made menu script for users so they can run other script without going in shell just from menu.
But i must control their input.
These are criteria:
Input must have 4 signs
First two signs are always lower case letters
Input shall not have some special signs just letters and numbers
... (1 Reply)
Is there a way to change each letter of a string to the next one in the alphabet, so that a becomes b and f becomes g, and digits become one unit bigger - 4 becomes 5 and 9 becomes 0.
I want to change strings like ben123 to cfo234. (5 Replies)
Write a program which asks user to enter a string and that string saves in a .txt file. After the file has been saved your program must count how many time letter 'a' has been reapeated ?
Use fstream, string, and cctype libraries to make your jobe easier.
I wrote following code
#include... (1 Reply)
Discussion started by: solaris_user
1 Replies
LEARN ABOUT CENTOS
zip_get_name
ZIP_GET_NAME(3) Library Functions Manual ZIP_GET_NAME(3)NAME
zip_get_name - get name of file by index
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
const char * zip_get_name(struct zip *archive, int index, int flags);
DESCRIPTION
The zip_get_name function returns the name of the file at position index in archive. If flags is set to ZIP_FL_UNCHANGED, the original
unchanged filename is returned. The returned string must not be modified or freed, and becomes invalid when archive is closed.
RETURN VALUES
Upon successful completion, a pointer to the name is returned. Otherwise, NULL and the error code in archive is set to indicate the error.
ERRORS
zip_get_name fails if:
[ZIP_ER_DELETED]
index refers to a file that has been deleted (see zip_delete(3) ).
[ZIP_ER_INVAL]
index is not a valid file index in archive, or index points to an added file and ZIP_FL_UNCHANGED is set.
SEE ALSO libzip(3), zip_name_locate(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH January 20, 2005 ZIP_GET_NAME(3)