12-11-2011
thx for reply. it does work but what i actually wanna do is, i'm making a game called game of life. i wanna play the iteration on terminal but i dont know how
for example :
first generation:
- - - - -
- - * - -
- - * - -
- - * - -
- - - - -
second generation:
- - - - -
- * * * -
- - - - -
- - - - -
i wanna show the both generation on screen at a time like this picture
File:Game of life blinker.gif - Wikipedia, the free encyclopedia![Image](http://upload.wikimedia.org/wikipedia/commons/9/95/Game_of_life_blinker.gif)
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone,
Simple I think? The ps command on linux seem to cut off the full command and makes grep useless, unlike Solaris. Here is an example:
Solaris
ps -aef|grep blue
larry 7111 1 0 Mar 26 ? 0:00 xterm -fg white -bg black -cr blue -j -s -sl 100
Linux
ps -aef|grep blue ... (4 Replies)
Discussion started by: larry
4 Replies
2. UNIX for Dummies Questions & Answers
whats mean of ll -lart and ll -alrt ? (3 Replies)
Discussion started by: amol munde
3 Replies
3. Shell Programming and Scripting
Hi,
In my root directory i have folder1, folder2, folder3. The folder1 has folder1.1, folder1.2, folder1.3 subdirectories. Similary folder2 has folder2.1, folder2.2, folder2.3 etc. Same for rest of the folders. I have many such folders like folder4, folder5.......upto folder30 in my root... (3 Replies)
Discussion started by: keshi
3 Replies
4. Shell Programming and Scripting
Hi All
We are migrating our projects from unix environment to linux. I tried running a install script which sets up my project, i.e. the directory structure and all. But in the middle of the script i started receiveing following error : nawk: command not found .
So i need to know which... (1 Reply)
Discussion started by: vee_789
1 Replies
5. Shell Programming and Scripting
guys im new here and i need help with some linux commands.
filea has keyword on each line
identity
aaa
bbb
ccc
i have following commands.
egrep 'www.identity' ~/home/m3 >~/home/lopo2
wc -l file ~/home/lopo2
say lopo2 has 44 lines
then output saved is
identity 44 (1 Reply)
Discussion started by: ahfze
1 Replies
6. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
7. Shell Programming and Scripting
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT DEBIAN
imgsize
IMGSIZE(1p) User Contributed Perl Documentation IMGSIZE(1p)
NAME
imgsize - read the dimensions of an image in several popular formats
USAGE
imgsize [ -r | -a | -f fmt ] file [ file ... ]
DESCRIPTION
No-brainer to size an image supplied on the command-line. All the real work is done in Image::Size.
REQUIRED ARGUMENTS
imgsize expects file names on the command-line. If more than one file is provided, the file name will be included in the output:
% imgsize dot.gif
width="16" height="16"
% imgsize dot.gif dash.gif
dot.gif: width="16" height="16"
dash.gif: width="32" height="8"
OPTIONS
By default, the width and height are returned as attributes for an IMG tag in HTML, essentially "width="40" height="30"" or similar. The
following options may be used to return alternate formats (all report width first, then height):
"-r"
Return "raw" format data. Just the numbers separated by a single space.
"-a"
Return a Perl-style list of attributes suitable for passing to the "img()" method of the CGI module (see CGI).
"-f" fmt
Pass the string specified in fmt to "sprintf" and thus use it to format the results to your taste. "sprintf" will be passed two
numbers, so any other formatting directives will be lost. The numbers are passed as width first, then height.
EXIT STATUS
imgsize always exits
BUGS
Please report any bugs or feature requests to "bug-image-size at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size>. I will be notified,
and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size>
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Image-Size <http://annocpan.org/dist/Image-Size>
o CPAN Ratings
http://cpanratings.perl.org/d/Image-Size <http://cpanratings.perl.org/d/Image-Size>
o Search CPAN
http://search.cpan.org/dist/Image-Size <http://search.cpan.org/dist/Image-Size>
o Project page on GitHub
http://github.com/rjray/image-size <http://github.com/rjray/image-size>
LICENSE AND COPYRIGHT
Copying and distribution are permitted under the terms of the Artistic License 2.0
(http://www.opensource.org/licenses/artistic-license-2.0.php <http://www.opensource.org/licenses/artistic-license-2.0.php>) or the GNU LGPL
2.1 (http://www.opensource.org/licenses/lgpl-2.1.php <http://www.opensource.org/licenses/lgpl-2.1.php>).
SEE ALSO
Image::Size
AUTHOR
Randy J. Ray "<rjray@blackperl.com>".
perl v5.14.2 2012-06-08 IMGSIZE(1p)