Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
+2
BIT0105-kanak
BIT0122-Amit
6 posters
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 401
Page 1 of 1
Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Ahmedul Kabir wrote:Dear BIT01s,
We have to start shell scripting next week. In order to give you a headstart, I am sharing a link that contains a nice tutorial on Shell scripting. Please try to go through the tutorial and have some practice before the next lab.
[You must be registered and logged in to see this link.]
[Link courtesy: Amit Seal Ami]
Best regards,
Kabir
And you can download the offline edition file from [You must be registered and logged in to see this link.]
File size 321.01KB
Instructions:
1. unzip the folder
2. Open the index.html file via any browser
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
BIT0105-kanak wrote:REP++
Thanx amit
are jotil Noman o dekhi ekhon forum e regular toreo Rep++ keep it up dude
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
are jotil Very Happy Noman o dekhi ekhon forum e regular Very Happy toreo Rep++ Very Happy keep it up dude rock on!
ha ha ha
everything is motivation
thanx
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Interesting.. the file has been downloaded 3 times. but only one rep++
Really interesting....
Really interesting....
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Thanks a lot for the offline edition
rep++
rep++
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Amit toke thankx bole choto korlam na..... :-))
BIT0114-SHAMOL- Beta Release
- Course(s) :
- BIT
Blood Group : B+
Posts : 56
Points : 136
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
BIT0114-SHAMOL wrote:Amit toke thankx bole choto korlam na..... :-))
বড় যদি হতে চাও ছোট হও তবে।
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
taar mane toi thankx chaccish....ok toi jokhon chaccish ki r kora dilam THANKX..
BIT0114-SHAMOL- Beta Release
- Course(s) :
- BIT
Blood Group : B+
Posts : 56
Points : 136
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
scripting er moja ta kothay? eita to programming er moto, kintu ekebarei unstructured.
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
ছোট্ট বেলায় তোকে তোর বড়রা শিখিয়েছে। ঙ্কেউ কিছু দিলে তাকে ধন্যবাদ জানাতে হয়, কারন এইটাকে বলে ভদ্রতা আমি তেমন এইখানে এইগুলা দিলাম। তুই ভদ্রতা করে থেঙ্কু দিলি। এখন rep++কর।BIT0114-SHAMOL wrote:taar mane toi thankx chaccish....ok toi jokhon chaccish ki r kora dilam THANKX..
এইটার সব চাইতে বড় মজা হলো, এইটা দিয়ে তুই নিজেই আস্ত একটা অপারেটিং সিস্টেম দাড়া করাতে পারবি। এইটা দিয়ে যত সহজে করা যাবে, অন্য ভাষা দিয়ে সাধারনত তা করা যাবে না। আবার এইটার সরাসরি অপারেটিং সিস্টেমের সাথে ভাব বিনিময় করে, অন্য প্রোগ্রামের সাথে সহজে টানকি(মানে যোগাযোগ)ও করতে পারে। মানে সোজা কথায়... তুই এইটারে কম্পোনেন্ট হিসেবে যেকোন প্রোগ্রামে জোরা লাগাতে পারবি।BIT0104-ANIK wrote:scripting er moja ta kothay? eita to programming er moto, kintu ekebarei unstructured.
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Though it's a little late to find it,this may help. We have already started bash scripting and without much prior knowledge of it,we were given some assignments that appeared dizzy to us.
A rep++ for it.
A rep++ for it.
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
What were those assignments?
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
ভাই আমাদের একটা pdf দিছিলেন রিজভি স্যার। সেইখানে bash এর উপর কিছু introductory lecture ছিল। সেইখান থেকেই কিছু exercise করতে দিছিল।
চাইলে বইটাও আপলোড করে দিতে পারি।
- exercise গুলা এইখানে দিলাম:
- Q.1. How to write shell script that will add two nos, which are supplied as command line argument, and if
this two nos are not given show error and its usage
Answer: See Q1 shell Script.
Q.2.Write Script to find out biggest number from given three nos. Nos are supplies as command line
argument. Print error if sufficient arguments are not supplied.
Answer: See Q2 shell Script.
Q.3.Write script to print nos as 5,4,3,2,1 using while loop.
Answer: See Q3 shell Script.
Q.4. Write Script, using case statement to perform basic math operation as
follows
+ addition
- subtraction
x multiplication
/ division
The name of script must be 'q4' which works as follows
$ ./q4 20 / 3, Also check for sufficient command line arguments
Answer: See Q4 shell Script.
Q.5.Write Script to see current date, time, username, and current directory
Answer: See Q5 shell Script.
Q.6.Write script to print given number in reverse order, for eg. If no is 123 it must print as 321.
Answer: See Q6 shell Script.
Q.7.Write script to print given numbers sum of all digit, For eg. If no is 123 it's sum of all digit will be
1+2+3 = 6.
Answer: See Q7 shell Script.
Q.8.How to perform real number (number with decimal point) calculation in Linux
Answer: Use Linux's bc command
Q.9.How to calculate 5.12 + 2.5 real number calculation at $ prompt in Shell ?
Answer: Use command as , $ echo 5.12 + 2.5 | bc , here we are giving echo commands output to bc to
calculate the 5.12 + 2.5
Q.10.How to perform real number calculation in shell script and store result to
third variable , lets say a=5.66, b=8.67, c=a+b?
Answer: See Q10 shell Script.
Q.11.Write script to determine whether given file exist or not, file name is supplied as command line
argument, also check for sufficient number of command line argument
Answer: See Q11 shell Script.
Q.12.Write script to determine whether given command line argument ($1) contains "*" symbol or not, if
$1 does not contains "*" symbol add it to $1, otherwise show message "Symbol is not required". For e.g.
If we called this script Q12 then after giving ,
$ Q12 /bin
Here $1 is /bin, it should check whether "*" symbol is present or not if not it should print Required i.e.
/bin/*, and if symbol present then Symbol is not required must be printed. Test your script as
$ Q12 /bin
$ Q12 /bin/*
Answer: See Q12 shell Script
Q.13. Write script to print contains of file from given line number to next given number of lines. For e.g. If
we called this script as Q13 and run as
$ Q13 5 5 myf , Here print contains of 'myf' file from line number 5 to next 5 line of that file.
Answer: See Q13 shell Script
Q.19. Write shell script to show various system configuration like
1) Currently logged user and his logname
2) Your current shell
3) Your home directory
4) Your operating system type
5) Your current path setting
6) Your current working directory
7) Show Currently logged number of users
8 ) About your os and version ,release number , kernel version
9) Show all available shells
10) Show mouse settings
11) Show computer cpu information like processor type, speed etc
12) Show memory information
13) Show hard disk information like size of hard-disk, cache memory, model etc
14) File system (Mounted)
Answer: See Q19 shell Script.
চাইলে বইটাও আপলোড করে দিতে পারি।
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Hmm. Mixed difficulty.
তো এসব করায় কি সমস্যা হয়েছিল আসলে?
তো এসব করায় কি সমস্যা হয়েছিল আসলে?
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
প্রথমত,সমস্যা কমবেশি সবারই ছিল। আমার কাছে যেগুলা মন হয়েছে সেগুলা নিচে দিলাম।
১-৭ মোটামুটি বুঝছি। ৮,৯,১০ ছিল floating point number এর কাজ। সেইটা করতে বলছে bc command দিয়ে। সেইখানে আবার piping ছিল। এই বিষয়ে কোন হেল্প করা হয় নাই। (এখন অবশ্য piping এর কাজ কি সেইটা বুঝি)
১১ পারসি। ১২ নাম্বার টা কিছুই পারি নাই। ১৩ তে একটু ভেজাল হইছিল। সবসময় file এর প্রথম থেকেই print করছিল। ১৩ তাই অসমাপ্ত ছিল।
আর ১৯ নম্বর এর প্রথম কয়েকটা(৭ টা মনে হয়)solution দেখে বের করসিলাম। পরের গুলার জন্য অনেক code লেখা দেখসি যেগুলার মর্ম উদ্ধার করা সম্ভব হয় নাই। এগুলাতে shell command এর কাজ ছিল। আমি command খুব বেশি জানিনা।
আর সবগুলা কোডের ব্যাখ্যা দিতে হইছিল স্যারের কাছে। তিনি ধরেই নিসিলেন আমরা সব বুঝেই লিখসি।
(আমার অভ্র কিবোর্ড অনবরত hang হচ্ছে। তাই reply টা দিতে দেরি হল)
১-৭ মোটামুটি বুঝছি। ৮,৯,১০ ছিল floating point number এর কাজ। সেইটা করতে বলছে bc command দিয়ে। সেইখানে আবার piping ছিল। এই বিষয়ে কোন হেল্প করা হয় নাই। (এখন অবশ্য piping এর কাজ কি সেইটা বুঝি)
১১ পারসি। ১২ নাম্বার টা কিছুই পারি নাই। ১৩ তে একটু ভেজাল হইছিল। সবসময় file এর প্রথম থেকেই print করছিল। ১৩ তাই অসমাপ্ত ছিল।
আর ১৯ নম্বর এর প্রথম কয়েকটা(৭ টা মনে হয়)solution দেখে বের করসিলাম। পরের গুলার জন্য অনেক code লেখা দেখসি যেগুলার মর্ম উদ্ধার করা সম্ভব হয় নাই। এগুলাতে shell command এর কাজ ছিল। আমি command খুব বেশি জানিনা।
আর সবগুলা কোডের ব্যাখ্যা দিতে হইছিল স্যারের কাছে। তিনি ধরেই নিসিলেন আমরা সব বুঝেই লিখসি।
(আমার অভ্র কিবোর্ড অনবরত hang হচ্ছে। তাই reply টা দিতে দেরি হল)
Re: Bash Scripting Tutorial for BIT 1st Batch Chosen by Kabir Sir [with offline edition]
Hmm. same for me. I didn't understand the requirements of number 12 too.
About 19,
About 19,
Similar topics
» Help Materials regarding Bash Scripting
» BIT 1st Batch Bash Assignment
» Bash Script Assignmet (Solved)
» request for making offline edition
» make offline edition of this link
» BIT 1st Batch Bash Assignment
» Bash Script Assignmet (Solved)
» request for making offline edition
» make offline edition of this link
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