مشروع نظم PDF

Document Details

BraveElf7019

Uploaded by BraveElf7019

King Khalid University

Tags

Linux Terminal Bash Scripting Text Manipulation Programming

Summary

يُظهر المستند سلسلة من الأوامر المكتوبة في محطة طرفية Linux. تُستخدم الأوامر لتغيير حروف نصية و تشغيل ملف نصي. لا توجد مواضيع أو أسئلة.

Full Transcript

# مشروع نظم The document shows a series of commands being typed into a Linux terminal. - `echo "dalia" | tr [a-z] [A-Z]` - `echo "dalia2005" | tr -d '[:digit:]'` - `nano txt.sh` - `./txt.sh` - `chmod 777 txt.sh` - `./txt.sh` The commands are designed to manipulate text using the `tr` command: - `...

# مشروع نظم The document shows a series of commands being typed into a Linux terminal. - `echo "dalia" | tr [a-z] [A-Z]` - `echo "dalia2005" | tr -d '[:digit:]'` - `nano txt.sh` - `./txt.sh` - `chmod 777 txt.sh` - `./txt.sh` The commands are designed to manipulate text using the `tr` command: - `echo "dalia" | tr [a-z] [A-Z]` prints `DALIA` by converting all lowercase letters into uppercase. - `echo "dalia2005" | tr -d '[:digit:]'` prints `dalia` by deleting all digits. The last 4 commands are related to a bash script stored in `txt.sh`. The commands are: - `nano txt.sh` to edit the script with the nano editor. - `./txt.sh` to run the script, which fails at first due to a permission error. - `chmod 777 txt.sh` to change the file's permissions, granting execute access. - `./txt.sh` to run the script again, which now prints `dalia` and `jeddah`. The bash script most probably contained the following lines: ``` echo "dalia" echo "jeddah" ```

Use Quizgecko on...
Browser
Browser