Bash file to filter hexadecimal value
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am writing a bash script and I need to filter out some hexadecimal value from a return string of a command in bash for example:
hexVal=`mmc extcsd read /dev/mmcblk1 | grep 'Max Enhanced Area Size'`
Will return the value of hexVal as:
Max Enhanced Are Size [MAX_ENH_SIZE_MULT]: 0x000bd8
Now, I want the value of hexVal to be returned as:
0x000bd8
bash hex
New contributor
add a comment |Â
up vote
0
down vote
favorite
I am writing a bash script and I need to filter out some hexadecimal value from a return string of a command in bash for example:
hexVal=`mmc extcsd read /dev/mmcblk1 | grep 'Max Enhanced Area Size'`
Will return the value of hexVal as:
Max Enhanced Are Size [MAX_ENH_SIZE_MULT]: 0x000bd8
Now, I want the value of hexVal to be returned as:
0x000bd8
bash hex
New contributor
Are those values always last words in the line?
â jimmij
2 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am writing a bash script and I need to filter out some hexadecimal value from a return string of a command in bash for example:
hexVal=`mmc extcsd read /dev/mmcblk1 | grep 'Max Enhanced Area Size'`
Will return the value of hexVal as:
Max Enhanced Are Size [MAX_ENH_SIZE_MULT]: 0x000bd8
Now, I want the value of hexVal to be returned as:
0x000bd8
bash hex
New contributor
I am writing a bash script and I need to filter out some hexadecimal value from a return string of a command in bash for example:
hexVal=`mmc extcsd read /dev/mmcblk1 | grep 'Max Enhanced Area Size'`
Will return the value of hexVal as:
Max Enhanced Are Size [MAX_ENH_SIZE_MULT]: 0x000bd8
Now, I want the value of hexVal to be returned as:
0x000bd8
bash hex
bash hex
New contributor
New contributor
edited 4 mins ago
Rui F Ribeiro
37.9k1475121
37.9k1475121
New contributor
asked 6 mins ago
Hari
1
1
New contributor
New contributor
Are those values always last words in the line?
â jimmij
2 mins ago
add a comment |Â
Are those values always last words in the line?
â jimmij
2 mins ago
Are those values always last words in the line?
â jimmij
2 mins ago
Are those values always last words in the line?
â jimmij
2 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Hari is a new contributor. Be nice, and check out our Code of Conduct.
Hari is a new contributor. Be nice, and check out our Code of Conduct.
Hari is a new contributor. Be nice, and check out our Code of Conduct.
Hari 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479292%2fbash-file-to-filter-hexadecimal-value%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Are those values always last words in the line?
â jimmij
2 mins ago