1 Star 0 Fork 0

dailinrui/myTools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testmodifyfile.yaml 856 Bytes
一键复制 编辑 原始数据 按行查看 历史
dailinrui 提交于 2023-05-11 07:24 . add testmodifyfile.yaml.
name: testmodifyfile
description: modify a file and add something
inputs:
- {name: newstring, type: String, description: 'Something to write to a new file'}
- {name: inputpath, description: 'input file path'}
outputs:
- {name: output, description: 'output file path'}
implementation:
container:
image: ubuntu:18.04
command:
- /bin/bash
- -c
- |
inputstr=$0
echo "inputstr:"$inputstr
inputfile=$1
echo "inputpath:"$inputfile
echo "origin begin--"
cat $inputfile
echo "--origin end"
mkdir -p $(dirname $2)
cat $inputfile > $2
echo $0 >> $2
echo "Result::"
cat $2
- {inputValue: newstring}
- {inputPath: inputpath}
- {outputPath: output}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dailinrui/myTools.git
git@gitee.com:dailinrui/myTools.git
dailinrui
myTools
myTools
master

搜索帮助