Sponsored Content
Top Forums Programming how to use linux command in c++? Post 302580911 by nishrestha on Sunday 11th of December 2011 07:07:23 AM
Old 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 encyclopediaImage
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ps command on linux

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

linux command

whats mean of ll -lart and ll -alrt ? (3 Replies)
Discussion started by: amol munde
3 Replies

3. Shell Programming and Scripting

F1 in Linux command

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

Linux Command Error for nawk command

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

Linux command needed

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

Simple sed command not working; could be a Mac/Linux vs. PC/Linux issue

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

Linux find command seems to not transmit all the result to the '-exec command'

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
GIF2WEBP(1)						      General Commands Manual						       GIF2WEBP(1)

NAME
gif2webp - Convert a GIF image to WebP SYNOPSIS
gif2webp [options] input_file.gif -o output_file.webp DESCRIPTION
This manual page documents the gif2webp command. gif2webp converts a GIF image to a WebP image. OPTIONS
The basic options are: -o string Specify the name of the output WebP file. If omitted, gif2webp will perform conversion but only report statistics. -h, -help Usage information. -version Print the version number (as major.minor.revision) and exit. -lossy Encode the image using lossy compression. -q float Specify the compression factor for RGB channels between 0 and 100. The default is 75. In case of lossless compression (default), a small factor enables faster compression speed, but produces a larger file. Maximum com- pression is achieved by using a value of 100. In case of lossy compression (specified by the -lossy option), a small factor produces a smaller file with lower quality. Best qual- ity is achieved by using a value of 100. -m int Specify the compression method to use. This parameter controls the trade off between encoding speed and the compressed file size and quality. Possible values range from 0 to 6. Default value is 4. When higher values are used, the encoder will spend more time inspecting additional encoding possibilities and decide on the quality gain. Lower value can result is faster processing time at the expense of larger file size and lower compression quality. -f int For lossy encoding only (specified by the -lossy option). Specify the strength of the deblocking filter, between 0 (no filtering) and 100 (maximum filtering). A value of 0 will turn off any filtering. Higher value will increase the strength of the filtering process applied after decoding the picture. The higher the value the smoother the picture will appear. Typical values are usually in the range of 20 to 50. -v Print extra information. -quiet Do not print anything. BUGS
Please report all bugs to our issue tracker: http://code.google.com/p/webp/issues Patches welcome! See this page to get started: http://www.webmproject.org/code/contribute/submitting-patches/ EXAMPLES
gif2webp picture.gif -o picture.webp gif2webp -q 70 picture.gif -o picture.webp gif2webp -lossy -m 3 picture.gif -o picture_lossy.webp gif2webp -lossy -f 50 picture.gif -o picture.webp AUTHORS
gif2webp was written by the WebP team. The latest source tree is available at http://www.webmproject.org/code This manual page was written by Urvang Joshi <urvang@google.com>, for the Debian project (and may be used by others). SEE ALSO
dwebp(1), cwebp(1), webpmux(1). Please refer to http://developers.google.com/speed/webp/ for additional information. February 01, 2013 GIF2WEBP(1)
All times are GMT -4. The time now is 08:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy