Sponsored Content
Homework and Emergencies Homework & Coursework Questions Attributes value substitution with sed command Post 302951969 by Bijayan Sarkar on Wednesday 12th of August 2015 09:11:37 AM
Old 08-12-2015
Sir,
I have added the same
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Substitution using sed

I know we can substitute a string using sed but how? For example: sed 's/(old variable)/(new variable)/ details.dat Am I suppose to put $old variable or whatever? Because I tried many times, it didnt work by putting $old variable. Am I suppose to enclose it with "" or ''? Please help (3 Replies)
Discussion started by: Ohji
3 Replies

2. UNIX for Dummies Questions & Answers

sed substitution

Hi, I have a set of files containing strings like I.TEST1_TEST2 or B.ESSA_ESSB for example. Does somebody know how to substitute these strings whith the same name and an extension "_V1" (ie. I.TEST1_TEST2_V1) using sed command or else ? (3 Replies)
Discussion started by: jo_aze
3 Replies

3. Shell Programming and Scripting

Substitution using SED

Hi , I am stuck up in the below scenario:- I need to read a file name (eg A.txt) name frm another file (eg B.txt) and then I need to search for a particular expression in A.txt and substitute it with another expression. How can I use SED inside SHELL Scripting and command prompt as... (2 Replies)
Discussion started by: shubhranshu
2 Replies

4. Shell Programming and Scripting

SED Substitution

Hi , I am stuck up in the below scenario:- I need to read a file name (eg A.txt) name frm another file (eg B.txt) and then I need to search for a particular expression in A.txt and substitute it with another expression. How can I use SED inside SHELL Scripting and command prompt as well to... (1 Reply)
Discussion started by: shubhranshu
1 Replies

5. Shell Programming and Scripting

Help with sed/substitution!

I have file.txt 1 4 7 9 3 I want to replace the tabs with a space, but my code doesn't work. cat file.txt | sed 's/"\t"/ /g' > t.txt But file is still the same. Numbers seperated by tabs instead of spaces. Help? (2 Replies)
Discussion started by: Bandit390
2 Replies

6. Shell Programming and Scripting

sed substitution

Hi I am trying to do a text insertion in a text file at a particular line number in a shell script. However its not working. sed '122i\ > for j in \`echo $MyList\` ; do perl -pi -e\'s#01\/01\/2009#01\/01\/2011#\' $j ; done' $HOME/MyScript.ksh The Actual line to be inserted at line 122... (5 Replies)
Discussion started by: som.nitk
5 Replies

7. AIX

Single command to change the attributes of all luns presented to an AIX host

Hi, I would like to know if there is a command similar to scsimgr in HP-UX that can help me change the algorithm and reserve_policy attributes of all luns presented to an AIX host. Otherwise I would have to use, chdev -l hdiskX -a algorithm=round_robin reserve_policy=no_reserve in a... (1 Reply)
Discussion started by: kanna_geekworkz
1 Replies

8. UNIX for Dummies Questions & Answers

sed insert command and variable expansion/command substitution

I know this script is crummy, but I was just messing around.. how do I get sed's insert command to allow variable expansion to show the filename? #!/bin/bash filename=`echo $0` /usr/bin/sed '/#include/ { i\ the filename is `$filename` }' $1 exit 0 (8 Replies)
Discussion started by: glev2005
8 Replies

9. Shell Programming and Scripting

sed substitution

Hi everyone, I need very simple sed command to change a parameter in a text file. I have a line in this text which is like set xx 0.5 A program reads this file and does some algebraic calculations. So to make a parameter scan I need to change the value of xx. I thought I can do... (7 Replies)
Discussion started by: hayreter
7 Replies

10. Shell Programming and Scripting

Attributes value substitution with sed command

Hi, I am trying to substitute an attributes value using sed command but it is only possible to substitute the value without space. input xml <BillingAddress11300000 Tag="11300000" SectionID="BLA" CustAddrName="CLAUDIA LUCIA DE ALMEIDA" CustAddrStreet="AV ENGENHEIRO RICHARD" CustAddrState="RJ"... (3 Replies)
Discussion started by: Bijayan Sarkar
3 Replies
SOL(6)								   Games Manual 							    SOL(6)

