mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 20:16:42 +00:00
38 lines
596 B
Bash
Executable File
38 lines
596 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
SCRIPT_DIR=/regression
|
|
cd ${SCRIPT_DIR}
|
|
|
|
touch hello.txt
|
|
mv hello.txt hello_world.txt
|
|
rm hello_world.txt
|
|
|
|
awk '{print $2}' shell_cmd.sh
|
|
cp shell_cmd.sh shell_cmd_backup.sh
|
|
cat shell_cmd_backup.sh
|
|
rm shell_cmd_backup.sh
|
|
|
|
ln -s shell_cmd.sh tesk_cmd_soft_link
|
|
readlink -f tesk_cmd_soft_link
|
|
tail -n 1 tesk_cmd_soft_link
|
|
rm tesk_cmd_soft_link
|
|
|
|
ln shell_cmd.sh tesk_cmd_hard_link
|
|
tail -n 1 tesk_cmd_hard_link
|
|
unlink tesk_cmd_hard_link
|
|
|
|
sed 3q shell_cmd.sh
|
|
|
|
find . -name "*shell_cmd*"
|
|
|
|
mkdir foo
|
|
rmdir foo
|
|
|
|
echo "Hello world from asterinas" > hello.txt
|
|
rm hello.txt
|
|
|
|
cd ..
|