An interesting for loop I want to play with.
authorpatrick nsukami <ndkpatt@gmail.com>
Thu, 19 Feb 2015 00:45:52 +0000 (00:45 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Thu, 19 Feb 2015 00:45:52 +0000 (00:45 +0000)
.bash_function

index f6b4a7c..4902983 100644 (file)
@@ -2,6 +2,12 @@
 # my weird function file
 # lots of this coming from http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming
 
 # my weird function file
 # lots of this coming from http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming
 
+my_mount_set_of_partition(){
+    # Mount set of partitions for recovery.
+    for i in {1..12}; do
+        mkdir /media/sdd$i && mount -o ro /{dev,media}/sdd$i || rmdir /media/sdd$i ;
+    done
+}
 
 my_copy_file_to_clipboard() {
     local filecontent=$1
 
 my_copy_file_to_clipboard() {
     local filecontent=$1