IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

BIT 1st Batch Bash Assignment

Go down

BIT 1st Batch Bash Assignment Empty BIT 1st Batch Bash Assignment

Post by BIT0122-Amit Wed Oct 06, 2010 2:45 am

স্যার আজকে আমাদের গ্রুপে মেইল করে পাঠিয়েছেন এইসব। কিন্তু যেহেতু
১। অনেকে পঁচা মেইল এড্রেস ব্যবহার করে
২। এবং তারা 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.
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum