Skip to content

Commit df94eb6

Browse files
authored
Use grep -E instead of egrep (#401)
1 parent b5d8d5c commit df94eb6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: FAQ.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This will show the window ID in hexadecimal of
99
a window with title `My dialog title`:
1010

1111
```
12-
wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' '
12+
wmctrl -l | grep "My dialog title" | cut -f 1 -d ' '
1313
```
1414

1515
I got the value of `0x02800003` displayed on my screen,
@@ -18,7 +18,7 @@ but you will probably have a different value.
1818
Feeding that hexadecimal value to `xdotool` does activate the window:
1919

2020
```
21-
xdotool windowactivate $(wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' ')
21+
xdotool windowactivate $(wmctrl -l | grep "My dialog title" | cut -f 1 -d ' ')
2222
```
2323

2424
## How to let `xdotool` work with Qt applications?
@@ -31,10 +31,10 @@ If something is wrong, a workaround is to use `wmctrl`
3131
to obtain the window ID:
3232

3333
```
34-
xdotool windowactivate $(wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' ')
34+
xdotool windowactivate $(wmctrl -l | grep "My dialog title" | cut -f 1 -d ' ')
3535
```
3636

3737
Replace 'My dialog title' for the window name you are looking for.
3838

3939
Note that `wmctrl` displays the window ID in hexadecimal. This is no
40-
problem for `xdotool`!
40+
problem for `xdotool`!

Diff for: t/ephemeral-x.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if [ ! -z "$WINMGR" -a "$WINMGR" != "none" ] ; then
168168
for i in 1 2 3 4 5 6 7 8 9 10 ABORT ; do
169169
# A good signal that the WM has started is that the WM_STATE property is
170170
# set or that any NETWM/ICCCM property is set.
171-
if xprop -root | egrep -q 'WM_STATE|^_NET' ; then
171+
if xprop -root | grep -qE 'WM_STATE|^_NET' ; then
172172
quiet || echo "$WINMGRNAME looks healthy. Moving on."
173173
break;
174174
fi

0 commit comments

Comments
 (0)