skip to main
|
skip to sidebar
Tech Notes
Sunday, June 7, 2009
Concatenate strings in a shell script
Use ${} to insert a variable into a string and separate is from surrounding text:
foo="foo"
echo "${foo}bar"
Sources
http://desk.stinkpot.org:8080/tricks/index.php/2007/02/concatenate-strings-in-bash/
No comments:
Post a Comment
Newer Post
Older Post
Home
Search This Blog
About Me
Toro Hill
Freelance Web Developer.
http://karere.co.nz
http://accountaneer.com
View my complete profile
Labels
browsers
(3)
cli
(6)
DE
(1)
development
(5)
editors
(5)
filesystem
(6)
gui
(6)
hardware
(4)
images
(3)
linux
(25)
logs
(2)
mail
(1)
misc
(7)
music
(1)
network
(8)
pdfs
(4)
printing
(2)
security
(1)
sound
(2)
sync
(2)
web
(3)
windows
(12)
No comments:
Post a Comment