Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Issue with parsing config variables Post 302385402 by dr.house on Friday 8th of January 2010 03:06:22 AM
Old 01-08-2010
Ad hoc:

Code:
[house@leonov] RootDir="\\f01\var"; 
               RootDir=$( echo "$RootDir" | sed 's/\\/\//g' ); 
               echo "$RootDir"
/f01/var

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parsing config file

Hi All, I have a requirement to parse a file. Let me clear you all on the req. I have a job which contains multiple tasks and each task will have multiple attributes that will be in the below format. Each task will have some sequence number according to that sequence number tasks shld... (0 Replies)
Discussion started by: rajeshorpu
0 Replies

2. Shell Programming and Scripting

parsing config file to create new config files

Hi, I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below. I will be using the config file as mentioned below: (config.txt) country:a,b city:1,2 type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies

3. Shell Programming and Scripting

Need help parsing config file in ksh

Hi all, I've done some searching here but haven't found exactly what I'm looking for so I thought I'd post up and see if someone can help out. I'm working on a shell script that I would like to store environment variables in an external file. I'm familiar with sourcing a file with variables in... (1 Reply)
Discussion started by: kungfusnwbrdr
1 Replies

4. Shell Programming and Scripting

Parse config file and store the values in variables

Hi, I have a config file that has blank, commented lines. I need to escape commented lines, blank lines, parse the remaining lines and store them in variables or array. the config file contains the following lines. # config file # Define Oracle User ORA_USER=abcde ORA_PASS=xyzabc... (8 Replies)
Discussion started by: Lakshmi Chowdam
8 Replies

5. Shell Programming and Scripting

Parsing config-file (perl)

Hi, i'm trying to parse a config file that have alot of rows similar to this one: Example value value value What i want to do is to split and save the row above in a hash, like this: Example = value value value Basically i want to split on the first whitespace after the first... (3 Replies)
Discussion started by: mikemikemike
3 Replies

6. Shell Programming and Scripting

PERL on windows accessing variables from a config file

Folks, I'm a perl moron, so please speak very slowly. : ) I'm modifying a build script that starts up an apache server. Now there is a .config file that hardcodes an old webserver path like this c:\oldWebserver. Now I don't want that hardcoded value, rather wish to use an... (3 Replies)
Discussion started by: MarkoRocko
3 Replies

7. Shell Programming and Scripting

Parsing Nagios service config files with awk

Hope someone can help, I've been pulling my hair out with this one... I've written a shell script that does a sanity check on our quite extensive Nagios configuration for anything that needs cleaning up but wouldn't make the Nagios daemon necessarily bork or complain. One section of the script... (2 Replies)
Discussion started by: vinbob
2 Replies

8. Shell Programming and Scripting

parsing a config file using bash

Hi , I have a config _file that has 3 columns (Id Name Value ) with many rows . In my bash script i want to be able to parse the file and do a mapping of any Id value so if i have Id of say brand1 then i can use the name (server5X) and Value (CCCC) and so on ... Id Name ... (2 Replies)
Discussion started by: nano2
2 Replies

9. Shell Programming and Scripting

awk - is it possible to import variables from a config file?

hi, all. I got a question about awk: If I have a lot of awk files for different tasks, but they'll share the same base directory, log setting, action lists, etc., is it possible to import them from a config file, so that I don't have to put them into each awk file? For example, I need a... (8 Replies)
Discussion started by: lan9856
8 Replies

10. Shell Programming and Scripting

How to put variables commands in config files?

Hi All, Seeking for your assistance on how to put in variables all the commands in /bin config files: /home/test/config_file/config.cfg cat /home/test/config_file/config.cfg ECHO=/bin/echo LS=/bin/lsMain script cat test.sh source=/home/test/config_file/config.cfg ECHO=$ECHO LS=$LS#i... (3 Replies)
Discussion started by: znesotomayor
3 Replies
X-TILE(1)						      General Commands Manual							 X-TILE(1)

NAME
x-tile - select windows and adjust their tiling SYNOPSIS
x-tile [option][rows][columns] DESCRIPTION
This manual page documents briefly the x-tile command. x-tile is a program that allows tiling selected windows as desired. In addition of the predefined tilings, it allows user to create up to two user defined tilings to be applied later. It also provides a system tray icon for faster access to tiling menu. OPTIONS
This program doesn't follow the usual GNU command line syntax, with long options starting with two dashes (`-'). Instead, it uses case sen- sitive single letter options, followed by arguments when required. A summary of options is included below. w Open the x-tile main window without using the panel. z Undo the latest tiling operation. v Tile all opened windows vertically. h Tile all opened windows horizontally. u Tile all opened windows triangularly, top up. d Tile all opened windows triangularly, top down. l Tile all opened windows triangularly, top left. r Tile all opened windows triangularly, top right. q Tile all opened windows in a four square grid. g Tile all opened windows in a grid with the given rows and columns. 1 Apply user defined tiling #1 to all opened windows. 2 Apply user defined tiling #2 to all opened windows. i Invert the order of the latest tiling operation. m Maximize all opened windows. M Unmaximize all opened windows. c Close all opened windows. Any other Show a brief summary of options. AUTHORS
x-tile was written by Giuseppe Penone <giuspen@gmail.com> and Chris Camacho <chris_camacho@yahoo.com>. This manual page was written by Ricardo Mones <mones@debian.org>, for the Debian project (and may be used by others). May 7, 2012 X-TILE(1)
All times are GMT -4. The time now is 12:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy