Hi Everyone,
The following is the script which unrar the files :

for x in *.rar; do mkdir "${x%.rar}" && cd "${x%.rar}" && unrar x "../$x" && cd ..; done
If I am using the sript its extracting the same files into different folders. Also here is a screenshot :-



But I want A Script That Will Give Me An Output Like The Following Screenshot.




I'm a new user in Ubuntu 9.04 & need a bash script which would delete all the rar files after extraction.

Thanks. TC. Peace Out.

Orb.
orbofdarkness Reviewed by orbofdarkness on . Need A Bash Script Hi Everyone, The following is the script which unrar the files : If I am using the sript its extracting the same files into different folders. Also here is a screenshot :- http://www.besthostingforums.com/images/cdn/besthostingforums.com/2010/02/qov9ud-1.jpg But I want A Script That Will Give Me An Output Like The Following Screenshot. Rating: 5