I have been trying to figure a way to copy a file, (a template), that has internal variables. Using the values as defined for those variables in another script.
So a file called x -
And file y
Output -
As you can see I lose the line with the #! from file x
If I redirect to a file -
I lose all of the lines except the blank line from the end of the file -
Hi,
Could someone please help me with how to do the following?
Say I have a flat file test.lst and the content of the file is:
Report Date - `date '+%m%d%Y'`
I'm trying the following
while read myLine
do
echo ${myLine}
done<test.lst
This prints Report Date - `date... (1 Reply)
Hi,
I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication.
Can... (1 Reply)
i am having a file name hello.txt i want to move it to some where in the destination folder suppose name is accnt
i have done this things but not working , can't we assign a path to a variable
#/bin/sh
file =hello.txt
dest ='accnt'
cp $file $dest
Thank & Regard
Dina (3 Replies)
Hi All,
I have a rather stange set of requirements that I'm hoping someone here could help me with. We receive a file that is actually a concatenation of 4 files (don't believe this would change, but ideally the solution would handle n files).
The super-file looks like:... (7 Replies)
hello!
I am trying to use sed to copy specific set of lines from a file for which the starting and ending line numbers of the lines to be copied are stored in shell variables. How can i copy those lines?
if the input_file is something like this
and if the following is the script
a=2
b=4... (4 Replies)
I need to write a script, which takes the input a log file and create output file with acct no's line by line from selected records with text like (in red) :
18:51:18 | 217863|Acct 0110855565|RC 17608| 16 Subs| 1596 UsgRecs| 2 Secs| 430 CPUms| prmis2:26213 <MoveUsage d
aemon needs to run... (7 Replies)
Hi,
At first I have to say that I know nothing about Linux :(
But I am looking for solution how to copy one file from internal Lowrnace HDS flash memory.
Lowrance HDS is Linux based device.
Here is the link for firmware update files for this unit.
At the end of main firmware file there... (62 Replies)
Hi all,
I have a flat file as below;
470423495|1||TSA-A000073800||1|||1
471423495|1||TSA-A000073800||5|||5
472423495|1||TSA-A000073800||2|||7
473423495|1||TSA-A000073800||3|||3
I like to create a Unix script.
The script have to valuate the last two columns, if the values are... (4 Replies)
I have a situation where i need to evaluate expression and do substitutions in file
file.ports
port1=`expr $STARTINGPORT + 1`
port2=`expr $STARTINGPORT + 2`
port3=`expr $STARTINGPORT + 3`
Intended output If my STARINGPORT is 100
port1=101
port2=102
port3=103
Can anyone please... (1 Reply)
Hi All,
I have same file with like 1xyz_1 ,1xyz_2 , 2ghj_1, 2ghj_2, 4wer_1, 4wer1_2 etc with lots of file having similar type of name. I want to creat folder and copy similar file to that folder. for example folder 1xyz should contain only 1xyz_1 ,1xyz_2. :mad:
Thank you in Advance.
... (7 Replies)
Discussion started by: XXLMMN
7 Replies
LEARN ABOUT DEBIAN
gnurobots
GNUROBOTS(6) Games Manual GNUROBOTS(6)NAME
gnurobots - Program a robot to explore a world
SYNOPSIS
gnurobots [OPTION]... [FILE]
DESCRIPTION
GNU Robots is a game/diversion where you construct a program for a little robot, then watch him explore a world. The world is filled with
baddies that can hurt you, objects that you can bump into, and food that you can eat. The goal of the game is to collect as many prizes as
possible before you are killed by a baddie or you run out of energy.
Programs for the robot are written in Scheme.
GNU Robots will run the scheme file given as FILE.
OPTIONS -f FILE, --map-file=FILE
Specify the map to load.
-s N, --shields=N
Set initial shields to N
-e N, --energy=N
Set initial energy to N
-V, --version
Output version information and exit.
-h, --help
Display a summary of command-line syntax.
COPYRIGHT
Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk>
Copyright (C) 1998 Jim Hall <jhall1@isd.net>
This 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, or (at your option) any later version without ANY WARRANTIES.
AUTHOR
GNU Robots was written by Bradley Smith <brad@brad-smith.co.uk> and Jim Hall <jhall1@isd.net>
This manual page was written by Bradley Smith <brad@brad-smith.co.uk>, for the Debian GNU/Linux system. The original game does not come
with a manual page.
GNUROBOTS(6)