Tag Archives: Bash

How to search for a file using the "find" command in bash (not case sensitive)

find start_directory -name “*” | grep -i search_string e.g. “find . -name “*” | grep -i hobba” searches within the current directory and can return a file with name “aamr_HoBba.log” for example.

Tagged , | Leave a comment

An Introduction to linux Shell Scripting for DBAs, A Nice Tutorial by Oracle

I found this nice tutorial and would like to share it with you, it’s really useful: http://www.oracle.com/technology/pub/articles/saternos_scripting.html

Tagged , | Leave a comment

Remove the first character in a string in bash script

export variable= “anything_you_want” # populate the variable, this is just an example of course variable=$(echo ${variable:1}) # remove the first character in the variable echo $variable # show the new value of the variable to make sure the operation is … Continue reading

Tagged | Leave a comment

Remove Carriage Returns From Text Files Edited on Windows

Sometimes people change text files – that are supposed to run or get processed on a Unix/Linux system – on Windows text editors such as notepad, this messes up the file as Windows puts a carriage return (read as ^M … Continue reading

Tagged , , | Leave a comment

Create Keyboard Shortcut to Kill/Open avant-window-navigator when playing games

I really like compiz and awn (avant window navigator), but awn causes me a problem when playing games; they just keep flickering till I get mad, so everytime I start a game I have to manually close awn and after … Continue reading

Tagged , | Leave a comment