Skip to content

do you need backslash in line 10? #14

Description

@pakair

Line 10: do you need \
first run with \ gives a warning, second run without is clean.

user@cw:~$ xrandr | awk '/\ connected/'
awk: cmd. line:1: warning: regexp escape sequence `\ ' is not a known regexp operator
DVI-I-1 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 598mm x 336mm
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
DP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 480mm x 270mm

user@cw:~$ xrandr | awk '/ connected/'
DVI-I-1 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 598mm x 336mm
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
DP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 480mm x 270mm
user@cw:~$ 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions