03-05-2010
I used this because I wanted to append the value of var at the end of the file. it reads data from file1 and appends var at the end and save it in file 2
var=1234
sed -e "$a $var" file1 > file2
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i've been fiddling around with append and I know how to append a word into a file, but how would you go about appending a word to a filename? (5 Replies)
Discussion started by: codewarrior7
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have two files in an html folder I would like to compare using diff. However I would like to append those files to a text file that is two folders up in my directory. Every time I try to do this I lose my information. What is happening and what should I do? (3 Replies)
Discussion started by: muclc7
3 Replies
3. Shell Programming and Scripting
hi,
a1.txt
------
xyz zxc
xya xdf
a2.txt
------
a1 a2
b1 b2
cat a1.txt >> a2.txt -->its appending at the end (6 Replies)
Discussion started by: mohan705
6 Replies
4. AIX
I have problem when I use the command "pax -awvf /dev/rmt0 ./data1" in AIX 5.3.0.0. The command with parameter -a allow me to append the tape but when I try to retrieve the data that I append, it will show me error.
I would like to know if anyone have the same problem and any solution found?
Tq. (0 Replies)
Discussion started by: kwliew999
0 Replies
5. Shell Programming and Scripting
Hi ,
while trying to append two strings, it is not properly coming. my code will be like this
str1=_TrackingEAR
srt2=1.0.0-20080523.155438-12
i am trying to build str3=$str1$str2.tgz
but it is appending the last value ot the begingin of the string , but i expect to the end of the... (1 Reply)
Discussion started by: scorpio
1 Replies
6. Shell Programming and Scripting
Hi,
I have a small doubt. Here is the code snippet for which the output that I'm getting are a bit surprising.
testing.sh
#!/bin/sh
arg_1=$1
echo "arg passed by user is:${arg_1}"
mapping=`grep ${arg_1}= testing.conf | awk -F"=" '{print $2}'`
echo "mapping is $mapping"... (4 Replies)
Discussion started by: badrimohanty
4 Replies
7. Shell Programming and Scripting
Hi,
I have a sample file which contains records.
Input File :
1 user1 username1\password@database-name
2 user2 username2\password@database-name
3 user3 username1\password@database-name
I should search for a 'username1\' in those records. If 'username1\' is found in those records, that record... (7 Replies)
Discussion started by: siri_886
7 Replies
8. Shell Programming and Scripting
I have a Query!
by using command
cat >> file1 we can append data's to a already existing file, Similarly is it possible to append a data to a variable.
Thanks in Advance!! (2 Replies)
Discussion started by: gwgreen1
2 Replies
9. Shell Programming and Scripting
Hi Everyone,
I have an issue and trying to get a solution but was not succesful yet. Any help is greatly appreciated.
I am using ksh to inoke sql loader to load data from txt file into two oracle tables based on the condition written in the control file. If an error occurs while loading into... (8 Replies)
Discussion started by: vpv0002
8 Replies
10. Shell Programming and Scripting
Hi,
Here i'm using a awk inside bash script to validate the datafile by referring to the configuration file(schema file).
Here the validation check is done for datatype, field length and null values.
Once the validation is done on data file the error records are moved to the bad file. So... (22 Replies)
Discussion started by: shree11
22 Replies
LEARN ABOUT DEBIAN
running-bear
RUNNING-BEAR(6) Games Manual RUNNING-BEAR(6)
NAME
running-bear -- The launcher for games made with the Bear Engine.
SYNOPSIS
running-bear --data-path=path ... --item-library=path ... --start-level=path [-h] [--log-concise] [--log-file=file] [--log-
level=string] [--log-uniq] [-v] [--active-area=integer] [--fullscreen | --windowed ] [--game-name=string] [--game-var-assign-
ment=character] [--screen-height=integer] [--screen-width=integer] [--set-game-var-bool=name=value ...] [--set-game-var-int=name=value
...] [--set-game-var-real=name=value ...] [--set-game-var-string=name=value ...] [--set-game-var-uint=name=value ...] --stats-destina-
tion=url
DESCRIPTION
This program is a launcher for games made with the Bear Engine.
OPTIONS
The following options can be passed to the program:
--active-area=integer
The margin around the camera in which we check for activity.
--data-path=path
Path to the directory containing the data of the game. When a file is required during the game, the paths are explored from the
last one on the command line toward the first one.
--fullscreen
Run the game in fullscreen mode.
--game-name=string
The name of the game.
--game-var-assignment=character
Change the delimiter used in --set-game-var-"type" to separate the name and the value of the variable.
-h, --help
Show summary of options.
--item-library=path
Path to a library containing items for the game.
--log-concise
Do not display log messages that have recently been displayed.
--log-file=file
Write log output in "file".
--log-level=string
Output log messages up to a given level, among "error", "warning" and "verbose".
--log-uniq
Do not display the same log message successively.
--screen-height=integer
The height of the screen
--screen-width=integer
The width of the screen.
--set-game-var-bool=name=value
Set the value of a boolean game variable.
--set-game-var-int=name=value
Set the value of an integer game variable.
--set-game-var-real=name=value
Set the value of a real number game variable.
--set-game-var-string=name=value
Set the value of a string game variable.
--set-game-var-uint=name=value
Set the value of a non negative integer game variable.
--start-level=string
The path to the first level to run, relatively to the data paths.
--stats-destination=url
Set the value of the destination to which game statistics are sent.
-v, --version
Print the version of the engine and exit.
--windowed
Run the game in a window.
AUTHOR
This manual page was written by Julien Jorge julien.jorge@gamned.org. Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
RUNNING-BEAR(6)