Wednesday, 18 Feb 2026
Subscribe
logo
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Font ResizerAa
Data Center NewsData Center News
Search
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Have an existing account? Sign In
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Data Center News > Blog > Global Market > Parameter expansion on Linux | Network World
Global Market

Parameter expansion on Linux | Network World

Last updated: June 23, 2025 10:23 pm
Published June 23, 2025
Share
Close Up Portrait of Woman Working on Computer, Lines of Code Language Reflecting on her Glasses from Big Display Screens. Female Programmer Developing New Software, Coding, Managing Cybersecurity
SHARE

$ echo "${person:=nameless}"
nameless

The command under will print a “not set” message and exits if the $hostname variable will not be set or if it’s null.

$ echo "${HOSTNAME:?HOSTNAME will not be set}" 
fedora
$ echo "${HOSTNAME2:?HOSTNAME2 will not be set}"
-bash: HOSTNAME2: HOSTNAME2 will not be set

You’ll be able to show the size of a variable’s worth with a command like this:

$ var="bananas"
$ echo ${#var}
7

Within the instance under, the variety of characters within the variable $title shall be displayed.

$ title="sandra"
$ echo ${#title)
6

The 2 instructions under show substrings for the required variable.

$ var="123456789"
$ echo ${var:1:3}
234
$ echo ${var:0:3}
123

Within the instance under, a substring of the $textual content variable is displayed. The 6 and 5 characterize the offset and size of the textual content to be displayed.

$ textual content="I like Linux"
echo ${textual content:7:5}
Linux

Observe that the 7th character of the string is a clean. Consider the string as beginning with character 0.

Source link

See also  Salute announces acquisition of Keysource Group
TAGGED: Expansion, Linux, Network, parameter, World
Share This Article
Twitter Email Copy Link Print
Previous Article Blueprint Finance Raises Additional $9.5M in Funding Blueprint Finance Raises Additional $9.5M in Funding
Next Article Conquest Planning Raises $80M in Series B Funding Conquest Planning Raises $80M in Series B Funding
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
MediumFollow
- Advertisement -
Ad image

Popular Posts

Key Lessons for Going Hybrid with Your Digital Infrastructure

There’s an enormous vary of infrastructure choices available on the market, starting from on-premises setups…

November 14, 2024

Augmented reality improves carpentry ease and precision

The operator sees the directions by means of coloured strains on the display. Credit score:…

April 12, 2025

Colt DCS breaks ground on the first of five new Paris data centres

Colt Information Centre Providers (Colt DCS), a number one international supplier of hyperscale and huge…

May 16, 2025

What will AI computing look like?

Ed Ansett, Founder and Chairman at i3 Options, takes a have a look at how…

March 4, 2024

EMCOR UK unveils end-to-end data centre operations suite

EMCOR UK has introduced a cradle-to-grave Knowledge Centre Operations resolution that guarantees to take services…

July 8, 2025

You Might Also Like

Spending on AI-enabled security tools
Global Market

Palo Alto to acquire Israeli startup Koi for agentic AI security

By saad
Amazon plans new tape data centre in Hemel Hempstead
Global Market

Amazon plans new tape data centre in Hemel Hempstead

By saad
AI services
Global Market

Adani bets $100 billion on AI data centers as India eyes global hub status

By saad
Abbots Langley data centre heat network wins Gov funding
Global Market

Abbots Langley data centre heat network wins Gov funding

By saad
Data Center News
Facebook Twitter Youtube Instagram Linkedin

About US

Data Center News: Stay informed on the pulse of data centers. Latest updates, tech trends, and industry insights—all in one place. Elevate your data infrastructure knowledge.

Top Categories
  • Global Market
  • Infrastructure
  • Innovations
  • Investments
Usefull Links
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions

© 2024 – datacenternews.tech – All rights reserved

Welcome Back!

Sign in to your account

Lost your password?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
You can revoke your consent any time using the Revoke consent button.