BASH Shell

HowTo Run a Script In Linux

by Vivek Gite on November 10, 2011 · 4 comments

How do I run a Linux shell script? How can I run a script in Linux?

{ 4 comments }

Linux / Unix curl: Pass HTTP Referer

by Vivek Gite on November 6, 2011 · 0 comments

How do I pass the referrer (HTTP referrer)as an HTTP header field using curl command under Linux OR Unix operating systems?

{ 0 comments }

Bash Shell: Find Out If a Variable Is Set or Not

by Vivek Gite on September 25, 2011 · 1 comment

How do I check if a bash shell variable called $input is defined or not under BSD / Apple OS X / Unix / Linux like operating systems?

{ 1 comment }

Linux / UNIX: HowTo Empty Directory

by Vivek Gite on September 20, 2011 · 7 comments

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself?

{ 7 comments }

I‘d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:

This is a test
Giving back more than we take

I want my input file with the following output:

a test
more than we take

How do I printing lines from the nth field using awk under UNIX or Linux operating systems?

{ 1 comment }

How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell?

{ 6 comments }

Bash C Style For Loop Example and Syntax

by Vivek Gite on June 7, 2011 · 1 comment

How do I use the bash C style for loop under UNIX or Linux operating systems?

{ 1 comment }