DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Store Host IP in variable

3 years ago www.commandlinefu.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

export IP="$(hostname -I | awk '{print $1}')"0 By: wuziduzi 2021-08-10 03:48:21 export You must be signed in to comment. commandlinefu.com is the place to record those command-line gems that you return to again and again.

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Subscribe to the feed for: commandlinefu.com © 2018 Dan's Tools | FAQs | API | Widget | Privacy

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com