技术心得

有生之年 何以解忧 唯有暴富

首页 关于

SHELL字符转数组并打印

  • 作者: wuloves
  • 时间: 2020-09-18 17:46:29
  • 分类: shell
#!/bin/bash
hyperf_code=message,shortname,tt_user,user,forum,im,community,,,tt_common,report,course
hyperf_code=(${hyperf_code//,/ })
for var in ${hyperf_code[@]}
do
   echo $var
done 
exit

标签: none

评论已关闭

  • 上一篇: Mysql冷门坑
  • 下一篇: 网页上直接将html表格导出为csv

最新文章

  • python打包器
  • nginx location配置
  • centos7_搭建squid代理服务器
  • centos7_minimal安装
  • 群晖7.0安装小记
  • nginx windows开机自启动
  • 待解决问题汇总
  • hyperf Docker
  • 登录主机自动执行命令
  • 隐藏窗口运行程序

最近回复

分类

  • server
    • linux
    • windows
    • 群晖
  • cmd
    • docker
    • composer
    • apache
    • nginx
    • MySql
    • redis
    • git
    • shell
    • elasticsearch
    • exe
  • 代码
    • 前端
      • js
      • Html
    • PHP
      • laravel
      • php_function
      • php_problem
      • 算法
      • php_other
  • 其他
    • 待解决
    • typecho
    • unknown
    • wechat
    • bookmark
    • favorite
    • *
  • 杂记

归档

  • 2025-07
  • 2022-06
  • 2022-05
  • 2022-04
  • 2022-03
  • 2022-01
  • 2021-12
  • 2021-10
  • 2021-08
  • 2020-12
  • 2020-09
  • 2020-08
  • 2020-07
  • 2020-06
  • 2020-05
  • 2020-04
  • 2020-03

其它

  • 登录
  • 文章 RSS
  • 评论 RSS
  • Typecho
© 2026 技术心得. . 苏ICP备2024115387号-1