I am trying to replace the word ACTIVE with 2002 in a file and I am getting the following error. Does anyone know what this means?
$ sed "s/ACTIVE/2002" mydata.txt > yourdata.txt
sed: 0602-404 Function s/ACTIVE/2002 cannot be parsed. (5 Replies)
Hi all,
When in 'less' or '-' or whatever your alias is, if you search for a string, you get all of it's occurences highlighted. Is there any option I can set in VI, .exrc or whtever, to have the same behaviour in VI?
thanks (2 Replies)
Hi experts..
I am trying to write a shell script which will scan a log file for three strings ie success image1, success image2, success image3.
My shell is tcsh
If all the 3 strings are found then insert the 3 strings to a file1 and send mail to developers with file1
If all 3 are note... (0 Replies)
Hi,
i have a file a.txt like
--------------------------------
col1|col2|col3
data1|data2|data3
other1|other2|other3
--------------------------------
i need to search 2 strings(data in a.txt file is case sesnsitive), suppose data1 and data2. If these 2 strings found then only i need... (2 Replies)
I have a need to search for files containing 2 strings as in (AND operator). No one at my site seems to know if it is possible. There is only documentation for the "or' operator.
I know I can do a search, copy all the matched files into a temp directory & do the second search in the temp... (14 Replies)
Hi All,
Could you help me to get the command to search two different strings in a file using vi as editor.
I know that we use /StringToSearch for searching a string, but i want a command to search two strings.
Eg.
In FileOne i want to search the occurence of StringOne or StringTwo at a time.... (6 Replies)
Guys any pointers on how to search between 2 sets date strings with time in the below file example :-
02-Feb-2010 23:12:09 GMT event_type::event_details_are_like_this
02-Feb-2010 09:10:29 GMT event_type::event_details_are_like_this
03-Feb-2010 11:12:19 GMT... (3 Replies)
Based on the forums i have tried with grep command but i am unable to get the required output.
search this value /*------
If that is found then search for temp_vul and print
and also search until /*------- and print new_vul
Input file contains:
... (5 Replies)
Hi,
Is there a command to do a sensitive/in-sensitive search for a string on a line and print how many times that string appears?
For example, if I have a line of text below:
dog cat rat apple banana dog lion tiger dog
Is there a command to search for dog that will print out 3 as a... (7 Replies)
I have written a script which will search logfiles directory particular two strings and send a message to user to kill the process id if string found every 15 minutes
Note::dont have cron tab access(Auto run every 15 minute)
oS--AIX
Please add script search the PID into logfile "My PID is:... (5 Replies)
Discussion started by: sri1999
5 Replies
LEARN ABOUT DEBIAN
filter-mouse
filter-mouse(7) GGI filter-mouse(7)NAME
filter-mouse - Generic mouse event translator
SYNOPSIS
filter-mouse: [<file>]
DESCRIPTION
This filter translates mouse events according to a set of translation rules.
OPTIONS
file The name of the configuration file. If none given, the filter will first look for the file filter/mouse in the user GGI directory
($HOME/.ggi/ on UNIX), then in the base GGI directory if not found.
CONFIGURATION
The translation rules are specified through a simple text file. The following example gives a good idea of the mouse filter usage. A #
marks the rest of the line as a comment.
EXAMPLE
A set of mouse translation rules:
# Syntax is:
# incoming-type [type-specifics] TO outgoing type [type-specifics]
#
# Simulated mouse buttons on the keyboard
#
#KEY modmask modvalue button label symbol TO BUT buttonnumber
KEY 0x0004 0x0004 0xffff 0x000d 0xffff TO BUT 1 # Alt-Enter
KEY 0x0004 0x0004 0xffff 0x0020 0xffff TO BUT 2 # Alt-Space
KEY 0x0004 0x0004 0xffff 0x0008 0xffff TO BUT 3 # Alt-BackSpace
#
# Keyboard-Mouse on the Cursors
#
#KEY modmask modval button label symbol TO REL axis value
KEY 0x0004 0x0004 0xffff 0xe034 0xffff TO REL X -5 # Alt-Left
KEY 0x0004 0x0004 0xffff 0xe035 0xffff TO REL X 5 # Alt-Right
KEY 0x0004 0x0004 0xffff 0xe032 0xffff TO REL Y -5 # Alt-Up
KEY 0x0004 0x0004 0xffff 0xe033 0xffff TO REL Y 5 # Alt-Down
#
# Keyboard mouse on the Numpad
#
KEY 0x0004 0x0004 0xffff 0xe231 0xffff TO REL X -5 # Alt-Num1
KEY 0x0004 0x0004 0xffff 0xe231 0xffff TO REL Y 5 # Alt-Num1
KEY 0x0004 0x0004 0xffff 0xe232 0xffff TO REL Y 5 # Alt-Num2
KEY 0x0004 0x0004 0xffff 0xe233 0xffff TO REL X 5 # Alt-Num3
KEY 0x0004 0x0004 0xffff 0xe233 0xffff TO REL Y 5 # Alt-Num3
KEY 0x0004 0x0004 0xffff 0xe234 0xffff TO REL X -5 # Alt-Num4
KEY 0x0004 0x0004 0xffff 0xe235 0xffff TO BUT 1 # Alt-Num5 - Button
KEY 0x0004 0x0004 0xffff 0xe236 0xffff TO REL X 5 # Alt-Num6
KEY 0x0004 0x0004 0xffff 0xe237 0xffff TO REL X -5 # Alt-Num7
KEY 0x0004 0x0004 0xffff 0xe237 0xffff TO REL Y -5 # Alt-Num7
KEY 0x0004 0x0004 0xffff 0xe238 0xffff TO REL Y -5 # Alt-Num8
KEY 0x0004 0x0004 0xffff 0xe239 0xffff TO REL X 5 # Alt-Num9
KEY 0x0004 0x0004 0xffff 0xe239 0xffff TO REL Y -5 # Alt-Num9
#
# Home the cursor ...
#
KEY 0x0004 0x0004 0xffff 0xE038 0xffff TO ABS X 0 # Alt-Home
KEY 0x0004 0x0004 0xffff 0xE038 0xffff TO ABS Y 0 # Alt-Home
#
# Invert mouse axis
#
#REL modmsk modval axis TO REL axis multiplier
REL 0x0004 0x0004 X TO REL Y -1
REL 0x0004 0x0004 Y TO REL X -1
#
# Accelerate mouse
#
# multiplier treshold higher-speed
REL 0x0004 0x0004 X TO REL X 1 5 4
REL 0x0004 0x0004 Y TO REL Y 1 5 4
#
#
# Invert mouse buttons
BUT 0x0004 0x0004 1 TO BUT 2
BUT 0x0004 0x0004 2 TO BUT 1
libgii-1.0.x 2003-08-11 filter-mouse(7)