博客
关于我
linux 将文件内容赋值给shell脚本中的变量
阅读量:792 次
发布时间:2023-02-01

本文共 861 字,大约阅读时间需要 2 分钟。

#!/bin/sh - Using sed Command to Extract Maildir's Date from lastVersion File
  2. Maildir is set to "baikewaringmail"
  3. lastVersion is assigned the value "xxxxxxxxxxxxxx/lastVersion/datestr.txt"
  4. The date string is extracted using `sed -n '1p' $lastVersion`
  5. Finally, the script outputs "the datestr is $mydatestr"

转载地址:http://wlwfk.baihongyu.com/

你可能感兴趣的文章
Linux 强大的网络命令:nc,网络的瑞士军刀!
查看>>
Linux 快速创建文件并写入内容
查看>>
LINUX 快速配置
查看>>
Linux 性能优化(网络、磁盘、内存、日志监控)零基础入门到精通,收藏这一篇就够了
查看>>
Linux 性能监测:介绍
查看>>
Linux 执行脚本出现 $‘ ‘: command not found 解决方法
查看>>
linux 技巧:使用 screen 管理你的远程会话
查看>>
Linux 探索之旅 | 第五部分第六课:一朝 Shell 函数倾,斗转星移任我行
查看>>
Linux 操作系统启动流程以及trouble shooting思路
查看>>
linux 整理
查看>>
Linux 文件与目录管理/tree命令
查看>>
Linux 文件权限
查看>>
Linux 文件目录管理命令
查看>>
Linux 文件目录详解
查看>>
Linux 文件系统
查看>>
Linux 文件系统详解
查看>>
Linux 文本编辑常用快捷键
查看>>
Linux 日常常用命令总结
查看>>
Linux 日志服务与日志管理详解
查看>>
Linux 显示磁盘空间使用情况的命令:df
查看>>