Archive for the 'Questions' Category

In Unix, Is It Possible In A Short Script To Take The Result Of A Grep And Copy These Files To A Directory.?

Monday, March 1st, 2010

For instance, I do a grep on files that have tiger woods listed as golfer number 1 and copy these files to a specified directory.
Possible usage:
mygrep “tigerWoods” | grep golfer1| test
(where test) is my directory

Tags: , , , , , , , , , , , , ,

In Unix(mac), Change Permissions Of A File(sample) From “444″ To “664″. What Command Will Do This?

Sunday, February 28th, 2010

chmod a+w sample
chmod g+w sample
chmod u+w sample
chmod ug+w sample
??

Tags: , , , , , , , , , , ,

Is Unix Operating System Free To Download?

Sunday, February 28th, 2010

+Unix is basically for mainframe computers. You can’t run that on a laptop or PC. Are you sure you don’t mean “Linux” which IS a free download?

Tags: , , , , , , , ,

In Unix (linux), How Do I Find Which Process Is Making Lots Of I/o ?

Sunday, February 28th, 2010

I have a server where many people run different programs. Currently the CPU is almost idle, but the machine is doing lots of I/O (as reported by vmstat), and anything that needs I/O (disk) runs terribly slow.
Is there any easy way to find out for sure which process is doing the I/O ?

Tags: , , , , , , , , , ,

How Do You Execute A File In Unix? I Was Told #!/bin/sh, But Where Is This Used.?

Sunday, February 28th, 2010

I know in perl you just put .pl (filename.pl) at the end of the file you named, and to run the that you just type perl filename.pl.
In unix I being told its something like #!/bin/sh? Where does this go? Does this mean I make the file with #!/bin/sh in front of the file names like #!/bin/sh/filename?

Tags: , , , , , , , , , , ,

Is There A Standard Unix Utility To Do Url Encoding?

Saturday, February 27th, 2010

I’m using curl to do some testing of http POSTs and GETs (not webpages, but a sort of programming interface).
curl expects parameters passed with the -d switch to be url encoded; for example
curl \
http://myTestSite/process \
-d title=”The%20Big%20Red%20One”
I’d like to do something like this in a Bash script:
curl \
http://myTestSite/process \
-d title=${urlencode(”The Big Red One”)}
Is there a standard urlencode utility available on a Linux box?

Tags: , , , , , , , , , ,

I Want To Practice Unix Commands.can I Download Any Software For This.i Wanna Practice In Xp?

Saturday, February 27th, 2010

want some details about knoppix software,and best site to download this software in cd

Tags: , , , , , , , , , ,

How Can I Transfer Files From Computer To Another Using Unix?

Saturday, February 27th, 2010

using the terimanl

Tags: , , , , , , ,

Anyone Know Where To Learn To Program Genesis Unix Script?

Friday, February 26th, 2010

refer the following URL http://heather.cs.ucdavis.edu/~matloff/U…http://www.injunea.demon.co.uk/pages/pag…

Tags: , , , , , , , , , , ,

Why Does My Unix Counted Spelling Error Add Up Different From The Number They Should?

Friday, February 26th, 2010

% spell test1.txt | wc -w
3
% spell test2.txt | wc -w
4
% spell test1.txt test2.txt | wc -w
6
%
Adds up to six but should be seven why is showing only six?

Tags: , , , , , , , , , , , ,

Improve the web with Nofollow Reciprocity.