BIT 1st Batch Bash Assignment
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 401
Page 1 of 1
BIT 1st Batch Bash Assignment
স্যার আজকে আমাদের গ্রুপে মেইল করে পাঠিয়েছেন এইসব। কিন্তু যেহেতু
১। অনেকে পঁচা মেইল এড্রেস ব্যবহার করে
২। এবং তারা not spam নামক বাটন খানা টিপাটিপি করতে পারে না,
এবং ৩। তারা কই গ্রুপের মেইল আসবে তা ঠিক করে নিজের সব চাইতে বেশি ব্যবহৃত মেইল এড্রেস দেয় নাই, তারা কেউ এইটার ব্যাপারে জানে না।
কাজেই তাদের জন্য আমি এইখানে ওই প্রশ্নখানা তুলে দিলাম।
a) Contentsof /etc/passwd
b) Listof users who are currently logged in
c) Presentworking directory
d) Exit
a) List all files beginning with vowels on the screen and also store them in a file called myfile.
b) Mergethe contents of the files a.txt, b.txt and c.txt, sort them and display thesorted output on the screen page by page.
c) Contentsof file1 and file2 should be displayed on the screen and this output should beappended to the file file3.
১। অনেকে পঁচা মেইল এড্রেস ব্যবহার করে
২। এবং তারা not spam নামক বাটন খানা টিপাটিপি করতে পারে না,
এবং ৩। তারা কই গ্রুপের মেইল আসবে তা ঠিক করে নিজের সব চাইতে বেশি ব্যবহৃত মেইল এড্রেস দেয় নাই, তারা কেউ এইটার ব্যাপারে জানে না।
কাজেই তাদের জন্য আমি এইখানে ওই প্রশ্নখানা তুলে দিলাম।
- Write a shell script that will receive any number of filenames as arguments. The shell script should check whether such files already exist. If they do, then it should be reported. If these files do not exist then check if a sub-directory called mydir exists in the current directory. If it doesn’t exist then it should be created and in it the files supplied as arguments should be creatyed. If mydir already exists then ity should be reported along with the number of files that are currently present in mydir.
- A file called wordfile consists of several words. Write a shell script which will receive a list of filenames (in the command line), the first of which will be wordfile. The shell scripts should report all occurrences of each word in wordfile in the rest of the files supplied as arguments.
- Write a menu-driven program (using the case statement) which shows information based on following options:
a) Contentsof /etc/passwd
b) Listof users who are currently logged in
c) Presentworking directory
d) Exit
- Construct pipelines to carry out the following jobs:
a) List all files beginning with vowels on the screen and also store them in a file called myfile.
b) Mergethe contents of the files a.txt, b.txt and c.txt, sort them and display thesorted output on the screen page by page.
c) Contentsof file1 and file2 should be displayed on the screen and this output should beappended to the file file3.
Similar topics
» Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
» Help Materials regarding Bash Scripting
» Bash Script Assignmet (Solved)
» To BIT 1st batch
» Upcoming BIT batch
» Help Materials regarding Bash Scripting
» Bash Script Assignmet (Solved)
» To BIT 1st batch
» Upcoming BIT batch
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 401
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford