Sponsored Content
Full Discussion: Open variable conatin name
Top Forums Shell Programming and Scripting Open variable conatin name Post 302768085 by pamu on Friday 8th of February 2013 02:34:47 AM
Old 02-08-2013
Quote:
Originally Posted by netdbaind;302768083[CODE
D=`cat $C |grep -i wrote |awk 'print $6;}'[/CODE]
that's useless use of cat and you have done many mistakes above.
try sth like this..

Code:
D=$(grep -i wrote $C | awk '{print $6}')

 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Performing an open/read, open/write

I'm trying to do two different things (converting an OpenVms .com to a ksh shell script): 1) open/read/err= 2) open/write/err= Any help? I've found some things, but can't seem to find the correct way. (1 Reply)
Discussion started by: prosserj
1 Replies

2. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

3. Shell Programming and Scripting

parsing data from xml file is failing can't open variable

Created a korn shell script, everything is is working except this section, the variable $SYSINFO is being set, but the NASIP & NASDEV are failing, it appears to be treating the config.xml file config directory and xml as the file. Need a second set of eyes to tell me where I am messing up. #... (3 Replies)
Discussion started by: juanb25
3 Replies

4. Shell Programming and Scripting

Open the file and replace the variable with actual value

Hi, i have a sql file named sample.sql. The query is given below. select count(*) from $TABLE_NAME In the main script, i am sourcing this sql. I need to replace the $TABLE_NAME with actual value, before running the query. How can i achieve that? The logic i tried is given below:... (3 Replies)
Discussion started by: bharathappriyan
3 Replies

5. UNIX for Beginners Questions & Answers

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies

6. Shell Programming and Scripting

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window, vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (3 Replies)
Discussion started by: sudiptabhaskar
3 Replies
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)
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy