JavaShuo
欄目
標籤
Shell字符串截取的八種方式
時間 2019-12-06
標籤
shell
字符串
截取
方式
欄目
Unix
简体版
原文
原文鏈接
shell字符串截取 str=’IP:192.168.3.123,port:8080’ # 截取 echo ‘1: ‘${str#*,} #是運算符,*,表示從左側第一個字符開始,到,結束,刪除這些字符 上例顯然截取以後結果爲 port:8080web ## 截取 echo ‘2: ‘${str##*.} *.表示從左側第一個字符開始,到最後一個.結束,將最後一個.以前的字符所有刪除shell %
>>阅读原文<<
相關文章
1.
linux shell腳本截取字符串的八種方式
2.
字符串截取的三種方式!
3.
shell的字符串截取
4.
shell——字符串截取
5.
shell裏 截取字符串
6.
shell字符串截取
7.
Linux Shell 截取字符串
8.
shell 字符串截取
9.
shell 字符串截取方法彙總
10.
Shell 字符串截取方法
更多相關文章...
•
R 字符串
-
R 語言教程
•
Swift 字符串
-
Swift 教程
•
RxJava操作符(八)Aggregate
•
常用的分佈式事務解決方案
相關標籤/搜索
字符串
LeetCode 字符串
符串
截取
兩種方式
格式化‘字符串’
字符串處理
字符串+Date+Math
字符串函數
字符串哈希
Unix
PHP 7 新特性
MySQL教程
MyBatis教程
設計模式
委託模式
代碼格式化
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
CVPR 2020 論文大盤點-光流篇
2.
Photoshop教程_ps中怎麼載入圖案?PS圖案如何導入?
3.
org.pentaho.di.core.exception.KettleDatabaseException:Error occurred while trying to connect to the
4.
SonarQube Scanner execution execution Error --- Failed to upload report - 500: An error has occurred
5.
idea 導入源碼包
6.
python學習 day2——基礎學習
7.
3D將是頁遊市場新賽道?
8.
osg--交互
9.
OSG-交互
10.
Idea、spring boot 圖片(pgn顯示、jpg不顯示)解決方案
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
linux shell腳本截取字符串的八種方式
2.
字符串截取的三種方式!
3.
shell的字符串截取
4.
shell——字符串截取
5.
shell裏 截取字符串
6.
shell字符串截取
7.
Linux Shell 截取字符串
8.
shell 字符串截取
9.
shell 字符串截取方法彙總
10.
Shell 字符串截取方法
>>更多相關文章<<