I have received quite a few requests to add this album and I personally too like the film and its songs, so here I bring to you
Aamir...
Aamir is a
2008 thriller Hindi film starring
Rajeev Khandelwal. It marked the debut of both
Rajeev and
Amit Trivedi, who has composed the music of the film. It was a very small budget film (only Rs
2 Crore) but managed to do well thanks to the good script and
Rajeev's flawless performance. The songs are good, very relevant to the film. I specially like the
Ha Raham track.
Right Click and choose 'Save Target As'. Enjoy!
The
Robot is an upcoming Tamil science fiction film starring
Rajinikanth,
Aishwarya Rai and
Danny Denzongpa. It is the most expensive film ever made in Asia (a whopping
Rs 190 crore). The film will also be dubbed and released in Hindi. The music has been composed by
A. R. Rahman. The worldwide release of the film is on 24 September,
2010.
Right Click and choose 'Save Target As'. Enjoy!
I got many requests to add this album. So here I bring you
Life In A... Metro.Life In A... Metro is a
2007 Hindi film starring
Dharmendra, Shilpa Shetty, Kay Kay Menon, Konkona Sen Sharma, Sharman Joshi, Shiney Ahuja, Kangana Ranaut and Irrfan Khan. It reflects the life of the people living in a city like Mumbai. The film has excellent music which have been composed by
Pritam and the lyrics have been written by
Sayeed Quadri.
Right Click and choose 'Save Target As'. Enjoy!
- In Dino - Soham Chakraborty
- Alvida - KK
- O Meri Jaan - KK
- Rishtey - James
- Kar Salaam - Suhail Kaul, Soham Chakraborty & Pritam Chakraborty
- Baatein Kuch Ankahee Si - Adnan Sami
- Baatein Kuch Ankahee Si (Unplugged) - Suhail Kaul
- Alvida (Reprise) - James
- O Meri Jaan (Reprise) - Suhail Kaul
- Rishtey (Revisited) - James
- Baatein Kuch Ankahee Si (Revisited)
- In Dino (Revisited)
Lucky Ali was actually born as
Maqsood Mehmood Ali in
1958. He is the second son of Bollywood comedian
Mehmood and the nephew of the famous Bollywood actress
Meena Kumari.
Lucky Ali is a playback singer who has a very melodious voice. He is best known for his Ballad style singing. Besides singing, he is also a composer, a songwriter and has even acted in many films.
I have consistently received requests to add a Lucky Ali collection. So here I bring you a handful of his best songs.
Right Click and choose 'Save Target As'. Enjoy!
- Bekarar - Paathshala
- Hairat Hai - Anjaana Anjaani
- Jaane Kya Dhoondta - Sur
- Aahista Aahista - Bachna Ae Haseeno
- O Sanam - Kabhi Aisa Lagta Hai
- Na Tum Jano Na Hum - Kaho Na Pyar Hai
- Anjana Anjani - Yuva
- Aa Bhi Jaa - Sur
- Ek Pal Ka Jeena - Kaho Na Pyaar Hai
- Kabhi Aisa Lagta Hai - Kabhi Aisa Lagta Hai
- Dil Aisay Na - Best Of Lucky Ali
- Kitni Haseen Zindagi - Aks
- Teri Yaad Jab Ati Hai - Kabhi Aisa Lagta Hai
- Tanha Akela - Best Of Lucky Ali
- Bekarar (remix) - Paathshala
- Anjani Rahoon Mein - Jaan Meri Hindustan
- Hum Bade Huey - The Film
Parineeta is a
2005 Hindi film starring
Saif Ali Khan, Vidya Balan, Sanjay Dutt, Diya Mirza and
Raima Sen. This film is based on the
1914 Bengali novel Parineeta by
Sarat Chandra Chattopadhyay. The film performed well in the box office and went on to win several prominent awards. The music of the film has been composed by
Shantanu Moitra, who also won the
R D Burman Award for his work.
This album was requested by
Jennifer. I hope you all enjoy listening to these beautiful tracks.
Right Click and choose 'Save Target As'. Enjoy!
Shaan was born on
September 30, 1972 in
Mumbai. His real name is
Shantanu Mukherjee. He is a very accomplished playback singer and has sung in many Bollywood films and personal albums as well.
Shaan has also hosted television shows like
Sa Re Ga Ma Pa and Star
Voice Of India. Over the years Shaan has won many singing awards two
Filmfares.
Shaan has a huge fan following in India and abroad and this is apparent from the number of requests I have received to add a collection of his. Finally, the wait is over.
Right Click and choose 'Save Target As'. Enjoy!
- Behti Hawa Sa Tha Woh - 3 Idiots
- Tanha Dil - Aksar
- Woh Pehli Baar - Pyaar Mein Kabhi Kabhi
- Kuch Toh Hua Hai - Kal Ho Na Ho
- My Dil Goes Mmm - Salam Namaste
- Jab Se Tere Naina - Saawariya
- Zara Muskura De - Pyaar Mein Kabhi Kabhi
- Ladki Kyun - Hum Tum
- Kuch Kum - Dostana
- Kya Maine Soche (one love) - Rakht
- Dil Leke - Wanted
- Chand Sifarish - Fanaa
- Dus Bahane - Dus
- Yeh Hawaien - Bas Itna Sa Khwab Hai
- Humdum Suniyo Re - Saathiya
- O Re Kanchi - Asoka
- Dekho Nashe mein - Race
- Naam Adaa Likhna - Yahaan
- Bum Bum Bole - Taare Zameen Par
- Subha ho Gayee Mamu - Munna Bhai M.B.B.S
- Thaare Vaaste - Shaka Laka Boom Boom
- Main Aisa Kyun Hoon - Lakshya
- Koi Kahe Kehta Rahe - Dil Chahta Hai
- Kuch Na Kaho - Kuch Na Kaho
- Tune Mujhe Pehchana Nhi - Raju Chacha
- Bhool Jaa - Aksar
- DON - DON - The Chase Begins Again
Enjoy!
Crook - It's Good To Be Bad is an upcoming Hindi thriller film starring
Emraan Hashmi and
Neha Sharma in lead roles. Directed by
Mohit Suri, the film is based on the racial attacks on Indians in Australia. The music has been composed by
Pritam which was released on 6 September and the film would be releasing on 8 October,
2010.
Right Click and choose 'Save Target As'. Enjoy!
Jhootha Hi Sahi is an upcoming romantic comedy Hindi film directed by
Abbas Tyrewala. The film stars
John Abraham and
Pakhi (Tyrewala's wife) in lead roles. The film also features
Raghu Ram (from
Roadies) in a supporting role (I am very excited to see him in a movie. Is he going to use the same Roadies language?? ). The music has been composed by none other than
A. R. Rahman. The film is expected to hit the theaters on 15 October,
2010.
First On Net to add Jhootha Hi Sahi Songs
Free Direct MP3 Links! Download Jhootha Hi Sahi songs
Right Click and choose 'Save target As'.
- Cry Cry - Rashid Ali & Shreya Ghoshal
- Hello Hello - Karthik
- Do Nishaniyan (Heartbreak Reprise) - Sonu Nigam
- Pam Pa Ra - Shreya Ghoshal
- Do Nishaniyan - Sonu Nigam
- Maiyya Yashoda (Jamuna mix) - Javed Ali & Chinmayi
- Call Me Dil - Rashid Ali
- I've Been Waiting - Vijay Yesudas
- Maiyya Yashoda (Thames mix) - Javed Ali & Chinmayi
Aakrosh is an upcoming action-thriller film, directed by
Priyadarshan. The film starrs many big names like
Ajay Devgn, Akshay Khanna, Bipasha Basu and
Paresh Rawal. The film is based on a very vital topic of Honour killings in Haryana. The music has been composed by
Pritam with lyrics from
Irshad Kamil. I am really impressed with the promos, looking forward to watching this blockbuster. The film is slated to be released on 1 October
2010.
Free Direct MP3 Links! Download Aakrosh songs,Right Click and choose 'Save target As'.
Labels:
2010,
Anang Desai,
Girish Sahdev,
Kailash Kher,
Kesar Majethia,
Khichdi,
Markand Soni,
Nimisha Vakharia,
Rajeev Mehta,
Shaan,
Supriya Pathak
I apologise to all our followers for not posting new songs in the past couple of weeks. MF and I had been very busy these days.
Khichdi The Movie is an adaptation from the popular TV show
Khichdi. The film stars nearly the same actors as in the show. The star cast includes
Supriya Pathak, Anang Desai, Rajeev Mehta, Girish Sahdev, Nimisha Vakharia, Kesar Majethia, Markand Soni. There are a few more actors in special appearances, which I'll not be mentioning as this post will become too big and boring. The film releases on 1 October,
2010.
Free Direct MP3 Links! Download Khichdi songs,Right Click and choose 'Save target As'. Rocker...
Allah Ke Banday is an upcoming Hindi film directed by
Faruk Kabir. The film stars
Sharman Joshi, Kabir Kabir and
Naseeruddin Shah in lead roles. The music has been composed by
Kailash Kher, Chirantan Bhatt & Hamza Faruqui. The film is supposed to be released on October 22,
2010.
Right Click and choose 'Save Target As'. Enjoy!
This film needs no introduction. The
Golmaal series has been superhit uptil now (though I didn't quite like the second movie). The film stars majority of the previous actors like
Ajay Devgn, Kareena Kapoor, Arshad Warsi, Tusshar Kapoor and
Shreyas Talpade, and we'll get to see some new faces as well this time such as
Kunal Khemu, Mithun Chakraborty, Ratna Pathak, Johnny Lever, Sanjay Mishra and
Vijay Pathak. (OMG! what a long starcast!).
The film has been directed by
Rohit Shetty and the music has been composed by
Pritam. It is set to release worldwide on 5 November,
2010.
Right Click and choose 'Save Target As'. Enjoy!
Guys, put your seat belts on and get ready for a ride into the past...
Vipul Amrutlal Shah is back with another romantic move but this time there is a twist. Its a science-fiction romantic comedy film.
Action Replayy is an upcoming film starring
Akshay Kumar and
Aishwarya Rai in lead roles. The other starcast of the film includes
Neha Dhupia, Om Puri, Kirron Kher, Randhir Kapoor and
Rajpal Yadav. The film is based on a Gujrati play
Action Replay. The music has been composed by
Pritam and the film is set to hit the big screen in November
2010.
Right Click and choose 'Save Target As'. Enjoy!
Enjoy!
Rocker...
Finally,
Sanjay Leela Bhansali is back. His upcoming Romantic film
Guzaarish stars the hit pair of
Jodha-Akbar, Aishwarya Rai and
Hrithik Roshan. It would be interesting to see how this pair performs this time as the last few releases of
Hrithik, Aishwarya and
Bhansali himself have been very poor. The music of the film has been composed by
Sanjay Leela Bhansali himself. The film would hit the theaters on November 19,
2010.
The official music release was supposed to be on 15 October but they have already been
leaked on Net.
First On Net to add Guzaarish Songs
Free Direct MP3 Links! Download Guzaarish songs,
Right Click and choose 'Save target As'.
- Guzaarish - KK & Shail Hada
- Sau Gram Zindagi - Kunal Ganjawala
- Tera Zikr - Shail Hada & Rakesh Pandit
- Saiba - Vibhavari Joshi, Francois Castellino & Shail Hada
- Jaane Kiske Khwaab - K.K
- Udi - Sunidhi Chauhan & Shail Hada
- Keh Na Saku - Shail Hada
- Chaand Ki Katori - Harshdeep Kaur
- Daayein Baayein - K.K
- Dhundhli Dhundhli - Shankar Mahadevan
Break Ke Baad is an upcoming romantic Hindi film starring
Deepika Padukone and
Imran Khan in lead roles. The film has been directed by
Danish Aslam and produced under the banner of
Kunal Kohli. The film also stars
Sharmila Tagore, Sahana Goswami, Yudhishtr Urs, Navin Nischol and
Lillete Dubey in supporting roles. The music has been composed by
Vishal-Shekhar. The film is set to release on 26 November
2010.
- Adhoore - Vishal Dadlani & Alyssa Mendonsa
- Ajab Leher - Neeraj Shridhar, Shekhar Ravjiani & Vishal Dadlani
- Dhoop Ke Makaan - Shekhar, Sunidhi Chauhan, Caralisa & Mikey
- Dooriyan Hain Zaroori - Vishal Dadlani & Monica Dogra
- Main Jiyoonga - Nikhil D’Souza, Mikey Mcclearyu & Gino Banks
- Don’t Worry About Me - Vishal Dadlani
- Adhoore (Remix) - Vishal Dadlani & Alyssa Mendonsa
- Dhoop Ke Makaan (Acoustic) - Shekhar Ravjiani & Sunidhi Chauhan
Hisss is an upcoming film staring
Mallika Shehrawat in lead role. The film has been directed by
Jennifer Lynch. The starcast of the film includes
Divya Dutta, Priyanka Rawat, Irrfan Khan &
Jeff Doucette. The film was shot simultaneously in English and Hindi and will be released in half a dozen languages. Honestly, I don't have much expectations from this film. The promos aren't that exciting. The scheduled release in India is on 22 October
2010.
Free Direct MP3 Links! Download Hisss songs,Right Click and choose 'Save target As'. - Lagi Lagi Milan Dhun Lagi - Shreya Ghoshal
- Beyond The Snake - Various
- Sway (Mann Dole) - Mallika Sherawat
- I Got That Poison (Hisss Remix) - Shweta Pandit
- Lagi Lagi Milan Dhun Lagi - Sunidhi Chauhan
- Hisss - Various
- Lafanaa - Sunidhi Chauhan
Rakht Charitra is a Hindi Biographical film based on the life of
Paritala Ravi. The film stars
Vivek Oberoi in the lead role. The film has been produced and directed by
Ram Gopal Verma. The film is quite long, as a result it will be released in two parts with an interval of 3 weeks. The first part releases on 22 October
2010 and the second part releases on 19 November
2010.
Right Click and choose 'Save target As'.
- Paise Wala - Sukhwinder Singh
- Khaul Khaul Ke - Various Artist
- Mila Toh Marega - Ravindra Upadhyay & Sandeep Patil
- Har Jazbe Mein - Sukhwinder Singh
- Maar De - Various Artist
- Kaaton Se - Suresh Wadkar
- Karma Dharma - Various Artist
- Paise Wala (Remix) - Sukhwinder Singh & Sumitra Iyer
Question Answer Of SS ((Download))Shared By:Keval Nagaria(JVIMS MCA Jamnagar)
Full SS by Keval.ppt ((Download))Shared By:Keval Nagaria(JVIMS MCA Jamnagar)
Important Questions of SS ((Download))Shared By:Dipali Patel(B.H.GARDI - Rajkot)
Home >> Sem 3 >> 630007 - Programming Skills-V (OS) [3/3]
21. Write a script to check whether a given number is...
21 Write a script to check whether a given number is palindrome or not. ****************************************************************** clear echo "ENTER NUMBER :=" read number rem=0 i=10 revnumber=0 for((;number>0;)) do let revnumber=" revnumber * 10 " let rem=" number % 10 " let number=" number / 10 " let revnumber=" revnumber + rem " done echo -e "\nREVERSE NUMBER :-\c" & echo $revnumber ~ ~ ~ ~ ~ ENTER NUMBER :=\c 435621 REVERSE NUMBER :-126534 [divya@linux ~]$ ******************************************************************
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
22. Write a script to display all words of a file in ascending order.
22.Write a script to display all words of a file in ascending order. ****************************************************************** echo " Enter File Name" read fname sort $fname or echo -e "\n enter File name " read fn for i in `cat $fn` do echo $i >> f2.txt done sort f2.txt rm f2.txt ~ ~ [divya@linux ~]$ cat > f1 z x y w n h t r u a b c [11]+ Stopped cat > f1 [divya@linux ~]$ sh 22.sh enter File name f1 a b c h n r t u w x y z
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
23. Write a script to display all lines of a file in ascending order.
23. Write a script to display all lines of a file in ascending order. echo " Enter File Name" read fname sort $fname /* output [mca0914@ctilinux-1 mca0914]$ sh 23.sh Enter File Name second.txt 1 10 2 4 40 5 8 */
24. Write a script to display the last modified file.
#!/usr/bin/env bash # GTU24: Write a script to display the last modified file. # Code written By: Rushyang Darji # Visit My Online Repository: "http://github.com/rushyang/GTU-OS-Bash-Scripts" for regular updates and more scripts. # Final Build: 19.10.2010 while true; do # -e enables readline, which means you can use tab-completion. & -p prints whatever's written in "" before taking the path # The ''|| exit'' makes the script exit if read returns false, which it # will if the user hits Ctrl+C amongst other. read -e -p "Enter Directory: " path || exit # if path contains an existing directory, break out of this infinite loop. [[ -d $path ]] && break echo "Invalid Path, Try Again!" done cd $path # cd $path is inevitable because of * in use of ls. ls * -dpltr | grep -v '/$' | tail -n1 # Here, observe '*' after ls. You must specify a wildcard pattern for indicating all files first. # This is because the -d option specifies that only directory names should listed. # Moreover, -p puts an indicator at the end of "directories", which will be stripped by grep inverse. # Once we have neglected directories, we can list(-l) "ONLY FILES" from current working directory sorted by it's modified time (-t) in reverse order (-r). The most last one will be fetched by tail. cd $OLDPWD # OLDPWD is the env var, which always remembers our "PREVIOUS WORKING DIRECTORY". Enter `env | grep OLDPWD` to see it. # 'cd -' will also lead us into last working directory. But then also we don't need to print it on Terminal while executing it.
25. Write a shell script to add the statement #include ...
#!/usr/bin/env bash # Code written By: Rushyang Darji # Visit My Online Repository: "http://github.com/rushyang/GTU-OS-Bash-Scripts" for regular updates and more scripts. # Final Build: 02.10.2010 while true; do read -e -p "Enter Directory: " path || exit [[ -d $path ]] && break echo "Invalid path! Try Again!" done path=${path%/} myargs=`grep -l -e "printf" -e "fprintf" $path/*.c | xargs` if [ $? -gt 1 ]; then # grep exits with status 1 when no matches were found. echo -n "No Matches were found. " && exit fi temp=$(mktemp tmp.XXXXXXXXX) for i in $myargs # Here, grep has the exit status 0. do echo "Do you want to add '#include ' to $i?" read S case $S in Y|y|YES|Yes|yes|yeah) sed '1i\ #include' "$i" > "$temp" # i for insertion, 1 for 1st line. $i is the file to insert. and all output will be redirected to $temp mv "$temp" "$i" # renaming $temp by over writing to $i ;; n|N|NO|no|No|nope) echo "Alright! Next.." shift ;; *) echo "Invalid input." ;; esac done if [ -z $myargs ]; then echo "No Matches were found. Try another Directory" else clear head -n5 $path/*.c | less fi rm $temp ######################## OR ######################## #!/usr/bin/env bash # GTU25: Write a shell script to add the statement #include at the beginning of every C source file in current directory containing printf and fprintf. # Code written By: Rushyang Darji # Visit My Online Repository: "http://github.com/rushyang/GTU-OS-Bash-Scripts" for regular updates and more scripts. # Final Build: 19.08.2010 # If you want to rename and include all ".C" files too, Refer GTU26.sh myargs=`grep -l -e "printf" -e "fprintf" *.c | xargs` if [ $? -gt 1 ]; then # grep has exit status 1 when no matches were found. echo -n "No Appropriate Matches were found. " fi for i in $myargs # Here, grep has the exit status 0. do echo "Do you want to add '#include ' to $i?" read S case $S in Y|y|YES|Yes|yes|yeah) sed '1i\ #include' "$i" > $$ # i for insertion, 1 for 1st line. $i is the file to insert. and all output will be redirected to $$ (or you can say temp... Actually $$ returns terminal id. but when output is directed to it, a file is made) mv $$ $i # renaming $$ by over writing to $i ;; n|N|NO|no|No|nope) echo "Alright!" shift ;; *) ;; esac done if [ -z $myargs ]; then echo "No Matches were found. Try another Directory" else clear head -n5 *.c | less fi
26. Write a script that behaves both in interactive and...
# !/usr/bin/env bash Rushyang Darji (SVIT -Vasad ) # 26. Interactive - non-interactive shell script to prompt and delete c files within the given or predefined current directory. # # Code Developed By: Rushyang Darji # Init. Build: 06.08.2010 # Last Build: 19.10.2010 N=$# ext=c if test "$N" -eq "0"; then while true; do # Same inifinite loop as we used in GTU24 read -e -p "Enter Path: " path || exit [[ -d $path ]] && break echo "Invalid Path, Try Again!" done path=${path%/} # Removes last / from the end of the path. Though, it's not compulsion to do so because /foo/bar and /foo//////bar is considered exactly the same! for i in $path/*.C do if [ "$i" != $path/'*.C' ]; then # If there is no match, Value of i will be ''$path/*.C''. & That's why there is no need to rename. mv "$i" "${i/.C/}".c # Renames every .C files to .c, so that we can use it afterwards in same loop. clear fi done for i in $path/*."$ext" do if [ "$i" != "$path"/'*.c' ]; then # If there is no ".C FILE" exist in that directory, it will switch to else. clear echo "File is $i" head -n10 "$i" | nl # head for displaying First 10 lines, nl for numbering them on terminal. sleep 1 # Halt for 1 second rm -i "$i" # -i for interactive prompt. # Remember, "" around $i is super necessary! Because except it, you'll get an error with filenames containing spaces. else echo "There are no matching \"C\" files to Prompt in this directory." sleep 2 clear=no fi done if test "$clear" != "no"; then # If clear=no then there are no C Files to display. clear echo "Remaining C files in the Directory..." ls -1 $path/*.c # 1 result per line (-1) fi else # Else part contains, where user passes the name of C files, which should exist in the current working directory as the parameter. for i in $path/*.C do if [ "$i" != $path/'*.C' ]; then # if There are no matches ie if there is no C file in given dir, 'i' will be ''$path/*.C'' mv "$i" "${i/.C/}".c # Renames every .C files to .c clear fi done for i in $* # When filenames are passed as parameters. do clear i="${i/.c/}" # Removes an extension from file variable 'i' Only in the case of extension is also passed within the filename parameter. i="$(pwd)/$i.c" # Makes i the complete path of a file, including extension.. # Last two lines are necessary because user, may and may not enter filename including extension. if [ -f "$i" ]; then # Checks for the existence of given filename, into pwd echo "File name is $i" head -n10 "$i" | nl sleep 1 rm -i "$i" else # Error for non-Existent files. echo "There is no such a file with name: \"$i\" in current working directoy" sleep 3 fi done clear echo "Remaining C files in the Directory..." ls -1 *.c sleep 1 fi
27. Write a script that deletes all leading and trailing spaces...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
Home >> mca >> Sem 3 >> 630007 - Programming Skills-V (OS) [2/3]
11. Write a script to display the directory in the descending...
11 Write a script to display the directory in the descending order of the size of each file. ************************************************************************************************************************************ echo -n "Enter directory name : " read dname ls $dname > file echo "No of files in directory : $(grep [^*$] file-c)" rm -f file ls | sort -r find . -size +1000c -print or echo Enter Directory read direc cd $direc ls -Sl ~ "111.sh" 5L, 51C written [divya@linux ~]$ sh 111.sh Enter Directory d1 total 28 drwxrwxr-x 3 divya divya 4096 2010-08-10 17:10 jk -rw-rw-r-- 1 divya divya 27 2010-09-18 16:36 second -rw-rw-r-- 1 divya divya 18 2010-10-04 11:50 first -rw-rw-r-- 1 divya divya 0 2010-09-27 16:17 file ******************************************************************
11. Write a script to display the directory in the descending order of the size of each file. echo Enter Directory read direc cd $direc ls -Sl
12. Write a script to implement the following commands:...
13. Write a script for generating a mark sheet after reading...
13. Write a script for generating a mark sheet after reading data from a file. File contains student roll no, name , marks of three subjects. ****************************************************************** count=1 total=0 per=0 rem1=0 wc -l s > temp echo "************************************************************" >>s.out echo " Students Result Are As Follows....." >> s.out echo "************************************************************" >> s.out echo "Rno NAME SUB1 SUB2 SUB3 TOTAL PERCENTAGE GRADE RESULT" >> s.out echo "************************************************************" >> s.out while [ $count -le `awk '{print $1}' temp` ] do let total=0 head -$count s > temp1 tail -1 temp1 > temp2 rollno=`awk '{print $1}' temp2` name=`awk '{print $2}' temp2` sub1=`awk '{print $3}' temp2` sub2=`awk '{print $4}' temp2` sub3=`awk '{print $5}' temp2` let total=$total+`awk '{print $3}' temp2` let total=$total+`awk '{print $4}' temp2` let total=$total+`awk '{print $5}' temp2` echo "STUDENT NAME IS :" `awk '{print $2}' temp2` echo "TOTAL IS :" $total let per=`expr $total / 3` let rem1=`expr $total % 3` if test $rem1 -ne 0 then let per=$per+1 fi echo "PERCENTAGE IS :" $per if [ $per -ge 70 ] then grade="A+" elif test $per -ge 60 then grade="A" elif test $per -ge 50 then grade="B" elif test $per -ge 45 then grade="C" fi echo "GRADE IS :" $grade let count=$count+1 #WRITING DATA INTO THE OUTPUT FILE echo $rollno $name " " $sub1 " " $sub2 " " $sub3 " " $total " " $per " " $grade >> s.out echo "-----------------------------------------------------" >> s.out done rm temp rm temp1 rm temp2 output [divya@linux ~]$ cat s 1 divya 40 30 70 2 Raj 60 40 90 [divya@linux ~]$ sh 131.sh ************************************************************ Students Result Are As Follows..... ************************************************************ Rno NAME SUB1 SUB2 SUB3 TOTAL PERCENTAGE GRADE RESULT ************************************************************ STUDENT NAME IS : divya TOTAL IS : 140 PERCENTAGE IS : 47 GRADE IS : C 1 divya 40 30 70 140 47 C ----------------------------------------------------- STUDENT NAME IS : Raj TOTAL IS : 190 PERCENTAGE IS : 64 GRADE IS : A 2 Raj 60 40 90 190 64 A ----------------------------------------------------- ******************************************************************
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
14. Write a script to make following file and directory management...
#!/usr/bin/env bash # Code written By: Rushyang Darji # Last Updated: 13.08.2010 # Visit My Online Repository: "http://github.com/rushyang/GTU-OS-Bash-Scripts" for regular updates and more scripts. : << -- 14. Write a script to make following file and directory management operations menu based: Display current directory List directory Make directory Change directory Copy a file Rename a file Delete a file Edit a file -- while true; do sleep 1 echo -e "\n" echo -e " 1. Display current directory 2. List directory 3. Make directory 4. Change directory 5. Copy a file 6. Rename a file 7. Delete a file 8. Edit a file 9. Exit Enter your choice: \c" read selection clear case $selection in 1) pwd ;; 2) ls -l ;; 3) echo -n "Enter name of directory you wanna make: " read DIR mkdir "$DIR" if [ "$?" == "0" ]; then echo "Directory $DIR made successfully!" sleep 1 ls -l fi ;; 4) echo -n "Enter the Absolute Path to change the directory: " read -e apath cd $apath if [ $? -eq 0 ]; then echo "Working path changed successfully!" sleep 1 pwd fi ;; 5) echo -n "Enter name of file: " read filename echo -n "Copy where? " read -e apath cp $filename $apath if [ $? -eq 0 ]; then sleep 1 echo "File $filename copied successfully to $apath" fi ;; 6) echo -n "Enter old name of the file: " read oname echo -n "Enter new name: " read nname mv $oname $nname ;; 7) echo -n "Enter filename to delete: " read fdel if [ -f $fdel ]; then rm -i $fdel fi ;; 8) echo -n "Enter filename to open it in Text Editor: " read filename vi $filename ;; 9) clear echo "============ HAVE A NICE DAY ============" sleep 2 clear exit ;; *) echo "Invalid choice, Please try again!: " ;; esac done
14 Write a script to make following file and directory management operations menu based: ****************************************************************** Display current directory List directory Make directory Change directory Copy a file Rename a file Delete a file Edit a file ****************************************************************** clear choice=y while [ "$choice" = "y" ] do echo " MAIN MENU " echo "***************************" echo "1 - DISPLAY CURRENT DIRECTORY" echo "2 - LIST DIRECTORY" echo "3 - MAKE DIRECTORY" echo "4 - CHANGE DIRECTORY" echo "5 - COPY A FILE" echo "6 - RENAME A FILE" echo "7 - DELETE A FILE" echo "8 - EDIT A FILE" echo "9 - EXIT" echo "ENTER THE CHOICE :- " read choice case $choice in 1) echo "DISPLAYING CURRENT DIRECTORY" pwd ;; 2) echo "\nLIST THE CURRENT DIRECTORY" ls -l read ;; 3) echo "\nMAKE A NEW DIRECTORY" echo "\nENTER THE DIRECTORY NAME :-\c" read dirname mkdir "$dirname" read dirname ;; 4) echo "\nCHANGE THE CURRENT DIRECTORY" echo "\nENTER THE DIRECTORY TO WHICH YOU WANT TO read dirname pwd cd .. ;; 5) echo "\nCOPY THE GIVEN FILE TO THE GIVEN DESTINAT echo "\nENTER THE FILE TO COPY :- \c" read file echo "\nENTER THE DESTINATION TO COPY :- \c" read destin cp "$file" "$destin" ;; 6) echo "\nRENAMING THE GIVEN FILE" echo "\nENTER THE FILE TO RENAME :- \c" read file1 echo "\nENTER THE NEW NAME :- \c" read file2 mv "$file1" "$file2" ;; 7) echo "\nDELETING THE GIVEN FILE" echo "\nENTER THE FILE TO DELETE :- \c" read file rm "$file" ;; 8) echo "\nEDITING A GIVEN FILE" echo "\nENTER FILE TO EDIT :- \c" read file vi "$file" :q ;; 9) exit ;; *) echo "Invalid Choice ....." ;; esac echo -e "Do u want to continue.....? [y/n]" read choice case $choice in Y|y) choice=y;; N|n) choice=n;; *) choice=y;; esac done output MAIN MENU *************************** 1 - DISPLAY CURRENT DIRECTORY 2 - LIST DIRECTORY 3 - MAKE DIRECTORY 4 - CHANGE DIRECTORY 5 - COPY A FILE 6 - RENAME A FILE 7 - DELETE A FILE 8 - EDIT A FILE 9 - EXIT ENTER THE CHOICE :- 1 DISPLAYING CURRENT DIRECTORY /home/Raj [Divya@linux ~]$ ENTER THE CHOICE :- 2 \nLIST THE CURRENT DIRECTORY total 96 -rw-rw-r-- 1 Raj Raj 1590 2010-07-26 16:27 14.sh -rw-rw-r-- 1 Raj Raj 21 2010-07-26 16:33 d drwxrwxr-x 2 Raj Raj 4096 2010-07-26 16:28 divya drwxrwxr-x 4 Raj Raj 4096 2010-07-26 16:22 family -rw-rw-r-- 1 Raj Raj 232 2010-07-23 16:39 fib.sh -rw-rw-r-- 1 Raj Raj 171 2010-07-26 16:52 log.sh -rw-rw-r-- 1 Raj Raj 9 2010-07-26 16:15 palin -rw-rw-r-- 1 Raj Raj 288 2010-07-26 16:48 pal.sh -rw-rw-r-- 1 Raj Raj 167 2010-07-26 14:19 pm.sh drwxrwxr-x 3 Raj Raj 4096 2010-07-24 16:38 r -rw-rw-r-- 1 Raj Raj 304 2010-07-26 16:55 time.sh -rw-rw-r-- 1 Raj Raj 264 2010-07-24 16:29 zero.sh ENTER THE CHOICE :- 3 \nMAKE A NEW DIRECTORY \nENTER THE DIRECTORY NAME :-\c divya1 [Divya@linux ~]$ ls 14.sh divya family log.sh pal.sh r zero.sh d divya1 fib.sh palin pm.sh time.sh ENTER THE CHOICE :- 5 \nCOPY THE GIVEN FILE TO THE GIVEN DESTINATION \nENTER THE FILE TO COPY :- \c d \nENTER THE DESTINATION TO COPY :- \c t [Divya@linux ~]$ cat t target +destinatyion ENTER THE CHOICE :- 6 \nRENAMING THE GIVEN FILE \nENTER THE FILE TO RENAME :- \c d \nENTER THE NEW NAME :- \c dest [Divya@linux ~]$ ls 14.sh divya family log.sh pal.sh r time.sh dest divya1 fib.sh palin pm.sh t zero.sh ENTER THE CHOICE :- 7 \nDELETING THE GIVEN FILE \nENTER THE FILE TO DELETE :- \c t [Divya@linux ~]$ ls 14.sh divya family log.sh pal.sh r zero.sh dest divya1 fib.sh palin pm.sh time.sh ENTER THE CHOICE :- 8 \nEDITING A GIVEN FILE \nENTER FILE TO EDIT :- \c dest target +destinatyion rr Insert mode and save [Divya@linux ~]$ cat dest target +destinatyion rr ******************************************************************
************************************************************************************************* pro14. Write a shell script to make the following file and management operations menu based: a) Display the current directory. b) List directory. c) Make directory. d) Change directory. e) Copy of a file. f) Rename a file. g) Delete a file. h) Edit a file. ************************************************************************************************* choice=y while [ "$choice" = "y" ] do echo -e " MENU " echo -e "1. Display the current directory" echo -e "2. List directory" echo -e "3. Make directory" echo -e "4. Change directory" echo -e "5. Copy of a file" echo -e "6. Rename a file" echo -e "7. Delete a file" echo -e "8. Edit a file" echo -e "9. Exit" echo "\n Enter your Choice :- " read choice case "$choice" in 1) pwd;; 2) ls;; 3) echo -e "enter the name of new directory to be created" read dir1 mkdir $dir1;; 4) cd;; 5) echo -e "enter the source and destination files" read f1 read f2 cp $f1 $f2;; 6) echo -e "enter the old and new names of files" read f1 read f2 mv $f1 $f2;; 7) echo -e "which file to be removed" read fname rm $fname;; 8) echo -e "which file should be edited" read fname vi $fname;; 9) exit;; esac echo -e "Do u want to continue.....? [y/n]" read choice case $choice in Y|y) choice=y;; N|n) choice=n;; *) choice=y;; esac done
/* 14. Write a script to make following file and directory management operations menu based: Display current directory List directory Make directory Change directory Copy a file Rename a file Delete a file Edit a file */ echo " 1...Display current Directory" echo " 2...List Directory" echo " 3...Make directory " echo " 4...Change directory " echo " 5...Copy a file " echo " 6...Rename a fIle " echo " 7...Delete a file " echo " 8...Edit a file " echo " Enter Your Choice: " read ch case $ch in 1) pwd ;; 2) ls ;; 3) echo Enter directory name to make read dir_name mkdir $dir_name ;; 4) cd ;; 5) echo Enter two file name to copy read f_name1 f_name2 cp $f_name1 $f_name2 ;; 6) echo Enter file name to rename read fname mv $fname ;; 7) echo Enter file name to delete read fname rm $fname ;; 8) echo Enter file name to edit read fname vi $fname ;; *) echo You hv entered wrong choice ;; esac
15. Write a script which reads a text file and output the following...
15.Write a script which reads a text file and output the following Count of character, words and lines. File in reverse. Frequency of particular word in the file. Lower case letter in place of upper case letter. ****************************************************************** echo -e "\n Enter Filename : " read filen echo "--------------------------------------------------------------" echo " MENU " echo "--------------------------------------------------------------" echo " a) Count the no. of char.s, words, lines." echo " b) Display a file in reverse." echo " c) Count the no. of occurrences of a particular word." echo " d) Convert Lower case to UppeCase" echo "--------------------------------------------------------------" echo -e "\n Enter Your Choice : " read c case "$c" in a) echo -e "\n Total lines,words,char.s " ; wc $filen ;; b) rev $filen read buf;; c) echo -e "\nEnter word to find :" read w for i in `cat $filen` do echo $i >> f1.txt done echo -e "Total no. of words= \c" ;grep -c $w f1.txt grep $w f1.txt rm f1.txt;; *) echo "Invalid choice" esac ~ ~ "15.sh" 28L, 894C written [divya@linux ~]$ sh 15.sh Enter Filename : s -------------------------------------------------------------- MENU -------------------------------------------------------------- a) Count the no. of char.s, words, lines. b) Display a file in reverse. c) Count the no. of occurrences of a particular word. d) Convert Lower case to UppeCase -------------------------------------------------------------- Enter Your Choice : a Total lines,words,char.s 7 22 193 s [divya@linux ~]$ sh 15.sh Enter Filename : b -------------------------------------------------------------- MENU -------------------------------------------------------------- a) Count the no. of char.s, words, lines. b) Display a file in reverse. c) Count the no. of occurrences of a particular word. d) Convert Lower case to UppeCase -------------------------------------------------------------- Enter Your Choice : b rev: b: No such file or directory [5]+ Stopped sh 15.sh [divya@linux ~]$ sh 15.sh Enter Filename : s -------------------------------------------------------------- MENU -------------------------------------------------------------- a) Count the no. of char.s, words, lines. b) Display a file in reverse. c) Count the no. of occurrences of a particular word. d) Convert Lower case to UppeCase" -------------------------------------------------------------- Enter Your Choice : b akram eman on llor 05 ilahsiav 1 04 jariv 2 05 lanos 3 03 layap 4 04 lahen 5 06 layap 6 [6]+ Stopped sh 15.sh [divya@linux ~]$ sh 15.sh Enter Filename : s -------------------------------------------------------------- MENU -------------------------------------------------------------- a) Count the no. of char.s, words, lines. b) Display a file in reverse. c) Count the no. of occurrences of a particular word. d) Convert Lower case to UppeCase -------------------------------------------------------------- Enter Your Choice : c Enter word to find : payal Total no. of words= 2 payal payal [divya@linux ~]$ sh 15.sh Enter Filename : s -------------------------------------------------------------- MENU -------------------------------------------------------------- a) Count the no. of char.s, words, lines. b) Display a file in reverse. c) Count the no. of occurrences of a particular word. d) Convert Lower case to UppeCase -------------------------------------------------------------- Enter Your Choice : d ROLL NO NAME MARKs 1 VAISHALI 50 2 VIRAJ 40 3 SONAL 50 4 PAYAL 30 5 NEHAL 40 6 PAYAL 60 [divya@linux ~]$ ***************************************************************
************************************************************************************************ pro15. Write a script which reads a text file and output the following: I) Count of characters, words, lines. II) File in reverse." III) Frequency of particular word in the file. IV) Lower case letters in place of uppercase alphabets. ************************************************************************************************ echo -e "\n Enter Filename : \c" read filen echo "--------------------------------------------------------------" echo " MENU " echo "--------------------------------------------------------------" echo " a) Count of characters, words, lines." echo " b) File in reverse." echo " c) Frequency of particular word in the file.word." echo " d) Lower case letters in place of uppercase alphabets." echo "--------------------------------------------------------------" echo -e "\n Enter Your Choice : \c" read c case "$c" in a) echo -e "\n Total lines,words,char.s \c" ; wc $filen ;; b) rev $filen read buf;; c) echo -e "\nEnter word to find : \c" read w for i in `cat $filen` do echo $i >> f1.txt done echo -e "Total no. of words= \c" ;grep -c $w f1.txt grep $w f1.txt rm f1.txt ;; d) echo "Enter the text (Enter ctrl+D for end>:" cat > temp.txt echo "See temp.txt file for output..." tr [a-z] [A-Z] <>
15. Write a script which reads a text file and output the following Count of character, words and lines. File in reverse. Frequency of particular word in the file. Lower case letter in place of upper case letter. echo "Enter File Name" read fname echo " 1...Count character,words and lines 2...Reverse File 3...Found frequency of word 4...Convert upper to lower 5...Convert lower to upper ------------------------------------" echo "Enter Choice: " read ch case $ch in 1) echo Total Character: wc -c $fname echo Total Words: wc -w $fname echo Total Lines: wc -l $fname ;; 2) rev $fname ;; 3) echo Enter word to find read w echo Frequency: grep -c "$w" $fname ;; 4) echo Enter Text read text echo $text | tr "[A-Z]" "[a-z]" ;; 5) echo Enter Text read text echo $text | tr "[a-z]" "[A-Z]" ;; *) echo Wrong Choice ;; esac /* output [mca0914@ctilinux-1 mca0914]$ sh 15.sh Enter File Name abc.txt 1...Count character,words and lines 2...Reverse File 3...Found frequency of word 4...Convert upper to lower 5...Convert lower to upper 6...-------------------------------- Enter Choice: 1 Total Character: 15 abc.txt Total Words: 4 abc.txt Total Lines: 2 abc.txt ****************************************************** Enter Choice: 2 olleH ?u r woH ****************************************************** Enter Choice: 3 Frequency: 2 ****************************************************** Enter Choice: 4 Enter Text HET het ****************************************************** Enter Choice: 5 Enter Text het HET ******************************************************
16. Write a shell script to check whether the named user is...
#!/usr/bin/env bash # Code written By: Rushyang Darji # My Online Repository: http://github.com/rushyang/GTU-OS-Bash-Scriptss : << -- This shell script will verify whether the user is logged in or not. -- echo -e "Enter username to verify whether he is logged in or not: \c" read myname who | awk '{print $1}' > allusers_dummy.log sed -n /^$myname$/p allusers_dummy.log > finalusers_dummy.log SIZE=`ls -s finalusers_dummy.log | awk '{ print $1 }'` if [ $SIZE -eq 0 ]; then echo "User is not logged in" else echo "User: $myname is currently logged in" sleep 2 who | sed -n /^$myname/p fi rm allusers_dummy.log rm finalusers_dummy.log # OR #!/usr/bin/env bash # Code written By: Rushyang Darji # My Online Repository: http://github.com/rushyang/GTU-OS-Bash-Scripts echo -e "Enter name of user: \c" read myname finaluser=`who | awk '{print $1}' | sed -n /^$myname$/p | head -n1` if [ "$myname" = "$finaluser" ]; then echo "User is currently logged in." sleep 1 who | sed -n /^$myname/p else echo "User is not currently logged in. " fi
16.Write a shell script to check whether the named user is currently logged in or not **************************************************************************************** clear echo -e "Enter The User name : " read name (who | grep $name ) && clear echo "The User " $name && echo " Is Currently Logged In " || echo "is logged out" ~ ~ ~ ~ ~ ~ ~ ~ Output Enter The User name : Raj The User Raj Is Currently Logged In [Divya@linux ~]$ *************************************************************
kuldeep-SSIT ************************************************************************************************ 10. To Find That Given User is Currently Logged In Or Not. ************************************************************************************************ clear echo "Enter The User name :\c " read name >>temp echo "The User \c " $name (who | grep $name >> temp ) && echo " Is Currently Logged In " || echo "is not logged in" ************************************************************************************************ OR **** #message Broadcast for a Single User,Multiple Users and to All# who > e.txt echo "For Broadcasting Messages." if [ $# = 0 ] then echo "Enter the User Name:\c" read nam p=`grep $nam e.txt` if [ "$p" != "" ] then write $nam rm e.txt exit else echo "The user is not logged in" fi rm e.txt exit fi if [ "$1" = "all" ] then wall fi for nam in $* do p=`grep $nam e.txt` if [ "$p" != "" ] then write $nam else echo "The User $nam is not logged in" fi done ************************************************************************************************ #OR **** echo "enter user name" read n who | grep "^$n" if [ $? -eq 0 ] then echo "currently log in" else echo "not log in" fi ************************************************************************************************
17. Write a Script for Simple Database Management System...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
18. Write A Script To Perform Following String Operations...
/*18. Write A Script To Perform Following String Operations Using Menu: COMPARE TWO STRINGS. JOIN TWO STRINGS. FIND THE LENGTH OF A GIVEN STRING. OCCURRENCE OF CHARACTER AND WORDS E. REVERSE THE STRING. */ while true do echo --------------------------------------- echo 1...COMPARE TWO STRINGS echo 2...JOIN TWO STRINGS echo 3...FIND THE LENGTH OF A GIVEN STRING echo 4...OCCURRENCE OF CHARACTER AND WORDS echo 5...REVERSE THE STRING echo --------------------------------------- echo Enter Choice: read ch echo --------------------------------------- case $ch in 1) echo Enter String1: read str1 echo Enter String2: read str2 if [ $str1 = $str2 ] then echo String is equal else echo String is not equal fi ;; 2) echo Enter String1: read str1 echo Enter String2: read str2 str3=$str1$str2 echo Join String: $str3 ;; 3) length=0 echo Enter String1: read str1 length=`expr $str1 | wc -c` length=`expr $length - 1` echo Length: $length ;; 4) echo Enter String: read str echo Enter Word to find read word echo $str | cat > str1.txt grep -o $word str1.txt | cat > str2.txt count=`grep -c $word str2.txt` echo Count: $count ;; 5) echo Enter String1: read str len=`expr $str | wc -c` len=`expr $len - 1` while [ $len -gt 0 ] do rev=`expr $str | cut -c $len` ans=$ans$rev len=`expr $len - 1` done echo Reverse String: $ans ;; *) echo Wrong Choice ;; esac echo Do u want to continue? read ans if [ $ans = n ] then exit fi done
19. Write a script to calculate gross salary for any number...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
20. Write a script to check whether a given string...
/* 20. Write a script to check whether a given string is palindrome or not. */ echo Enter String read str length=0 cnt=1 flag=0 length=`expr $str | wc -c` length=`expr $length - 1` temp=`expr $length / 2` while test $cnt -le $temp do rev=`expr $str | cut -c $cnt` ans=`expr $str | cut -c $length` if [ $rev != $ans ] then flag=1 fi cnt=`expr $cnt + 1` length=`expr $length - 1` done if [ $flag -eq 0 ] then echo String is palindrome else echo String is not palindrome fi