NAME
AisleRiot - a collection of card games which are easy to play with the aid of a mouse. SYNOPSIS
sol [options] DESCRIPTION
This manual page documents briefly the sol command. For more information, please refer to the excellent GNOME help for AisleRiot AisleRiot (also known as Solitaire or sol) is a collection of card games which are easy to play with the aid of a mouse. The rules for the games have been coded for your pleasure in the GNOME scripting language (Scheme). It is part of the gnome-games package. The following games can be selected from within the program, or by using a command line switch: Peek, Auld Lang Syne, Fortunes, Seahaven, King Albert, First Law, Straight Up, Jumbo, Accordion, Ten Across, Plait, Lady Jane, Gypsy, Neighbor, Jamestown, Osmosis, Kings Audience, Glenwood, Gay Gordons, Monte Carlo, Kansas, Camelot, Fourteen, Scorpion, Isabel, Escalator, Agnes, Bristol, Quatorze, Bear River, Gold Mine, Athena, Spiderette, Chessboard, Backbone, Yukon, Union Square, Eight Off, Napoleons Tomb, Forty Thieves, Streets And Alleys, Maze, Clock, Pileon, Canfield, Thirteen, Bakers Game, Triple Peaks, Easthaven, Terrace, Aunt Mary, Carpet, Sir Tommy, Diamond Mine, Yield, Labyrinth, Thieves, Saratoga, Cruel, Block Ten, Will O The Wisp, Odessa, Eagle Wing, Treize, Zebra, Cover, Elevator, Fortress, Giant, Spider, Gaps, Bakers Dozen, Whitehead, Freecell, Hel- sinki, Spider Three Decks, Scuffle, Poker, Klondike Three Decks, Valentine, Royal East, Thumb And Pouch, Klondike, Doublets, Tem- plate, Golf, Westhaven, Beleaguered Castle, Hopscotch, Eliminator, Aunt Mary OPTIONS
AisleRiot accepts the following options, besides the usual Gtk+/GNOME switches: -v, --variation=NAME Select the game to play --display=DISPLAY X display to use USAGE
This text is taken verbatim from the AisleRiot Manual V2.12. Moving the cards is reasonably obvious. Assuming you have a right-handed mouse, left-click on a card and drag it somewhere. Release the mouse button to deposit the card. If a card can be moved to the foundation(s), you do not need to drag it. You can double-click on it and it will move. If a sequence of cards can be moved to the foundations, you can generally move the sequence as one move. Double clicking a card will send it to a foundation, if that is possible. This is useful for cleaning up large numbers of cards at the end of a successful game. In games which have a stock pile you can redeal it by clicking on the empty space where it was. Be warned that some games only let you do this a limited number of time. Watch for the Redeals Left message at the bottom of the window. A useful tip to know is that right-clicking on a face-up card which is partially obscured by a card laid over it will raise it so that you can see what it is. There is an alternative way to move cards. By selecting Click to move from the Control menu you can click once to pick up a card and then click again to place it. This can be faster than dragging and will be easier on your hand since you don't have to hold the mouse down. However, it may take a while to get used to. Some games have options to change the way the game is played. For example Klondike can be played with either single card deals or three- card deals. In these games there is a separate menu with the game's name. You can only change the rules of the game at the beginning of the game -- the menu will be inactive during the game. Statistics on how well you have done at a particular game are available by selecting Statistics from the Game menu. Only games where you actually start moving cards are counted. The statistics are here for your own enjoyment, there are numerous ways to cheat and it is unwise to make comparisons. HOMEPAGE
http://www.gnome.org/projects/gnome-games/ AUTHOR
This manual page was written by Martin Ferrari <martin.ferrari@gmail.com>, for the Debian system (but may be used by others). You can find the list of authors and more information about AisleRiot in /usr/share/doc/gnome-games. AisleRiot March 22, 2007 SOL(6)
All times are GMT -4. The time now is 06:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy