Ana Sayfa / Tag Archives: Linux

Tag Archives: Linux

Pitfalls

Whitespace When Assigning Variables Whitespace matters when assigning variables. foo = ‘bar’ # incorrect foo= ‘bar’ # incorrect foo=’bar’ # correct The first two will result in syntax errors (or …

Devamını Oku..

Design Patterns

The Publish/Subscribe (Pub/Sub) Pattern When a Bash project turns into a library, it can become difficult to add new functionality. Function names, variables and parameters usually need to be changed …

Devamını Oku..

Parallel

Option Description-j n-k Keep same order-XMultiple arguments with context replace–colsep regexpSplit input on regexp for positional replacements{} {.} {/} {/.} {#} Replacement strings{3} {3.} {3/} {3/.} Positional replacement strings-S sshlogin …

Devamını Oku..

Networking With Bash

Bash is often commonly used in the management and maintenance of servers and clusters. Information pertaining to typical commands used by network operations, when to use which command for which …

Devamını Oku..

When to use eval

First and foremost: know what you’re doing! Secondly, while you should avoid using eval, if its use makes for cleaner code, go ahead. Using Eval For example, consider the following …

Devamını Oku..

Select keyword

Select keyword can be used for getting input argument in a menu format. Select keyword can be used for getting input argument in a menu format Suppose you want the …

Devamını Oku..

CGI Scripts

Request Method: GET It is quite easy to call a CGI-Script via GET.First you will need the encoded url of the script. Then you add a question mark ? followed …

Devamını Oku..

Cut Command

Option Description-b LIST, –bytes=LISTPrint the bytes listed in the LIST parameter-c LIST, –characters=LISTLIST Print characters in positions specified in LIST parameter-f LIST, –fields=LISTPrint fields or columns-d DELIMITERUsed to separate columns …

Devamını Oku..