Tag Archives: Bash

Alternative way to find files with specific extension in a folder on Linux

If you don’t like the “find” command, you can use the following one instead (I prefer it myself): ls -R | grep “\.xml” where “-R” lists all recursively grep is used to filter filename “\.xml” you must put the “\” … Continue reading

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

Disable Touchpad Clicks on Xubuntu

If you’re getting really annoyed – like I do – whenever you’re typing something and you touch the touchpad by mistake, which transfer the cursor to some other window on the screen, then this article is what you’re looking for: … Continue reading

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

Encrypt and Decrypt Text Files on AIX using OpenSSL

There are oodles of encryption algorithms and encrypting a file is quite simple. Code: # openssl enc -aes-256-cbc -in file -out file.enc enter aes-256-cbc encryption password: password Verifying – enter aes-256-cbc encryption password: password # To decrypt, simply swap your … Continue reading

Tagged , | Leave a comment

know the return value of a native (c) program in linux

Hi folksuse this command:echo $?to know the return value of a native program in Linux.try it yourself: scenario 1: more echo $? #(watch the result, it will be 1, which means unsuccess) scenario 2: echo "hello world" > filemore fileecho … Continue reading

Tagged , | Leave a comment

Bash Script to run a sql file (Draft) – Part 1

#!/usr/bin/bash # This script calls the Ad_1.sql script and spools the output with date stamp to a log file# Update: You MUST add your environment variables one way or another, e.g. look below export ORACLE_BASE=/oracleexport ORACLE_HOME=/oracle/OraHome_1PATH=${PATH}:${ORACLE_HOME}/bin; export PATHexport LIBPATH=${LIBPATH}:${ORACLE_HOME}/lib32:${ORACLE_HOME}/lib if … Continue reading

Tagged , | Leave a comment