CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 19:58:49 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080501181217
location: https://web.archive.org/web/20080501181217/https://www.daniweb.com/code/bash.html
server-timing: captures_list;dur=5.575826, exclusion.robots;dur=0.023009, exclusion.robots.policy;dur=0.010705, esindex;dur=0.014985, cdx.remote;dur=38.580509, LoadShardBlock;dur=367.532108, PetaboxLoader3.datanode;dur=157.933895, PetaboxLoader3.resolve;dur=152.918011
x-app-server: wwwb-app215
x-ts: 302
x-tr: 439
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app215; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 08 Aug 2025 19:58:50 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 01 May 2008 18:12:17 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastvisit=1209664185; expires=Fri, 01-May-2009 18:12:17 GMT; path=/; domain=.daniweb.com
x-archive-orig-set-cookie: bblastactivity=0; expires=Fri, 01-May-2009 18:12:17 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 01 May 2008 18:12:17 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 12 Feb 2006 08:16:29 GMT", ; rel="prev memento"; datetime="Sun, 02 Mar 2008 09:55:05 GMT", ; rel="memento"; datetime="Thu, 01 May 2008 18:12:17 GMT", ; rel="next memento"; datetime="Tue, 06 May 2008 11:26:06 GMT", ; rel="last memento"; datetime="Sun, 30 Aug 2009 04:30:24 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_3_20080501165211_crawl107-c/52_3_20080501181136_crawl104.arc.gz
server-timing: captures_list;dur=7.566523, exclusion.robots;dur=0.023441, exclusion.robots.policy;dur=0.010436, esindex;dur=0.014726, cdx.remote;dur=15.901372, LoadShardBlock;dur=286.229370, PetaboxLoader3.datanode;dur=177.253090, PetaboxLoader3.resolve;dur=255.998576, load_resource;dur=193.586905
x-app-server: wwwb-app215
x-ts: 200
x-tr: 567
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
bash Code Snippets
bash Syntax
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 322,219 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,529 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
•
•
•
•
This code changes color of prompt according to user, suppose if user is root then color would be red and normal user would have color black. This'll diffrentiate in users. (View Snippet)
Here is a little spinner thing for the command line, used when your current bash script is waiting on a background/system process.
The weird character is ^H or a backspace. (View Snippet)
I know what your thinking, You and everyone else has always wanted a clock that sits at the top of your command prompt and tells you the time.
Why ?
I made this in first year when i spent countless hours programming and little in bed. I decided i needed somthing that told me all the things i... (View Snippet)
- Today's Posts
- Unanswered Threads
Related Features
DANIWEB FEATURE INDEX
ADVERTISEMENT
STATISTICS