上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 499 下一页
摘要: Write to a file >, >> Append content at the beginning of the file. echo whatever > hello.txt echo Hello world >> hello.txt cat hello.txt # whatever # 阅读全文
posted @ 2024-05-22 02:33 Zhentiw 阅读(18) 评论(0) 推荐(0)
摘要: While The while loop executes a block of code as long as a specified condition is true. while [ condition ]; do commands done Example: #!/bin/zsh coun 阅读全文
posted @ 2024-05-21 03:41 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: The "Set Methods" proposal introduces 7 new methods to JavaScript/ECMAScript: union(setB): Returns a new Set containing all elements from the original 阅读全文
posted @ 2024-05-20 21:59 Zhentiw 阅读(97) 评论(0) 推荐(0)
摘要: If The if statement is used to execute commands based on a condition. if [ condition ]; then commands fi Example: vim example.sh #!/bin/zsh echo "Ente 阅读全文
posted @ 2024-05-19 16:16 Zhentiw 阅读(33) 评论(0) 推荐(0)
摘要: Commands: export: Set environment variables. env: View environment variables. echo: Display environment variables. Common Environment Variables: PATH: 阅读全文
posted @ 2024-05-19 15:48 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: Understanding File Permissions: File permissions in Unix-like systems determine who can read, write, or execute a file. They are represented as a comb 阅读全文
posted @ 2024-05-19 15:42 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要: Finding elements starting from the end of an array has gotten a lot easier with the introduction of the at, findLast, and findLastIndex methods! With  阅读全文
posted @ 2024-05-17 14:19 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要: Array Grouping is the new feature of JavaScript/ECMAScript, which splits an array (or, generally, an iterable), into smaller sub-arrays. Grouping is d 阅读全文
posted @ 2024-05-17 14:14 Zhentiw 阅读(48) 评论(0) 推荐(0)
摘要: The sed command is a stream editor used for filtering and transforming text. sed 'command' file Create and view the initial content of sample.txt: ech 阅读全文
posted @ 2024-05-17 14:00 Zhentiw 阅读(33) 评论(0) 推荐(0)
摘要: The awk command is a powerful text processing tool used for pattern scanning and processing. // exammple.txt Hello World This is a sample file Bash sc 阅读全文
posted @ 2024-05-17 03:48 Zhentiw 阅读(65) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 499 下一页