≡ Menu

Korn Shell Scripting

Linux/UNIX: Bash Read a File Line By Line

How do I read a file line by line under a Linux or UNIX-like system using KSH or BASH shell?
[click to continue…]

FreeBSD Change User Password Shell Script

How do I change user password using a shell script under FreeBSD operating systems?
[click to continue…]

Linux / UNIX: Convert Hexadecimal to Decimal Number

How do I convert hex number to decimal number using a shell script under UNIX / Linux operating systems?
[click to continue…]

Alarm clock: How To Set Timeout For A Shell Command

Q. How can I run a command called foo, and have it timeout / abort after 10 seconds under GNU/Linux running bash shell or script? How do I run command under an alarm clock?
[click to continue…]

How To Find Files by Content Under UNIX

I had written lots of code in C for my school work and saved it as source code under /home/user/c/*.c and *.h. How do I find files by content such as string or words (function name such as main() under UNIX shell prompt?
[click to continue…]

How To Write First UNIX Korn Shell Script Program

Can you tell me how to write a UNIX korn shell script program? I'm new to UNIX scripting and HP-UX UNIX operating system.
[click to continue…]

KSH for Syntax

Can you explains UNIX ksh for loop syntax which can repeatedly execute a block of statements with a simple ksh script example?
[click to continue…]