01-14-2002
ls s*
when i try to search files which first character start's with S char.
I giving worng outout why like that.
how to use wildcards in SCOUNIX.
10 More Discussions You Might Find Interesting
1. Programming
Using a makefile I want to compile all .c files in the current directory without specifying them directly and then link their associated .o files into a library.
How do I do this ?
Thanks. (1 Reply)
Discussion started by: rcscott
1 Replies
2. UNIX for Dummies Questions & Answers
Hiya,
I want to list all files missing a certain pattern and/or filename pattern on the entire drive.
In DOS I would type (for instance):
dir \t*.doc /s /a
which should find all doc files whose filename starts with `t'.
How do I do that in a unix shell? Can it be done w/ ls at... (5 Replies)
Discussion started by: ropers
5 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to delete lines from a large text file using VI.
Every line that I am wanting to delete start with 'S' - all others do not. (A list of users)
I've tried using * but doesn't seem to like it...any ideas...
Doesn't have to be VI - but I'm better with VI than sed/awk. (8 Replies)
Discussion started by: peter.herlihy
8 Replies
4. UNIX for Dummies Questions & Answers
when writing a shell script (bourne) and using a unix command like 'ls' is there anything special you need to do to use a wildcard (like *)? (3 Replies)
Discussion started by: benu302000
3 Replies
5. UNIX for Dummies Questions & Answers
ok, I'm trying to write a script file that lists files with specific elements in the name into a txt file, it looks like this
ls s*.dat > file_names.txt
can't figure out whats wrong with that line, any ideas?
thanks in advance (10 Replies)
Discussion started by: benu302000
10 Replies
6. UNIX for Dummies Questions & Answers
Hi All
Please excuse another straightforward question. When creating a tar archive from a directory I am attempting to use wildcards to eliminate certain filetypes (otherwise the archive gets too large). So I am looking for something along these lines.
tar -cf archive.tar * <minus all *.rst... (5 Replies)
Discussion started by: C3000
5 Replies
7. UNIX for Dummies Questions & Answers
Is there some rule about using wildcards in path? Say I want to create a file, but one of the directories in the path is called 1433d.default and on different machines it will be called <some other string>.default
touch ~/Library/Application/*.default/myfile
In theory I thought that... (5 Replies)
Discussion started by: glev2005
5 Replies
8. UNIX for Advanced & Expert Users
These 2 websites do a GREAT job of explaining different types of wildcards. I learned about the categories of characters which I never knew about at all.
GNU/Linux Command-Line Tools Guide - Wildcards
GREP (1 Reply)
Discussion started by: cokedude
1 Replies
9. Shell Programming and Scripting
Hello:
I have a very basic question. I'd like to select all files except for one file. For example, say I want to move all of the files in my current directory to a subdirectory called archive, I would use mv ./* archive/ But what if I want to move all files except for README.txt? Is there an... (19 Replies)
Discussion started by: Danny.Boy
19 Replies
10. UNIX for Dummies Questions & Answers
Hi, I'm new to Unix, but have a directory which has many files in it, well over 1000. The files are called :
M07GO.STOPE0001
M07GO.STOPE0002
M07GO.STOPE0003
M07GO.STOPE0004
etc...
I would like to rename them to the following :
M070001.bin
M070002.bin
M070003.bin
M070004.bin
etc....... (4 Replies)
Discussion started by: rnmuk
4 Replies
LEARN ABOUT OSF1
xmtextfindstringwcs
XmTextFindStringWcs(3X) XmTextFindStringWcs(3X)
NAME
XmTextFindStringWcs - A Text function that finds the beginning position of a wide character text string
SYNOPSIS
#include <Xm/Text.h>
Boolean XmTextFindStringWcs (widget, start, wcstring, direction, position)
Widget widget;
XmTextPosition start;
wchar_t *wcstring;
XmTextDirection direction;
XmTextPosition *position;
DESCRIPTION
XmTextFindStringWcs locates the beginning position of a specified wide character text string. This routine searches forward or backward
for the first occurrence of the string, starting from the given start position. If a match is found, the function returns the position of
the first character of the string in position. Specifies the Text widget ID. Specifies the character position from which the search pro-
ceeds. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the
wide character search string. Indicates the search direction. It is relative to the primary direction of the text. The possible values
are: The search proceeds toward the end of the buffer. The search proceeds toward the beginning of the buffer. Specifies the pointer in
which the first character position of the string match is returned. This is an integer number of characters from the beginning of the buf-
fer. The first character position is 0. If the function returns False, this value is undefined.
For a complete definition of Text and its associated resources, see XmText(3X).
RETURN VALUE
Returns True if a string match is found; otherwise, returns False.
SEE ALSO
XmText(3X), XmTextFindString(3X)
XmTextFindStringWcs(3X)