How do I run a Linux shell script? How can I run a script in Linux?
{ 4 comments }
I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?
{ 1 comment }
How do I join two strings under BASH? I have two strings stored in two different variables (_p=/delta and _u=aqua) and how do I join this and assign it to another variable in bash?
{ 2 comments }
What is the use of UNIX source command under bash or any other shell? How do I use source command under UNIX / OS X / Linux operating systems?
{ 3 comments }
How do I read a file field-by-field under UNIX / Linux / BSD Bash shell? My sample input data file is as follows:
device1,deviceType,major,minor,permissions
device2,deviceType,major,minor,permissions
…
….
..
deviceN,deviceTypeN,major,minor,permissions
For each line I need to construct and execute a shell command as follows:
/path/to/deviceMaker --context=$1 -m $permissions $device2 $deviceType $major $minor
{ 5 comments }