getopt is used to break up (parse) options in command lines for easy parsing by shell procedures, and to check for legal options.
Author Archives: jeffrin
getopt – parse command options
commandline session $getopt hello — $getopt hello how are you ? — how are you 1 c h $getopt hello hello are you ? — hello are you 1 c h $getopt hello hello are yours ? — hello are yours 1 c h $getopt hello hello are yours what ? — hello are yours …
compilation error. libjingle
../../talk/base/messagequeue.h: In constructor ‘talk_base::Message::Message()’: ../../talk/base/messagequeue.h:121: error: ‘memset’ was not declared in this scope i have failed to fix it until now.it did not compile sucessfully. a typical source is available here
head
Print the first 10 lines of each FILE to standard output. Part of debian coreutils.
Understanding the Unix ‘head’ Command
commandline session head is a program on Unix and Unix-like operating systems used to display the beginning of a text file or piped data. $sudo head /var/log/syslog Jan 5 20:10:05 debian syslogd 1.5.0#6.1: restart. Jan 5 20:10:05 debian anacron[1056]: Job `cron.daily’ terminated Jan 5 20:10:05 debian anacron[1056]: Normal exit (1 job run) Jan 5 20:12:14 …
hexdump, hd — ASCII, decimal, hexadecimal, octal dump
The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format. $cat version.c #include #include int main(int argc, char **argv) { printf(“MySQL client version: %sn”, mysql_get_client_info()); } Commandline Session $hexdump version.c 0000000 6923 636e 756c 10064 3c20 796d 675f 6f6c 0000010 6162 2e6c …
Continue reading “hexdump, hd — ASCII, decimal, hexadecimal, octal dump”
Little Proxy Server
Little Proxy