Skip to content

Conversation

@flocsy
Copy link

@flocsy flocsy commented Feb 15, 2023

No description provided.

carlnorum and others added 2 commits November 28, 2022 10:50
If a device has fewer than 6 lines in its system profiler description,
it will get merged with the following device in the egrep output. This
patch changes the device splitting logic into an awk script that is
more context aware about the format of the system profiler output.
@phuclv90
Copy link

phuclv90 commented Jun 12, 2023

I have a simpler method to split here #23

-devices=`echo "$rawlog" | egrep -B 2 -A 6 "Product ID" | sed 's/^--/#/'`
+devices=`echo "$rawlog" | sed -e '/:$/i\
+#'`

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

Successfully merging this pull request may close these issues.

3 participants