echo command

I am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I’d like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?

{ 38 comments }

Bash For Loop Examples

by Vivek Gite on October 31, 2008 · 202 comments

How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?

{ 202 comments }

How do I change the I/O scheduler for a particular hard disk without rebooting my Linux server system?

{ 6 comments }

FreeBSD Display Environment Settings

by Vivek Gite on March 17, 2008 · 1 comment

Q. How do I display shell environment settings under FreeBSD operating systems?

{ 1 comment }

Bash While Loop Example

by Vivek Gite on March 15, 2008 · 11 comments

How do I use bash while loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using while statement?

{ 11 comments }

How To Read / Print $PATH Shell Variable

by Vivek Gite on January 13, 2008 · 0 comments

Q. I’m new to Unix / Linux and I’d like to print current values of $PATH variable. How do I read $PATH from a shell prompt?

{ 0 comments }

Q. How do I print current path settings under BASH shell? I’m using Debian Linux. A. In UNIX / Linux file systems, the human-readable address of a resource is defined by PATH. On Unix / Linux like operating systems, (as well as on DOS / Windows and its descendants), PATH is an environment variable listing [...]

{ 2 comments }