Home > OS >  A shell script interception parameters fixed length how to capture
A shell script interception parameters fixed length how to capture

Time:09-23

As title, I baidu out and then according to oneself write error, give bosses to solve it,

CodePudding user response:

What you quoted wrong

CodePudding user response:

reference 1st floor mouse_zhu response:
what you quoted wrong

What is 0403-011 as command is invalid

CodePudding user response:

 
#!/bin/bash
My_name="kimbo"
Echo ${my_name: 1:3}

[root @ ll TMP] #./name. Sh
Imb
[root @ ll TMP] #

You'd better put your mistake posted, text or all of the images

CodePudding user response:

The
reference 3 floor mouse_zhu response:
 
#!/bin/bash
My_name="kimbo"
Echo ${my_name: 1:3}

[root @ ll TMP] #./name. Sh
Imb
[root @ ll TMP] #

You'd better put your mistake posted, text or all images

Bosses, I don't know how to comment on pictures, direct messages sent to you,

CodePudding user response:

reference 4 floor weixin_45621200 response:
Quote: reference mouse_zhu reply: 3/f
 
#!/bin/bash
My_name="kimbo"
Echo ${my_name: 1:3}

[root @ ll TMP] #./name. Sh
Imb
[root @ ll TMP] #

You'd better put your mistake posted, text or all images

Bosses, I don't know how to comment on pictures, send you direct messages.

The last line of the picture is,

CodePudding user response:

My vi is fine, but still the problem, and I use the method of expr cut out, but this method is so, don't understand

CodePudding user response:

Estimation is bash
  • Related