Sponsored Content
Top Forums Shell Programming and Scripting find & replace with user input Post 302358845 by Yogesh Sawant on Monday 5th of October 2009 02:47:22 AM
Old 10-05-2009
may be vb script is a good option if you are implementing this with windows xp
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find & Replace

I get a text file with 70+ columns (seperated by Tab) and about 10000 rows. The 58th Column is all numbers. But sometimes 58th columns has "/xxx=##" after the numeric data. I want to truncate this string using the script. Any Ideas...:confused: (3 Replies)
Discussion started by: gagansharma
3 Replies

2. Shell Programming and Scripting

replace <Address> with a var input by user

Hi, All here is not a full version script, just post a sample. #/bin/bash read -p 'Addr: ' addr sed 's/<Address>/'"$addr"'/' pf.mod>$1 If the input string include `/', sed will return error message. I know that s/// can be replaced with s::: or s!!!, etc, but the input var can accept... (4 Replies)
Discussion started by: r2007
4 Replies

3. Shell Programming and Scripting

Find & Replace string in multiple files & folders using perl

find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g' this is simple logic to find and replace in multiple files & folders Hope this helps. Thanks Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies

4. Homework & Coursework Questions

[Scripting]Find & replace using user input then replacing text after

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: (o) Checkout an auto part: should prompt the user for the name of the auto part and borrower's name: Name:... (2 Replies)
Discussion started by: SlapnutsGT
2 Replies

5. Shell Programming and Scripting

Search & Replace in Multiple Files by reading a input file

Hi, I have a folder which contains multiple config.xml files and one input file, Please see the below format. Config Files format looks like :- Code: <application name="SAMPLE-ARCHIVE"> <NVPairs name="Global Variables"> <NameValuePair> ... (0 Replies)
Discussion started by: haiksuresh
0 Replies

6. Shell Programming and Scripting

find and replace in a directory using an input file

Hi folks, I need help to finish this script please. see below: I have an input file with all the IP address to names formated like so in a txt file addnsr1pri 166.7.3.105 addnsr1sec 166.2.100.22 addnsr2pri 166.2.220.121 addnsr2sec 166.3.68.45... (12 Replies)
Discussion started by: richsark
12 Replies

7. Shell Programming and Scripting

awk + gsub to search multiple input values & replace with located string + extra text

Hi all. I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value. cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Discussion started by: dazhoop
2 Replies

8. UNIX for Dummies Questions & Answers

Find & Replace

Hi I am looking to rename the contents of this dir, each one with a new timestamp, interval of a second for each so it the existing format is on lhs and what I want is to rename each of these to what is on rhs..hopefully it nake sense CDR.20060505.150006.gb CDR.20121211.191500.gb... (3 Replies)
Discussion started by: rob171171
3 Replies

9. Shell Programming and Scripting

How-To Check & Filter user input

Hi, On my Java webpage which invokes the shell script has two checkboxes viz ... apache and weblogic apache require one parameter i.e apache home from the user while Weblogic requires three or five params from the user vi.z weblogic_home or <jdk_home, config_home & pid>, username and... (4 Replies)
Discussion started by: mohtashims
4 Replies

10. Shell Programming and Scripting

Search & Replace in Multiple Files by reading a input file

I have a environment property file which contains: Input file: value1 = url1 value2 = url2 value3 = url3 and so on. I need to search all *.xml files under directory for value1 and replace it with url1. Same thing I have to do for all values mentioned in input file. I need script in unix bash... (7 Replies)
Discussion started by: Shamkamde
7 Replies
FvwmRearrange(1)						   Fvwm Modules 						  FvwmRearrange(1)

