Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

How to extract a number from a string (not a file) in Bash

export hobba=ksjdjf123ksks export nokka=`sed “s/[^0-9]//g” <<< $hobba` echo $nokka 123 Sources: http://stackoverflow.com/questions/13055889/sed-with-a-literal-string-not-input-file, http://stackoverflow.com/questions/6388046/extract-integer-from-string-using-bash

Posted in Uncategorized | Tagged , , , , , | Leave a comment

How to debug your bash script

Simply supply the -x parameter, e.g. bash -x myscript.sh

Posted in Uncategorized | Tagged , , , | Leave a comment

How to change your hostname in Ubuntu without restarting

Replace your old hostname in the /etc/hostname file with the new one: “sudo vi /etc/hostname” Replace your old hostname beside the 127.0.0.1 in the /etc/hosts file Run the following “sudo service hostname start” Exit the terminal and open a new … Continue reading →

Posted in Uncategorized | Tagged , , | 1 Comment

This is post number 300

WoW! Way to go, this is my post number 300, but I must of course say anything useful or a good piece of new, mmmm, here it is: A free guide: Getting started with Ubuntu 12.10! http://ubuntugeek.tradepub.com/free-offer/getting-started-with-ubuntu-12.10/w_ubun04?sr=adv&_t=adv:Ubuntu%20Manual%20Project  

Posted in Ubuntu | Tagged , , , | Leave a comment

Configuration for BI Publisher Server Level Log

Here are the steps to change your BI Publisher Enterprise Server to be in a debug mode: Login to BIP as Administrator Select Admin -> System Maintenance -> Server Configuration Change Debug Level to ‘Debug’ under General Properties Click on … Continue reading →

Posted in Oracle | Tagged , , , , , , , | Leave a comment