Sponsored Content
Full Discussion: Generating line number
Top Forums UNIX for Dummies Questions & Answers Generating line number Post 302213016 by nua7 on Wednesday 9th of July 2008 03:31:46 AM
Old 07-09-2008
MySQL

Code:
cat -n file-name > new_file

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Generating random number within a specific range (0.5-1.5)

Hello, need a way to generate numbers within 0.5-1.5 range Has to be totally random: 0.6 1.1 0.8 1.5 0.6 and so on.... How to? (10 Replies)
Discussion started by: TehOne
10 Replies

2. Programming

generating 16 digit random number in C

Hi, How can we generate 16 digit random nos in C. (10 Replies)
Discussion started by: ajaysahoo
10 Replies

3. Programming

C Help; generating a random number.

Im new to C, and Im having a hard time getting a random number. In bash, I would do something similar to the following to get a random number; #!/bin/bash seed1=$RANDOM seed2=$RANDOM seed3=$RANDOM SEED=`expr $seed1 * $seed2 / $seed3` echo ${SEED%.*} Now, in online examples... (4 Replies)
Discussion started by: trey85stang
4 Replies

4. UNIX for Dummies Questions & Answers

How to read contents of a file from a given line number upto line number again specified by user

Hello Everyone. I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below: if ; then if ; then tail +$1 $3 | head -n $2 else ... (5 Replies)
Discussion started by: grc
5 Replies

5. Programming

Generating Random Number in Child Process using Fork

Hello All, I am stuck up in a program where the rand functions ends up giving all the same integers. Tried sleep, but the numbers turned out to be same... Can anyone help me out how to fix this issue ? I have called the srand once in the program, but I feel like when I call fork the child process... (5 Replies)
Discussion started by: manisum
5 Replies

6. Shell Programming and Scripting

Help with ahem Prime number Generating Script

Can anybody tell me why the second part of this script (Sieve of Eratosthenes) isn't working properly. This isnt coursework or homework just private studies ( Yes Project Euler began it ) I know there are easier ways of doing this too but I want to do it this way.:p Iam using Cygwin on Vista... (3 Replies)
Discussion started by: drewann
3 Replies

7. Shell Programming and Scripting

Generating graphs for many number of files

Hi, I have a series of data files for which I wish to plot using "splot". Say, the files names are like: 950_data,951_data,952_data,......1000_data. For one file , say to plot 950_data, i write following lines into a single file and load it in the gnuplot as : gnuplot> load 'plot' ... (6 Replies)
Discussion started by: begin_shell
6 Replies

8. Shell Programming and Scripting

Generating Random Number in certain range

Hi there I am trying to generate a random number between 40 and 70 using the shell here is my code so far and it keeps going above 70. all help much appreciated! comp=$(( RANDOM%70+40 )) echo $comp (4 Replies)
Discussion started by: faintingquiche
4 Replies

9. Shell Programming and Scripting

Random number generating script?

Having a hard time with this. Very new to scripting and linux. Spent all sunday trying to do this. Appreciate some help and maybe help breaking down what the syntax does. Create a Bash program. It should have the following properties • Creates a secret number between 1 and 100 i. The... (3 Replies)
Discussion started by: LINUXnoob15
3 Replies

10. Shell Programming and Scripting

Generating a POSIX random number?

Hi Guys and gals... As you know I am getting to grips with POSIX and hit this stumbling block. Generating two random numbers 0 to 255 POSIXly. Speed in not important hence the 'sleep 1' command. I have done a demo that works, but it sure is ugly! Is there a better way? #!/bin/sh # Random... (12 Replies)
Discussion started by: wisecracker
12 Replies
MOVIXMAKER-2(1) 					User Contributed Perl Documentation					   MOVIXMAKER-2(1)

NAME
MoviXMaker-2 - Easily create customized eMoviX/MoviX/MoviX2 disc images SYNOPSIS
movixmaker-2[.pl] [--version|--help] [--verbose] [--debug] [--nogui] [--nodelete] [--boot-help-lang=Language] [--menu-lang=Language] [--subtitleFonts=FontSet] [--tv-region=Region] [--remote=RemoteControl] [--keyboard=KbLayout] [--movix=MovixSrcDir] [-o=OutputFile] [-t=TempDir] [-b=BootLabel] [--loop=NbrOfLoops] [--random] [--nodma] [--eject] [--reboot] [--shut] [--extra-genisoimage-options="opt1 opt2 ..."] [--extra-mplayer-options="opt1 opt2 ..."] [--unwanted-mplayer-options="opt1 opt2 ..."] DESCRIPTION
MoviXMaker is a simple Perl command line utility or a GTK+-2/Gnome2/GladeXML interface to create customized eMoviX/MoviX/MoviX2 ISO files. It includes disk image customization possibilities such as : - boot help language, subtitle fontset, boot label selection. - you can specify [e]MoviX[2] parameters such as : movix/mplayer menu language (language), keyboard layout (kb), tv region (region), remote control (remote), loop, random, shutdown (shut), reboot, eject, dma, extra_mplayer_options and unwanted_mplayer_options. OPTIONS
All options that may be abbreviated to uniqueness can use a single dash. --version Displays MoviXMaker-2's version and exits. --help Display help messages [similar to this help] then exits. --verbose Verbose genisoimage output. --debug Debug mode (kind of movixmaker-2 verbose). --nogui Do not display the graphical interface. --nodelete Don't delete temporary directory. --boot-help-lang=Language Specify the language of the CD boot help messages. --menu-lang=Language Specify the MoviX/MPlayer menu language. --tv-region=Region Specify the tv region among: ntsc, ntsc-j, pal, pal-60, pal-nc, pal-m, pal-m60, pal-x, secam. --remote=Remote Specify the remote control among: hauppauge, haupserial, hauppauge2, logitech, pctv, abit, realmagic, grundig_tp720, kingman_code_026. --subtitleFonts=FontSet Specify which font set will be included in iso image. -k KbLayout, --keyboard=KbLayout Specify the keyboard layout to use. -m MovixSrcDir, --movixDir=MovixSrcDir Location of the *MoviX* directory. -o OutputFile, --output-file=OutputFile Name [with full path!] of the output iso image. -t TempDir, --tmpDir=TempDir Directory that will contain the temporary files. -b BootLabel, --boot-label=BootLabel Make *MoviX* boot with your favorite label (new default boot label). --loop=NbrOfLoops Don't delete temporary directory. --random Don't delete temporary directory. --nodma Make *MoviX* run with DMA turned off (fixes old-HDs issues). --eject Make *MoviX* eject the CD once it finished playing. --reboot Make *MoviX* reboot the PC once it finished playing. --shut Make *MoviX* poweroff the PC once it finished playing. --extra-genisoimage-options="opt1 opt2 ..." Extra options for genisoimage. --extra-mplayer-options="opt1 opt2 ..." Extra options for MPlayer. --unwanted-mplayer-options="opt1 opt2 ..." Options you want to be sure MPlayer will not use. AUTHOR
Pascal Giard, <evilynux@yahoo.com> COPYRIGHT
Copyright (C) 2003, 2004 Pascal Giard <evilynux@yahoo.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. SEE ALSO
Gnome2(3), Gtk2(3), Getopt::Long(3), Config::IniFiles(3) perl v5.8.8 2007-09-02 MOVIXMAKER-2(1)
All times are GMT -4. The time now is 01:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy