Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awk warning #3

Open
Dialga opened this issue Mar 19, 2023 · 1 comment
Open

awk warning #3

Dialga opened this issue Mar 19, 2023 · 1 comment

Comments

@Dialga
Copy link

Dialga commented Mar 19, 2023

When I use archfetch, I get the following error:

awk: warning: regexp escape sequence `\"' is not a known regexp operator.
@jjaimealeman
Copy link

When I use archfetch, I get the following error:

awk: warning: regexp escape sequence `\"' is not a known regexp operator.

The warning you're encountering is related to the use of escape sequences in the awk command within the script. Specifically, the warning regexp escape sequence \" is not a known regexp operator suggests an issue with how quotation marks are escaped in the awk command.

Try this line instead

gpu="$(lspci -mm | awk -F '\" \"|\\(' '/"Display|"3D|"VGA/ {a[$0] = $3 " " $4} END{for(i in a){if(!seen[a[i]]++) print a[i]}}' | cut -d "[" -f2 | cut -d "]" -f1)"

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants