Sponsored Content
Full Discussion: CHMOD DOS Filenames
Top Forums UNIX for Dummies Questions & Answers CHMOD DOS Filenames Post 302253851 by Perderabo on Sunday 2nd of November 2008 10:13:04 PM
Old 11-02-2008
chmod 777 "Bill Gates"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CHMOD Help!!

Ok, listen.........I was using FTP Works to remove and add some files to a domain server. I messed with chmod button and made it so that no-one could access or their browsers could execute files and 2 or three certain directories. If anyone knows how to use this command and will give me a heads up... (2 Replies)
Discussion started by: jarrell
2 Replies

2. UNIX for Dummies Questions & Answers

Chmod Help!

Here is the deal, I am good with html and java and am creating a website for my brother. On this site he has chosen to use a ikonboard.com discussion board. I have done everything I can to pull it off, but no can do. Here is the problem: The site is being created using the angelfire... (12 Replies)
Discussion started by: xwfprez
12 Replies

3. UNIX for Dummies Questions & Answers

chmod

Hi, can anybody help me? i have probable a simple problem about permissions. i have a server and on this server there comes some files from a another server via ftp with a separte user. i would like to modify the files with a awk script but i donīt have the permissions to modify the... (3 Replies)
Discussion started by: scotty
3 Replies

4. UNIX for Dummies Questions & Answers

chmod...

Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing. At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
Discussion started by: mo0ness
3 Replies

5. UNIX for Dummies Questions & Answers

Chmod +ftp

Is there a wayto chmod via ftp for my webpage and change all files and folders from one point down? There is way too many files and folders in this to do one at a time. Thanks! (3 Replies)
Discussion started by: stormiee
3 Replies

6. UNIX for Dummies Questions & Answers

CHMOD query

Hi peeps, I'm new here, so I hope I'm posting in the right place... If I'm in a particular directory and I run the command 'CHMOD * 777' (or the other way around- I can't remember), am I right in saying it will only change the permissions of all the immediate files and directories and not... (1 Reply)
Discussion started by: jsp_1983
1 Replies

7. Shell Programming and Scripting

Unprintable filenames and automating a chmod

I have a fair amount of files in multiple directoroes that need to have an attribute modified, so a script is in order. Initially it seemed like creating a script with a find and then pipe it to xargs chmod would do the trick. Enter into the equation non-printable filenames... ugh... Has anyone... (2 Replies)
Discussion started by: jpport123
2 Replies

8. Linux

dos-path / un-dos-path compatibility with cygwin

Hello ; I have a problem running some script on dos . when i run : C: ls /temp ls: cannot access /temp: No such file or directory but when i run C: ls \temp windriver backup remotebackup also when i run C: ls temp windriver backup remotebackup The... (4 Replies)
Discussion started by: mulder20
4 Replies

9. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

10. UNIX for Dummies Questions & Answers

chmod

Hi I tried to use chmod in unix to change my file's permission. chmod 701 hello.cgi And it did change my desired file's permission. Yet, the name of the file is changed to hello.cgi* . And therefore I cannot compile it after that. So, I just wondering why there is an extra '*' in the file's... (2 Replies)
Discussion started by: alvin8906
2 Replies
QStringList(3qt)														  QStringList(3qt)

NAME
QStringList - List of strings SYNOPSIS
All the functions in this class are reentrant when Qt is built with thread support.</p> #include <qstringlist.h> Inherits QValueList<QString>. Public Members QStringList () QStringList ( const QStringList & l ) QStringList ( const QValueList<QString> & l ) QStringList ( const QString & i ) QStringList ( const char * i ) void sort () QString join ( const QString & sep ) const QStringList grep ( const QString & str, bool cs = TRUE ) const QStringList grep ( const QRegExp & rx ) const QStringList & gres ( const QString & before, const QString & after, bool cs = TRUE ) QStringList & gres ( const QRegExp & rx, const QString & after ) Static Public Members QStringList fromStrList ( const QStrList & ascii ) QStringList split ( const QString & sep, const QString & str, bool allowEmptyEntries = FALSE ) QStringList split ( const QChar & sep, const QString & str, bool allowEmptyEntries = FALSE ) QStringList split ( const QRegExp & sep, const QString & str, bool allowEmptyEntries = FALSE ) DESCRIPTION
The QStringList class provides a list of strings. It is used to store and manipulate strings that logically belong together. Essentially QStringList is a QValueList of QString objects. Unlike QStrList, which stores pointers to characters, QStringList holds real QString objects. It is the class of choice whenever you work with Unicode strings. QStringList is part of the Qt Template Library. Like QString itself, QStringList objects are implicitly shared, so passing them around as value-parameters is both fast and safe. Strings can be added to a list using append(), operator+=() or operator<<(), e.g. QStringList fonts; fonts.append( "Times" ); fonts += "Courier"; fonts += "Courier New"; fonts << "Helvetica [Cronyx]" << "Helvetica [Adobe]"; String lists have an iterator, QStringList::Iterator(), e.g. for ( QStringList::Iterator it = fonts.begin(); it != fonts.end(); ++it ) { cout << *it << ":"; } cout << endl; // Output: // Times:Courier:Courier New:Helvetica [Cronyx]:Helvetica [Adobe]: Many Qt functions return string lists by value; to iterate over these you should make a copy and iterate over the copy. You can concatenate all the strings in a string list into a single string (with an optional separator) using join(), e.g. QString allFonts = fonts.join( ", " ); cout << allFonts << endl; // Output: // Times, Courier, Courier New, Helvetica [Cronyx], Helvetica [Adobe] You can sort the list with sort(), and extract a new list which contains only those strings which contain a particular substring (or match a particular regular expression) using the grep() functions, e.g. fonts.sort(); cout << fonts.join( ", " ) << endl; // Output: // Courier, Courier New, Helvetica [Adobe], Helvetica [Cronyx], Times QStringList helveticas = fonts.grep( "Helvetica" ); cout << helveticas.join( ", " ) << endl; // Output: // Helvetica [Adobe], Helvetica [Cronyx] Existing strings can be split into string lists with character, string or regular expression separators, e.g. QString s = "Red Green Blue"; QStringList colors = QStringList::split( " ", s ); cout << colors.join( ", " ) << endl; // Output: // Red, Green, Blue See also Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes. MEMBER FUNCTION DOCUMENTATION
QStringList::QStringList () Creates an empty string list. QStringList::QStringList ( const QStringList & l ) Creates a copy of the list l. This function is very fast because QStringList is implicitly shared. In most situations this acts like a deep copy, for example, if this list or the original one or some other list referencing the same shared data is modified, the modifying list first makes a copy, i.e. copy-on-write. In a threaded environment you may require a real deep copy QStringList::QStringList ( const QValueList<QString> & l ) Constructs a new string list that is a copy of l. QStringList::QStringList ( const QString & i ) Constructs a string list consisting of the single string i. Longer lists are easily created as follows: QStringList items; items << "Buy" << "Sell" << "Update" << "Value"; QStringList::QStringList ( const char * i ) Constructs a string list consisting of the single Latin-1 string i. QStringList QStringList::fromStrList ( const QStrList & ascii ) [static] Converts from an ASCII-QStrList ascii to a QStringList (Unicode). QStringList QStringList::grep ( const QString & str, bool cs = TRUE ) const Returns a list of all the strings containing the substring str. If cs is TRUE, the grep is done case-sensitively; otherwise case is ignored. QStringList list; list << "Bill Gates" << "John Doe" << "Bill Clinton"; list = list.grep( "Bill" ); // list == ["Bill Gates", "Bill Clinton"] See also QString::find(). QStringList QStringList::grep ( const QRegExp & rx ) const This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Returns a list of all the strings that match the regular expression rx. See also QString::find(). QStringList &; QStringList::gres ( const QString & before, const QString & after, bool cs = TRUE ) Replaces every occurrence of the string before in the strings that constitute the string list with the string after. Returns a reference to the string list. If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive. Example: QStringList list; list << "alpha" << "beta" << "gamma" << "epsilon"; list.gres( "a", "o" ); // list == ["olpho", "beto", "gommo", "epsilon"] See also QString::replace(). QStringList &; QStringList::gres ( const QRegExp & rx, const QString & after ) This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Replaces every occurrence of the regexp rx in the string with after. Returns a reference to the string list. Example: QStringList list; list << "alpha" << "beta" << "gamma" << "epsilon"; list.gres( QRegExp("^a"), "o" ); // list == ["olpha", "beta", "gamma", "epsilon"] For regexps containing capturing parentheses, occurrences of &#92;1, &#92;2, ..., in after are replaced with rx.cap(1), cap(2), ... Example: QStringList list; list << "Bill Clinton" << "Gates, Bill"; list.gres( QRegExp("^(.*), (.*)$"), "\2 \1" ); // list == ["Bill Clinton", "Bill Gates"] See also QString::replace(). QString QStringList::join ( const QString & sep ) const Joins the string list into a single string with each element separated by the string sep (which can be empty). See also split(). Examples: void QStringList::sort () Sorts the list of strings in ascending case-sensitive order. Sorting is very fast. It uses the Qt Template Library's efficient HeapSort implementation that has a time complexity of O(n*log n). If you want to sort your strings in an arbitrary order consider using a QMap. For example you could use a QMap<QString,QString> to create a case-insensitive ordering (e.g. mapping the lowercase text to the text), or a QMap<int,QString> to sort the strings by some integer index, etc. Example: themes/themes.cpp. QStringList QStringList::split ( const QRegExp & sep, const QString & str, bool allowEmptyEntries = FALSE ) [static] Splits the string str into strings wherever the regular expression sep occurs, and returns the list of those strings. If allowEmptyEntries is TRUE, a null string is inserted in the list wherever the separator matches twice without intervening text. For example, if you split the string "a,,b,c" on commas, split() returns the three-item list "a", "b", "c" if allowEmptyEntries is FALSE (the default), and the four-item list "a", "", "b", "c" if allowEmptyEntries is TRUE. If sep does not match anywhere in str, split() returns a single element list with the element containing the single string str. See also join() and QString::section(). Examples: QStringList QStringList::split ( const QString & sep, const QString & str, bool allowEmptyEntries = FALSE ) [static] This is an overloaded member function, provided for convenience. It behaves essentially like the above function. This version of the function uses a QString as separator, rather than a regular expression. If sep is an empty string, the return value is a list of one-character strings: split( QString( "" ), "four" ) returns the four-item list, "f", "o", "u", "r". If allowEmptyEntries is TRUE, a null string is inserted in the list wherever the separator matches twice without intervening text. See also join() and QString::section(). QStringList QStringList::split ( const QChar & sep, const QString & str, bool allowEmptyEntries = FALSE ) [static] This is an overloaded member function, provided for convenience. It behaves essentially like the above function. This version of the function uses a QChar as separator, rather than a regular expression. See also join() and QString::section(). SEE ALSO
http://doc.trolltech.com/qstringlist.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qstringlist.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QStringList(3qt)
All times are GMT -4. The time now is 08:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy