Add new os examples

This commit is contained in:
Timothyxxx
2024-02-15 19:24:22 +08:00
parent fb2fc2e6a4
commit 1596770410
9 changed files with 362 additions and 26 deletions

View File

@@ -0,0 +1,53 @@
{
"id": "4127319a-8b79-4410-b58a-7a151e15f3d7",
"snapshot": "os",
"instruction": "Use terminal command to count all the lines of all php files in current directory recursively, show the result on the terminal",
"source": "NL2Bash",
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.usercontent.google.com/download?id=1mp3bXrhKutWzxHnQc9v2Dtt4xclLemik&export=download&authuser=0&confirm=t&uuid=351dc4ac-ecf6-448b-bb09-ebf1231bfe5a&at=APZUnTUlgWg3o8U2Ghl2xRWEXFjz:1707993730783",
"path": "setup.sh"
}
]
}
},
{
"type": "execute",
"parameters": {
"command": "chmod +x setup.sh",
"shell": true
}
},
{
"type": "execute",
"parameters": {
"command": "./setup.sh",
"shell": true
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"os"
],
"evaluator": {
"func": "check_include_exclude",
"result": {
"type": "vm_terminal_output"
},
"expected": {
"type": "rule",
"rules": {
"include": [
"54\n"
],
"exclude": [
]
}
}
}
}