How to concatenate two command in shellWhat's the difference between <<, <<< and < < in bash?Print out the amount of times 2 words appear in the syslog. But also have it tell me how many times for each hourremove file with -h_some_file_name in shellPutty SSH client command history?How do I access my Bash History?Concatenate two pathsShow other command line prompt in Midnight Commander (mc)How to restore sudo command after its having too many level of symlinkssearching for specialized patterns using grep in a json fileHow can I create a script file that opens and executes a command upon double-clicking?Measuring execution time of a command in milliseconds
How could a female member of a species produce eggs unto death?
Best approach to update all entries in a list that is paginated?
Do f-stop and exposure time perfectly cancel?
Counter-example to the existence of left Bousfield localization of combinatorial model category
Decoding assembly instructions in a Game Boy disassembler
What to do when during a meeting client people start to fight (even physically) with each others?
Touchscreen-controlled dentist office snowman collector game
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
What is the dot in “1.2.4."
Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?
When were linguistics departments first established
Deleting missing values from a dataset
Can the druid cantrip Thorn Whip really defeat a water weird this easily?
My story is written in English, but is set in my home country. What language should I use for the dialogue?
Humans have energy, but not water. What happens?
How is the Swiss post e-voting system supposed to work, and how was it wrong?
My adviser wants to be the first author
Single word request: Harming the benefactor
Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?
Why must traveling waves have the same amplitude to form a standing wave?
What exactly is the purpose of connection links straped between the rocket and the launch pad
How can I discourage/prevent PCs from using door choke-points?
Ban on all campaign finance?
If the Captain's screens are out, does he switch seats with the co-pilot?
How to concatenate two command in shell
What's the difference between <<, <<< and < < in bash?Print out the amount of times 2 words appear in the syslog. But also have it tell me how many times for each hourremove file with -h_some_file_name in shellPutty SSH client command history?How do I access my Bash History?Concatenate two pathsShow other command line prompt in Midnight Commander (mc)How to restore sudo command after its having too many level of symlinkssearching for specialized patterns using grep in a json fileHow can I create a script file that opens and executes a command upon double-clicking?Measuring execution time of a command in milliseconds
I used to have this command to count how many times I have click with a mouse, the command is xev | grep "ButtonPress"
.
my colleague modify the command so that it return:
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
and so on... Unfortunately he's no longer contactable so I can't reach him anymore.
I recall the involvement of i++
and something like that, how to reproduce the command?
command-line bash scripts dash-shell
New contributor
add a comment |
I used to have this command to count how many times I have click with a mouse, the command is xev | grep "ButtonPress"
.
my colleague modify the command so that it return:
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
and so on... Unfortunately he's no longer contactable so I can't reach him anymore.
I recall the involvement of i++
and something like that, how to reproduce the command?
command-line bash scripts dash-shell
New contributor
Do you meanxev | grep -c "ButtonPress"
, showing the number of clicks on exit?
– dessert
Mar 7 at 9:41
It showsButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...
– Jackie Nelson
Mar 7 at 9:47
dessert, your command worked but it only return the number when I exitxev
. How to make it return live value ?
– Jackie Nelson
Mar 7 at 9:54
add a comment |
I used to have this command to count how many times I have click with a mouse, the command is xev | grep "ButtonPress"
.
my colleague modify the command so that it return:
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
and so on... Unfortunately he's no longer contactable so I can't reach him anymore.
I recall the involvement of i++
and something like that, how to reproduce the command?
command-line bash scripts dash-shell
New contributor
I used to have this command to count how many times I have click with a mouse, the command is xev | grep "ButtonPress"
.
my colleague modify the command so that it return:
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
and so on... Unfortunately he's no longer contactable so I can't reach him anymore.
I recall the involvement of i++
and something like that, how to reproduce the command?
command-line bash scripts dash-shell
command-line bash scripts dash-shell
New contributor
New contributor
New contributor
asked Mar 7 at 9:33
Jackie NelsonJackie Nelson
384
384
New contributor
New contributor
Do you meanxev | grep -c "ButtonPress"
, showing the number of clicks on exit?
– dessert
Mar 7 at 9:41
It showsButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...
– Jackie Nelson
Mar 7 at 9:47
dessert, your command worked but it only return the number when I exitxev
. How to make it return live value ?
– Jackie Nelson
Mar 7 at 9:54
add a comment |
Do you meanxev | grep -c "ButtonPress"
, showing the number of clicks on exit?
– dessert
Mar 7 at 9:41
It showsButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...
– Jackie Nelson
Mar 7 at 9:47
dessert, your command worked but it only return the number when I exitxev
. How to make it return live value ?
– Jackie Nelson
Mar 7 at 9:54
Do you mean
xev | grep -c "ButtonPress"
, showing the number of clicks on exit?– dessert
Mar 7 at 9:41
Do you mean
xev | grep -c "ButtonPress"
, showing the number of clicks on exit?– dessert
Mar 7 at 9:41
It shows
ButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...– Jackie Nelson
Mar 7 at 9:47
It shows
ButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...– Jackie Nelson
Mar 7 at 9:47
dessert, your command worked but it only return the number when I exit
xev
. How to make it return live value ?– Jackie Nelson
Mar 7 at 9:54
dessert, your command worked but it only return the number when I exit
xev
. How to make it return live value ?– Jackie Nelson
Mar 7 at 9:54
add a comment |
1 Answer
1
active
oldest
votes
The fact that there's i++
suggests there was either bash
or ksh
shell in use,potentially awk
or perl
as well. In either case, we can use process substitution <(...)
to feed output of xev
to counting loop (although simple pipeline xev | while...
could work just fine).
text processing tools:
Portably and for fewer key strokes we can use awk
:
$ xev | awk '/ButtonPress/print "ButtonPress",i++'
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
perl
version:
$ xev | perl -ne '/ButtonPress/ && printf("ButtonPress:%dn",++$i)'
ButtonPress:1
ButtonPress:2
ButtonPress:3
Shells:
Here's what works in bash
:
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf 'ButtonPress: %dn' "$i"; ;done < <(xev)
ButtonPress: 1
ButtonPress: 2
ButtonPress: 3
In case you don't want spammy output of many lines, we can use printf
to send control code to clear previous line and output only the running count (that is you'd only see integer value change on the line):
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf "r%b" "33[2K"; printf 'ButtonPress: %d' "$i"; ;done < <(xev)
Portably in POSIX shell:
$ xev | ( i=0; while IFS= read -r l; do case "$l" in *ButtonPress*) i=$((i+1)) && printf 'ButtonPress:%dn' "$i";; esac ;done)
ButtonPress:1
ButtonPress:2
ButtonPress:3
basic utils:
For simple, quick, and dirty way we can hack this via cat -n
with line count being printed on the left instead of right:
$ xev | grep --line-buffered 'ButtonPress' | cat -n
1 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
2 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
3 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to anotherawk
version in use. Recent Ubuntu usesgawk
and before 16.04 default wasmawk
IIRC. Regardless, glad I could help :)
– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one onperl
version ? Not zero
– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
|
show 3 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Jackie Nelson is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123723%2fhow-to-concatenate-two-command-in-shell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The fact that there's i++
suggests there was either bash
or ksh
shell in use,potentially awk
or perl
as well. In either case, we can use process substitution <(...)
to feed output of xev
to counting loop (although simple pipeline xev | while...
could work just fine).
text processing tools:
Portably and for fewer key strokes we can use awk
:
$ xev | awk '/ButtonPress/print "ButtonPress",i++'
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
perl
version:
$ xev | perl -ne '/ButtonPress/ && printf("ButtonPress:%dn",++$i)'
ButtonPress:1
ButtonPress:2
ButtonPress:3
Shells:
Here's what works in bash
:
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf 'ButtonPress: %dn' "$i"; ;done < <(xev)
ButtonPress: 1
ButtonPress: 2
ButtonPress: 3
In case you don't want spammy output of many lines, we can use printf
to send control code to clear previous line and output only the running count (that is you'd only see integer value change on the line):
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf "r%b" "33[2K"; printf 'ButtonPress: %d' "$i"; ;done < <(xev)
Portably in POSIX shell:
$ xev | ( i=0; while IFS= read -r l; do case "$l" in *ButtonPress*) i=$((i+1)) && printf 'ButtonPress:%dn' "$i";; esac ;done)
ButtonPress:1
ButtonPress:2
ButtonPress:3
basic utils:
For simple, quick, and dirty way we can hack this via cat -n
with line count being printed on the left instead of right:
$ xev | grep --line-buffered 'ButtonPress' | cat -n
1 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
2 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
3 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to anotherawk
version in use. Recent Ubuntu usesgawk
and before 16.04 default wasmawk
IIRC. Regardless, glad I could help :)
– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one onperl
version ? Not zero
– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
|
show 3 more comments
The fact that there's i++
suggests there was either bash
or ksh
shell in use,potentially awk
or perl
as well. In either case, we can use process substitution <(...)
to feed output of xev
to counting loop (although simple pipeline xev | while...
could work just fine).
text processing tools:
Portably and for fewer key strokes we can use awk
:
$ xev | awk '/ButtonPress/print "ButtonPress",i++'
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
perl
version:
$ xev | perl -ne '/ButtonPress/ && printf("ButtonPress:%dn",++$i)'
ButtonPress:1
ButtonPress:2
ButtonPress:3
Shells:
Here's what works in bash
:
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf 'ButtonPress: %dn' "$i"; ;done < <(xev)
ButtonPress: 1
ButtonPress: 2
ButtonPress: 3
In case you don't want spammy output of many lines, we can use printf
to send control code to clear previous line and output only the running count (that is you'd only see integer value change on the line):
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf "r%b" "33[2K"; printf 'ButtonPress: %d' "$i"; ;done < <(xev)
Portably in POSIX shell:
$ xev | ( i=0; while IFS= read -r l; do case "$l" in *ButtonPress*) i=$((i+1)) && printf 'ButtonPress:%dn' "$i";; esac ;done)
ButtonPress:1
ButtonPress:2
ButtonPress:3
basic utils:
For simple, quick, and dirty way we can hack this via cat -n
with line count being printed on the left instead of right:
$ xev | grep --line-buffered 'ButtonPress' | cat -n
1 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
2 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
3 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to anotherawk
version in use. Recent Ubuntu usesgawk
and before 16.04 default wasmawk
IIRC. Regardless, glad I could help :)
– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one onperl
version ? Not zero
– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
|
show 3 more comments
The fact that there's i++
suggests there was either bash
or ksh
shell in use,potentially awk
or perl
as well. In either case, we can use process substitution <(...)
to feed output of xev
to counting loop (although simple pipeline xev | while...
could work just fine).
text processing tools:
Portably and for fewer key strokes we can use awk
:
$ xev | awk '/ButtonPress/print "ButtonPress",i++'
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
perl
version:
$ xev | perl -ne '/ButtonPress/ && printf("ButtonPress:%dn",++$i)'
ButtonPress:1
ButtonPress:2
ButtonPress:3
Shells:
Here's what works in bash
:
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf 'ButtonPress: %dn' "$i"; ;done < <(xev)
ButtonPress: 1
ButtonPress: 2
ButtonPress: 3
In case you don't want spammy output of many lines, we can use printf
to send control code to clear previous line and output only the running count (that is you'd only see integer value change on the line):
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf "r%b" "33[2K"; printf 'ButtonPress: %d' "$i"; ;done < <(xev)
Portably in POSIX shell:
$ xev | ( i=0; while IFS= read -r l; do case "$l" in *ButtonPress*) i=$((i+1)) && printf 'ButtonPress:%dn' "$i";; esac ;done)
ButtonPress:1
ButtonPress:2
ButtonPress:3
basic utils:
For simple, quick, and dirty way we can hack this via cat -n
with line count being printed on the left instead of right:
$ xev | grep --line-buffered 'ButtonPress' | cat -n
1 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
2 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
3 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
The fact that there's i++
suggests there was either bash
or ksh
shell in use,potentially awk
or perl
as well. In either case, we can use process substitution <(...)
to feed output of xev
to counting loop (although simple pipeline xev | while...
could work just fine).
text processing tools:
Portably and for fewer key strokes we can use awk
:
$ xev | awk '/ButtonPress/print "ButtonPress",i++'
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
perl
version:
$ xev | perl -ne '/ButtonPress/ && printf("ButtonPress:%dn",++$i)'
ButtonPress:1
ButtonPress:2
ButtonPress:3
Shells:
Here's what works in bash
:
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf 'ButtonPress: %dn' "$i"; ;done < <(xev)
ButtonPress: 1
ButtonPress: 2
ButtonPress: 3
In case you don't want spammy output of many lines, we can use printf
to send control code to clear previous line and output only the running count (that is you'd only see integer value change on the line):
$ i=0; while IFS= read -r line; do [[ $line =~ ButtonPress ]] && ((i++)); printf "r%b" "33[2K"; printf 'ButtonPress: %d' "$i"; ;done < <(xev)
Portably in POSIX shell:
$ xev | ( i=0; while IFS= read -r l; do case "$l" in *ButtonPress*) i=$((i+1)) && printf 'ButtonPress:%dn' "$i";; esac ;done)
ButtonPress:1
ButtonPress:2
ButtonPress:3
basic utils:
For simple, quick, and dirty way we can hack this via cat -n
with line count being printed on the left instead of right:
$ xev | grep --line-buffered 'ButtonPress' | cat -n
1 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
2 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
3 ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
edited Mar 7 at 10:08
answered Mar 7 at 9:43
Sergiy KolodyazhnyySergiy Kolodyazhnyy
74.1k9155324
74.1k9155324
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to anotherawk
version in use. Recent Ubuntu usesgawk
and before 16.04 default wasmawk
IIRC. Regardless, glad I could help :)
– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one onperl
version ? Not zero
– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
|
show 3 more comments
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to anotherawk
version in use. Recent Ubuntu usesgawk
and before 16.04 default wasmawk
IIRC. Regardless, glad I could help :)
– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one onperl
version ? Not zero
– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
I tried your first command that has awk in it, it works but there's a bit of lag when the output return
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
However, your second and third command works perfectly, thanks a lot Sergiy
– Jackie Nelson
Mar 7 at 9:53
@JackieNelson A bit of lag might suggest buffering, which may be related to another
awk
version in use. Recent Ubuntu uses gawk
and before 16.04 default was mawk
IIRC. Regardless, glad I could help :)– Sergiy Kolodyazhnyy
Mar 7 at 9:56
@JackieNelson A bit of lag might suggest buffering, which may be related to another
awk
version in use. Recent Ubuntu uses gawk
and before 16.04 default was mawk
IIRC. Regardless, glad I could help :)– Sergiy Kolodyazhnyy
Mar 7 at 9:56
Can you make so that the number start from one on
perl
version ? Not zero– Jackie Nelson
Mar 7 at 9:57
Can you make so that the number start from one on
perl
version ? Not zero– Jackie Nelson
Mar 7 at 9:57
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
@JackieNelson Yep, already changed that
– Sergiy Kolodyazhnyy
Mar 7 at 10:02
|
show 3 more comments
Jackie Nelson is a new contributor. Be nice, and check out our Code of Conduct.
Jackie Nelson is a new contributor. Be nice, and check out our Code of Conduct.
Jackie Nelson is a new contributor. Be nice, and check out our Code of Conduct.
Jackie Nelson is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123723%2fhow-to-concatenate-two-command-in-shell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you mean
xev | grep -c "ButtonPress"
, showing the number of clicks on exit?– dessert
Mar 7 at 9:41
It shows
ButtonPress
+ number everytime I click on white box pop up window, sorry I'm a novice...– Jackie Nelson
Mar 7 at 9:47
dessert, your command worked but it only return the number when I exit
xev
. How to make it return live value ?– Jackie Nelson
Mar 7 at 9:54