NAME
FvwmRearrange - rearrange fvwm windows SYNOPSIS
FvwmRearrange is spawned by fvwm, so no command line invocation will work. DESCRIPTION
This module can be called to tile or cascade windows. When tiling the module attempts to tile windows on the current screen subject to certain constraints. Horizontal or vertical tiling is performed so that each window does not overlap another, and by default each window is resized to its nearest resize increment (note some- times some space might appear between tiled windows -- this is why). When cascading the module attempts to cascade windows on the current screen subject to certain constraints. Layering is performed so con- secutive windows will have their window titles visible underneath the previous. INVOCATION
FvwmRearrange is best invoked from a menu, pop up or button. There are a number of command line options which can be used to constrain the layering, these are described below. As an example case, one could call FvwmRearrange with the following arguments: FvwmRearrange -tile -h 10 10 90 90 or FvwmRearrange -cascade -resize 10 2 80 70 The first invocation will horizontally tile windows with a bounding box which starts at 10 by 10 percent into and down the screen and ends at 90 by 90 percent into and down the screen. The second invocation will cascade windows starting 10 by 2 percent into and down the screen. Windows will be constrained to 80 by 70 per- cent of the screen dimensions. Since the resize is also specified, windows will be resized to the given constrained width and height. FvwmRearrange can be called as FvwmTile or FvwmCascade. This is equivalent to providing the -tile or -cascade option. This form is obsolete and supplied for backwards compatibility only. Command-line arguments passed to FvwmRearrange are described here. -a Causes all window types to be affected, even ones with the WindowListSkip style. -animate Attempt to do an animated move, this is ignored if -resize or -maximize are used. -cascade Cascade windows. This argument must be the first on the command line. This is the default. -desk Causes all windows on the desk to be cascaded/tiled instead of the current screen only. -flatx Inhibits border width increment. Only used when cascading. -flaty Inhibits border height increment. Only used when cascading. -h Tiles horizontally (default is to tile vertically). Used for tiling only. -incx arg Specifies a horizontal increment which is successively added to cascaded windows. arg is a percentage of screen width, or pixel value if a p is suffixed. Default is zero. Used only for cascading. -incy arg Specifies a vertical increment which is successively added to cascaded windows. arg is a percentage of screen height, or pixel value if a p is suffixed. Default is zero. Used only for cascading. -m Causes maximized windows to also be affected (implied by -a). -maximize When moving/resizing a window, put it also into maximized state. -mn arg Tiles up to arg windows in tile direction. If more windows exist, a new direction row or column is created (in effect, a matrix is created). Used only when tiling windows. -noanimate Do not attempt to do an animated move. -nomaximize Do not put windows into maximized state. -noraise Inhibits window raising, leaving the depth ordering intact. -noresize Inhibits window resizing, leaving window sizes intact. This is the default when cascading windows. -nostretch If tiling: inhibits window growth to fit tile. Windows are shrunk to fit the tile but not expanded. If cascading: inhibits window expansion when using the -resize option. Windows will only shrink to fit the maximal width and height (if given). -r Reverses the window sequence. -resize Forces all windows to resize to the constrained width and height (if given). This is the default when tiling windows. -s Causes sticky windows to also be affected (implied by -a). -sp Causes windows sticky across pages to also be affected (implied by -a). -sd Causes windows sticky across desks to also be affected (implied by -a). -t Causes transient windows to also be affected (implied by -a). -tile Tile windows. This argument must be the first on the command line. -u Causes untitled windows to also be affected (implied by -a). Up to four numbers can be placed on the command line that are not switches. The first pair specify an x and y offset to start the first window (default is 0, 0). The meaning of the second pair depends on operation mode: When tiling windows it specifies an absolute coordinate reference denoting the lower right bounding box for tiling. When cascading it specifies a maximal width and height for the layered windows. If an affected window exceeds either this width or height, it is resized to the maximal width or height. If any number is suffixed with the letter p, then it is taken to be a pixel value, otherwise it is interpreted as a screen percent- age. Specifying zero for any parameter is equivalent to not specifying it. BUGS
It is probably not a good idea to delete windows while windows are being rearranged. AUTHORS
Andrew Veliath (original FvwmTile and FvwmCascade modules) Dominik Vogt (merged FvwmTile and FvwmCascade to FvwmRearrange) 3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmRearrange(1)
All times are GMT -4. The time now is 06:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy