This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Export codename of raspbian as string?
Post Body
Dear community,
I know to export all Linux Standard Base Release infos with
lsb_release -a
From there you could grep the codename at the end of line with | grep Codename
Specify and force showing the codname output within LSB command is lsb_release -c
Another possible option is cat /etc/os-release | grep VERSION_CODENAME
Example of the required value output: VERSION_CODENAME=bookworm
How am I able to export only the value of the codename as string?
Regards.
EDIT: Found it by myself.
lsb_release -s -c
Author
Account Strength
80%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,059
Link Karma
466
Comment Karma
593
Profile updated: 3 days ago
Posts updated: 3 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 8 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/raspbian/co...