EMBED YOUR TERMINAL RECORDINGS ONLINE

Bash Arrays

DATE: 2013-01-06
AUTHOR: wei2912
AUTHOR WWW: http://linuxtuts.universe2.us
RELATED ARTICLE: http://linuxtuts.universe2.us/posts/shells/BashShortcuts....

Related recordings:

CAT COMMAND IN LINUX

tags: cat unix gnu linux view file textfile editing
LIST DIRECTORIES IN LINUX WITH LS

tags: ls directory show content linux disk beginner
SUTRAPHP-INTRODUCTION

tags: sutraphp sutra php console cli eventbased
MORE OVERVIEW IN MYSQL WITH SELECTS

tags: mysql, select, more overview, console
M4, THE HIDDEN GNU TREASURE

tags: m4, gnu, macroprocessor, template, search, replace, sed
THE UNIX TREE COMMAND

tags: unix console tree bash directory listing
DEVTODO: COMMANDLINE TODO MANAGEMEN

tags: todo xml tasks productivity management
VIM ALIGN

tags: vim align aligning text text editing text trick
VISUAL SELECTS IN VIM

tags: vim visual selects regex text editing fast
GENERATING PHP & SQL (MAPPING) CODE

tags: sutra generate sql generate database php cms mysql

Bookmark and Share
EMBED THIS RECORDING:
<div><script id="playterm-MjAxMy0wMS90dHlyZWNvcmQtMTM1NzQ2NDA5MHw4MHgyNA==" type="text/javascript" src="http://playterm.org/js/?hash=MjAxMy0wMS90dHlyZWNvcmQtMTM1NzQ2NDA5MHw4MHgyNA==" class="size:80x24"></script></div>
Part of a tutorial for LinuxTuts.

sqz said

technically they are not arrays but its called brace expansion.
brace expansion turns stuff like:
foo{0..3}      into foo0 foo1 foo2 foo3
and
foo{1,4,6}     into foo1 foo4 foo6
Bash arrays are indeed handy:
see http://playterm.org/r/dont-use-ls-but-glob-instead-1386508280

 

Name   
Email (never shown)  
Comment