09-02-2018
Hello MadeInGermany,
I read that question mark is used for reverse direction search but I have no more idea.
I just searched on multiple boards with "multiple string search" keyword for this but no luck.
Kind regards
Boris
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
2. UNIX for Dummies Questions & Answers
I have 70 files and want to replace string1 with string2. How can i do that?.
Thanks (4 Replies)
Discussion started by: shashikandi
4 Replies
3. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
4. Shell Programming and Scripting
Hello All...
I have a text file (.ics) which I need to read into a variable but ONLY the part including and after 'BEGIN:VEVENT' and ending with END:VEVENT
Anything before BEGIN:VEVENT or after END:VEVENT should be ignored.
Thanks for input
Jeff
BEGIN:VCALENDAR
VERSION:2.0... (3 Replies)
Discussion started by: uptimejeff
3 Replies
5. Shell Programming and Scripting
How do I use awk to find the records in a file that contains two specific strings?
I have tried piping and using awk two times, but I don't know how to do it in one action. (2 Replies)
Discussion started by: locoroco
2 Replies
6. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
7. UNIX for Beginners Questions & Answers
My OS is Windows 10 and I am using Cygwin.
The file 1 content is:
USE solution 2; -4.000
USE solution 3; -4.000
…
USE solution 29; -4.000
USE solution 30; -4.000
USE solution 31; -4.000
….
USE solution 89; -4.000
...
USE solution 202; -4.000
etc...
I need to replace... (8 Replies)
Discussion started by: supernono06
8 Replies
8. Shell Programming and Scripting
Hello,
My aim is to search string1 in all lines. When found, find and replace string2 by string3 if possible.
TextFile:
Here is my first line
Second line with string1 & string2
Not last line but it contains string1
Expected output:
Here is my first line
The second line with string1 &... (6 Replies)
Discussion started by: baris35
6 Replies
9. UNIX for Beginners Questions & Answers
I found this in the forum that searches a file for string1, substitute all occurrences of string2 with string3.
(Title: Replace string2 by string3 where string1 is found in line)
>> sed -i '/string1/s/string2/string3/g' TextFile
How will I perform the same sed command and only substitute... (3 Replies)
Discussion started by: apalex
3 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)