SEMrush
bash-hackers.org

Please wait for loading...




    SEMrush

      (255):

    /
     1  ~ 2014 sep 08getoptsSmall getopts tutorial [Bash Hackers Wiki]incomplete. When you want to parse commandline arguments in a professional way, getopts is the tool of choice. Unlike its older brother getopt (note the missing  ...
     1  ~ 2014 jul 28ash shell top trainersList of Bash online-tutorials [ Bash Hackers Wiki]Not recommended to read, at best , don't click the link. … ... Very good (not only Bash ) shell scripting guide. ... A beginners guide to Bash scripting under Linux .
     2  ~ 2014 aug 03bash echo quoted stringQuotes and escaping [ Bash Hackers Wiki]The classic for-loop uses a list of words to iterate through. This list can - of course - also be in a variable: mylist="DOG CAT  ... ‎Quotes and escaping - ‎Per-character escaping - ‎Weak quoting - ‎Discussion
     3  ~ 2014 sep 08bash caseThe case statement [ Bash Hackers Wiki]The case -statement can execute commands based on a pattern matching decision. The word <WORD> is matched against every pattern ...
     3  +20 2014 aug 01loadvariables script passwordConfig files for your script [Bash Hackers Wiki]Note that this is not the same as executing this file as a script ! The sourced ... password =secret ; echo rm -rf ~/* parameter=foobar && echo "You've bene pwned!
     4  ~ 2014 sep 22vt100 home and endTerminal codes (ANSI/ VT100 ) introduction [Bash Hackers Wiki]In this list I'll focus to ANSI/ VT100 control codes for the most needed actions
     4  +1 2014 jul 31bash test stringThe classic test command [ Bash Hackers Wiki]Operator syntax, Description. -z < STRING >, True, if < STRING > is empty. -n < STRING >, True, if < STRING > is not empty (this is the ...
     5  ~ 2014 sep 19rrad endThe read builtin command [Bash Hackers Wiki]Since Bash 4.3-alpha, read skips any NUL ( ASCII code 0) characters in input. ... If timeout arrives before data is read completely (before end -of-line), the partial ...
     5  +1 2014 sep 17bash for loopThe C-style for- loop [ Bash Hackers Wiki]The C-style for- loop is a compound command derived from the equivalent ksh88 feature, which is in turn derived from the C "for" keyword.
     5  +2 2014 jul 30bash script fiel extensionThe basics of shell scripting [ Bash Hackers Wiki]A shellscript usually resides inside a file . This file can ... There is no need to add a boring filename extension like . bash or .sh . This is ...
     6  ~ 2014 sep 14bash сщдщк усрщAdd Color to your scripts [ Bash Hackers Wiki]Make your scripts output more readable using bash colors . Simply add these variables to your script, and you will be able to echo in color .
     6  +4 2014 aug 12ansi color codesTerminal codes ( ANSI /VT100) introduction [Bash Hackers Wiki]printf '%b\n' 'It is \033[31mnot\033[39m intelligent to use \033[32mhardcoded ANSI \033[39m codes !'
     7  -2 2014 sep 14bash ifThe conditional expression [ Bash Hackers Wiki]Since it is not a normal command, Bash doesn't need to apply the normal ... If the shell option nocasematch is enabled, the match is performed ...
     7  +94 2014 sep 06mysql escape string linuxQuoting and escaping is really an important way to influence the way, Bash treats ... It is not related to eventual quote characters that are passed as text to the ...
     7  +94 2014 sep 02bash subtract vaArithmetic expressions [ Bash Hackers Wiki]Bash interprets some notations specially: ... echo $((43#G)) 42 $ echo $((43#H)) bash : 43#H: value too great for base (error token ... subtraction .
     7  +1 2014 aug 24bash echo color
     7  +3 2014 aug 16ansi escape sequencesA terminal control code is a special sequence of characters that is printed (like ... Sometimes I didn't find a matching ANSI escape or vice versa - you'll see a :?: ...
     8  +5 2014 aug 08frontpage remove global substituionParameter expansion - Bash Hackers Wiki FrontpageThis one can substitute ( replace ) a substring matched by a pattern ... The matched substring will be entirely removed and the ...
     8  -3 2014 aug 04bash check variable setUsing this exit code, it's possible to let Bash react on the result of such a test , here ..... I meant to set file. file=/path/some/file if test -d $file If variables such as that ...
     9  -3 2014 sep 23linux bash ifUsing this exit code, it's possible to let Bash react on the result of such a test, here by using the command in an if -statement: #!/bin/ bash # test if /etc/passwd ...
     9  +27 2014 sep 19shell hackingBash Hackers Wiki FrontpageThe Bash- Hackers Wiki This wiki is intended to hold documentation of any ... These are provided directly by the shell , rather than invoked as ...
     9  +49 2014 sep 16bash $The Bash -Hackers Wiki This wiki is intended to hold documentation of any kind about the GNU Bash . The main motivation was to provide ...
     9  +17 2014 sep 13php lockLock your script (against parallel run) [Bash Hackers Wiki]Why lock ? Sometimes there's the need to ensure that a script is only executed one time. Imagine some cronjob to do something very important, which will fail or  ...
     9  +58 2014 sep 10bash
     9  +5 2014 aug 31ed text editorEditing files with the ed text editor from scripts [Bash Hackers Wiki]Since ed is an interactive text editor , it reads and executes commands that come from stdin . Regarding this, we have several ways to feed our ...
     9  +3 2014 aug 14advanced bash scripting guide). Article link: not available; EMail: thegrendel (AT) theriver.
     9  +4 2014 aug 09bash if statementUsing this exit code, it's possible to let Bash react on the result of such a test, here by using the command in an if - statement : #!/bin/ bash # test if /etc/passwd ...
     10  ~ 2014 sep 18bash script ifbin/ bash # test if /etc/passwd exists if test -e /etc/passwd; then echo "Alright man. .... If you write a script that might not be executed by Bash , the behaviour might ...
     10  +23 2014 jul 22script edit inplaceThere are circumstances where you may need that, either editing active and open files or not having GNU sed or some other sed with " in-place " ...
     12  -5 2014 sep 24ифырBash's behaviour [ Bash Hackers Wiki] - Bash Hackers Wiki FrontpageBash acting as a "login shell" is reads and sets (executes) the user's profile from the profiles /etc/profile and one of ~/.bash_profile , ~/.bash_login , and ~/.profile ...
     12  -5 2014 sep 20ansi codesIn this list I'll focus to ANSI /VT100 control codes for the most needed actions - take it as quick reference. The documentation of your terminal or the terminfo ...
     13  ~ 2014 aug 31hackers good guidenceScripting with style [Bash Hackers Wiki] - Bash Hackers Wiki FrontpageThese are some coding guidelines that helped me to read and understand my own ... Some good code layout helps you to read your own code after a while.
     13  +28 2014 aug 23bash shell scriptArticle link: ti.biz/guide/Main_Page. Discussion link: use the individual MediaWiki discussion ...
     13  +12 2014 jul 25bash search and replaceParameter expansion [ Bash Hackers Wiki]This one can substitute ( replace ) a substring matched by a ... will be entirely removed and the given string will be inserted.
     14  +18 2014 sep 28php assign percentage to echoParameter expansion [Bash Hackers Wiki]echo "The plural of $WORD is most likely $WORDs" echo "The plural of
     14  -3 2014 sep 23bash whileSmall getopts tutorial [ Bash Hackers Wiki]OPTERR, (Values 0 or 1) Indicates if Bash should display error messages generated ... bin/ bash while getopts ":a" opt; do case $opt in a) echo "-a was triggered!
     14  +10 2014 sep 06while loop bashIt is one of the main "loop with a counter" mechanisms available in the ... The equivalent construct using a while loop and the arithmetic ...
     14  +13 2014 jul 24learning the bash shellI recommend to learn from it. ... Very good (not only Bash ) shell scripting guide. ... to the Linux Command Line including ample examples to make learning easy.
     15  -2 2014 sep 26bash fill array forBash 4 - a rough overview [ Bash Hackers Wiki]Attention: Since Bash 4 has been around for quite some time now (4.3 will come soon), ... This avoids to fill an array yourself using a loop.
     15  +2 2014 aug 20advanced shell scripting
     16  +38 2014 sep 03hacking using cmdCommand substitution [Bash Hackers Wiki]The command substitution expands to the output of commands. .... Is this a syntax shorthand or are there any side effects to using the original balanced pair ...
     16  +31 2014 aug 24shell script bash
     17  +2 2014 aug 25line redirect numberIllustrated Redirection Tutorial [Bash Hackers Wiki]Using a m>&n (where m is a number ) you got a copy of this descriptor: ... While it doesn't matter where the redirections appears on the command line , their order ...
     18  -5 2014 sep 26bash read lineThe read builtin command [ Bash Hackers Wiki]The read builtin reads one line of data (text, user input, …) from standard input or a supplied filedescriptor number into one or more variables named by <NAME ...
     18  +1 2014 sep 25for loop in cThe C -style for-loop [Bash Hackers Wiki]The C -style for-loop is a compound command derived from the equivalent ksh88 feature, which is in turn derived from the C "for" keyword.
     18  -9 2014 sep 13shell set befehlThe set builtin command [Bash Hackers Wiki]set the positional parameters (see handling positional parameters) to < POSPARAMS> ... set shell attributes with long option names (see below).
     18  +11 2014 sep 06for loop c
     18  +52 2014 aug 19list of tutorial sitesList of Bash online- tutorials [Bash Hackers Wiki]Here's a list with some (by far not all of course) Bash tutorials found on the Internet. The primary purpose of ... if you have reviews or new sites . if you're not okay ...
     19  +3 2014 sep 23bash last commandCommand substitution [ Bash Hackers Wiki]The second form `COMMAND` is more or less obsolete for Bash , since it has ... By removing this "x" later on, we are left with the previous commands ' output with  ...
     20  +2 2014 oct 03c for loopThe C -style for- loop [Bash Hackers Wiki]The C -style for- loop is a compound command derived from the equivalent ksh88 feature, which is in turn derived from the C "for" keyword.
     20  +2 2014 sep 26casse blockThe case statement [Bash Hackers Wiki]The classic behavior using ;; is to execute only the list associated with the first matching pattern, then break out of the case block .
     20  +10 2014 sep 21linux bash scriptArticle link: org/Bash_scripting_Tutorial. Discussion link: ...
     20  +31 2014 sep 167 scripts 7 dollar scriptsBeginner Mistakes [Bash Hackers Wiki] - Bash Hackers Wiki FrontpageIf you write Bash scripts with Bash specific syntax and features, run them with
     21  -2 2014 aug 30ansi character codesA terminal control code is a special sequence of characters that is printed (like any other text). If the terminal understands the code , it won't display the ...
     21  +75 2014 aug 05comment in shell scriptThe basics of shell scripting [Bash Hackers Wiki]Comments . In a bigger script , it's wise to comment the code. Also for debugging purposes or tests. Comments are introduced with ...
     22  ~ 2014 sep 30shell scripting tutorialArticle link: nk: use the individual MediaWiki discussion ...
     22  -4 2014 sep 23lock dirThis article describes the locking with common UNIX® tools. ..... Now, P3 is scheduled by OS to run which means it removes the lock dir P2 created (FYI, the last ...
     23  -22 2014 sep 21bash getoptsHandling positional parameters [ Bash Hackers Wiki]Getopts . There is a small tutorial dedicated to '' getopts '' (under construction).
     23  -1 2014 sep 16trailing pe wikiParameter expansion [Bash Hackers Wiki ]Simple example, removing a trailing is from all array elements (on expansion): ..... inner parts is through word-splitting, which requires that the PE be unquoted.
     23  +18 2014 sep 02c escape commandsQuotes and escaping [Bash Hackers Wiki]There's another quoting mechanism, Bash provides: Strings that are scanned for ANSI C like escape sequences . The Syntax ...
     23  +4 2014 jul 28website with bash shellLinux Shell Scripting Tutorial v2.0 ... if you have reviews or new sites . if you're not okay with a ... Very good (not only Bash ) shell scripting guide. Teaches good ...
     24  ~ 2014 jul 22best source cfg ever>&2 source /etc/cool. cfg echo " Config for the username: $cool_username" >&2 ... The source command also is available under the name . .... It's a good one!
     25  +13 2014 jul 26freenode free shellFeel free to register and edit the contents. ... The basics of shell scripting ... These are provided directly by the shell , rather than invoked as standalone ... #ksh channel page - #ksh Freenode channel page maintained by mksh developers.
     25  +76 2014 jul 16shell script comment
     26  +25 2014 aug 17php file editor scriptUnlike sed , ed is really a file editor . If you try to change file contents with sed , and the file is open elsewhere and read by some process, you ...
     27  +2 2014 oct 02php shell smalit's a shell builtin command. The advantage is. you don't need to hand your positional parameters through to an external program. getopts can easily set shell  ...
     27  -4 2014 sep 25arrow key ascii codeTerminal codes (ANSI/VT100) introduction [Bash Hackers Wiki]The ANSI codes are always intoduced with an ESC character ( ASCII 0x1B or ..... keyboard and figure out that the user pressed the up arrow key , for example?
     27  +60 2014 sep 23shell variableSpecial parameters and shell variables [Bash Hackers Wiki]Directly after shell invocation, it's set to the filename used to invoke Bash, ... If this variable is in the environment when Bash starts up, each shell  ...
     27  +32 2014 sep 017 dollar scripts
     27  +31 2014 jul 29ssh extract tarpax - the POSIX archiver [Bash Hackers Wiki]Copying files over ssh ... read archive data and extract the members to the current directory. .... "normal" extraction pax -rf myarchive. tar '*.txt'.
     27  +70 2014 jul 28ascii color tableTable of Contents ... This can be related to switching colors or positioning the cursor, simply everything that can't be done by the application itself. ... The ANSI codes are always intoduced with an ESC character ( ASCII 0x1B or octal 033) - this ...
     28  +19 2014 sep 30shell script examplegetopts can easily set shell variables you can use for parsing (impossible for an
     28  -12 2014 sep 19bash functionThe declare builtin command [ Bash Hackers Wiki]declare -f can be used to display all defined functions … $ declare -f foo () { echo " FOO is BAR" } world () { echo "Hello ...
     28  +73 2014 sep 07captcha numbers plus equalsArithmetic expressions [Bash Hackers Wiki]<BASE>#… is interpreted as a number according to the specified base .... comparison: greater than or equal ... Unary minus and plus ( - , + ).
     28  +30 2014 jul 24scripts testing tipsDebugging a script [Bash Hackers Wiki]Do not name your script test , for example! Why? test is already a ... You may ask yourself why this is mentioned as debugging tip ? Well, you would be surprised ...
     28  +1 2014 jul 19how to negate keywordsThe classic test command [Bash Hackers Wiki]As for AND and OR, there are 2 ways to negate a test with the shell keyword ! or ... Here ! negates the exit status of the command test which is 0 (true), and the ...
     29  -2 2014 sep 26unsetThe unset builtin command [Bash Hackers Wiki]In bash, unset has some interesting properties due to its unique dynamic scope. If a local variable is both declared and unset (by calling unset  ...
     29  +19 2014 aug 10pattern syntax phpPatterns and pattern matching [Bash Hackers Wiki]The pattern description language is relatively easy. ... Counter-intuitively, only the [!chars] syntax for negating a character class is specified by ...
     29  +45 2014 aug 06config for sourceFor this task, you don't have to write fat parser routines (unless you want it 100% secure or you want a special file syntax) - you can use Bash's source command.
     29  +72 2014 jul 19bash family tree listThere is a Bash Hackers Wiki needs love page that lists some things to do. .... History and development of the traditional Bourne shell family - very interesting ...
     29  +18 2014 jul 17how much option scriptMany people come into IRC and ask something like "Why does my script fail? ..... debug [ option ] script arguments possible options are: - help|usage: print this ...
     30  +1 2014 sep 07c printfThe printf command [Bash Hackers Wiki]The a, A, e, E, f, F, g, and G conversions are supported by Bash, but not required by POSIX.
     30  ~ 2014 jul 29best event directory script. script_debug =1 # to turn off, best do script_debug =0 debugme logger .... testing.sh: /bin/bash^M: bad interpreter: No such file or directory
     31  +3 2014 sep 29shell tutorialArticle link: nk: use the individual MediaWiki ...
     31  +3 2014 sep 14awk max xolumn widthGNU Awk expects a comma after the format string and between each of the .... The dot: Together with a field width , the field is not expanded when the text is longer, ... the maximum number of characters to print (i.e., the maximum field width ).
     31  +41 2014 aug 14hacking tutorials for beginnersArticle link: ide/html/ Discussion link: not available. Good introduction to bash ...
     32  +69 2014 sep 06bash shellThe Bash -Hackers Wiki This wiki is intended to hold documentation of any .... General purpose shell framework for bash 4 - in development.
     32  +43 2014 sep 01php case statementThe case - statement can execute commands based on a pattern matching decision. The word <WORD> is matched against every pattern ...
     32  ~ 2014 aug 12php exec beispielexec . In Bash the exec built-in replaces the shell with the specified program. So what does this have to do with redirection? exec also allow ...
     32  +69 2014 jul 23pipeline in keywordsThe coproc keyword [Bash Hackers Wiki]The coproc keyword starts a command as a background job, setting up pipes ... See this FAQ entry on Greg's wiki for other pipeline subshell workarounds.
     33  +2 2014 sep 21search bash${PARAMETER/PATTERN/STRING}. ${PARAMETER//PATTERN/STRING}. ${ PARAMETER/PATTERN}.
     33  +21 2014 sep 01opt in scriptIn productive scripts , this is usually what you want (handle errors yourself and don't ... bin/bash while getopts ":a" opt ; do case $ opt in a) echo "-a was triggered!
     33  +23 2014 jul 26learn shell scriptingList of Bash online-tutorials [Bash Hackers Wiki]Linux Shell Scripting Tutorial v2.0 (review), click, 40%, currently reviewing (the tutorial is also under development). linuxconfig.org Bash Scripting Tutorial  ...
     34  +6 2014 sep 20arguments and parameters in cHandling positional parameters [Bash Hackers Wiki]These arguments are reflected as the positional parameters inside your script. ... $0, the first positional parameter , equivalent to argv[0] in C , see the first ...
    1 2 of 3 pages    




    SEMrush