Monthly Archives: August 2009

Network Manager 0.7 Multiple Simultaneous Connections!

Four network connections active at the same time: 3G connection (etisalat USB modem) 2 wireless networks with 2 different wireless cards (the internal card and another external one) 1 wired connection This is EXTREMELY useful and I gained a lot … Continue reading

Tagged , , | Leave a comment

How to run a script in startup

I needed this feature to run a “read-only” mount for windows file system on startup (because I always hibernate Windows, so Ubuntu can’t mount it “read-write” by default on startup) 1- Write the script in a file and save it … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

How To Write Infinite Loop in Bash

This is how you create an infinite loop in bash to run a piece of code infinitely at defined intervals. #!/bin/bashwhile [ 1 ]do # Your code goes here # Modify sleep time (in seconds) as needed below sleep 2done … Continue reading

Tagged | Leave a comment

find files and copy them to a certain folder in bash (draft)

find . -name “*” | grep -i scomm | xargs ls -ltr | grep “Aug 13 10” | awk ‘{print $9}’ to use in the cp command (get the column number 9 which contains the file’s full path cp `find … Continue reading

Tagged , , | Leave a comment

How to search for a string inside multiple text files

find starting_folder -name “*” | grep -i file_name | xargs grep -i search_string for example: “find . -name “*” | grep -i hobba | xargs grep -i tito” searches for the string “tito” inside all files whose name contains the … Continue reading

Tagged , , | Leave a comment