Sponsored Content
Top Forums Shell Programming and Scripting select records from one file based on a second file Post 302335024 by rleal on Friday 17th of July 2009 05:28:44 AM
Old 07-17-2009
That was absolutely brilliant! Thanks so much.

r.-
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Select records based on search criteria on first column

Hi All, I need to select only those records having a non zero record in the first column of a comma delimited file. Suppose my input file is having data like: "0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005" "0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
Discussion started by: shashi_kiran_v
2 Replies

2. Shell Programming and Scripting

Select a portion of file based on query

Hi friends :) I am having a small problem and ur help is needed... I have a long file from which i want to select only some portions after filtering (grep). My file looks like : header xxyy lmno xxyy wxyz footer header abcd xy pqrs footer . . (14 Replies)
Discussion started by: vanand420
14 Replies

3. Shell Programming and Scripting

Splitting a file based on the records in another file

All, We receive a file with a large no of records (records can vary) and we have to split it into two files based on another file. e.g. File1: UHDR 2008112 "25187","00000022","00",21-APR-1991,"" ,"D",-000000519,+0000000000,"C", ,+000000000,+000000000,000000000,"2","" ... (2 Replies)
Discussion started by: er_ashu
2 Replies

4. Shell Programming and Scripting

Automatically select records from several files and then run a C executable file inside the script

Dear list its my first post and i would like to greet everyone What i would like to do is select records 7 and 11 from each files in a folder then run an executable inside the script for the selected parameters. The file format is something like this 7 100 200 7 100 250 7 100 300 ... (1 Reply)
Discussion started by: Gtolis
1 Replies

5. Shell Programming and Scripting

Block of records to select from a file

Hello: I am new to shell script programming. Now I would like to select specific records block from a file. For example, current file "xyz.txt" is containing 1million records and want to select the block of records from line number 50000 to 100000 and save into a file. Can anyone suggest me how... (3 Replies)
Discussion started by: nvkuriseti
3 Replies

6. UNIX for Dummies Questions & Answers

Filtering records from 1 file based on some manipulation doen on second file

Hi, I am looking for an awk script which should help me to meet the following requirement: File1 has records in following format INF: FAILEd RECORD AB1234 INF: FAILEd RECORD PQ1145 INF: FAILEd RECORD AB3215 INF: FAILEd RECORD AB6114 ............................ (2 Replies)
Discussion started by: mintu41
2 Replies

7. UNIX for Dummies Questions & Answers

how to select lines from one file based on another file

Hi, I would like to know how can I select lines of one file based on a common ID column from another file (keeping the order of the second file). Example of file1: ID A B C D 1-30 1 2 3 5-60 4 5 6 1-20 7 8 9 Example of file2: ID chr pos 1-20 1 20 1-30 1 30 5-60 5 60 Desired... (2 Replies)
Discussion started by: fadista
2 Replies

8. Shell Programming and Scripting

Short program to select lines from a file based on a second file

Hello, I use UBUNTU 12.04. I want to write a short program using awk to select some lines in a file based on a second file. My first file has this format with about 400,000 lines and 47 fields: SNP1 1 12.1 SNP2 1 13.2 SNP3 1 45.2 SNP4 1 23.4 My second file has this format: SNP2 SNP3... (1 Reply)
Discussion started by: Homa
1 Replies

9. Shell Programming and Scripting

Delete the records in file based on lookup file.

Hi I have two files one.txt and two.txt one.txt 123 324 456 235 456 two txt abc one 000 123 abc abc one 000 456 abc abc one 000 122 abc abc one 000 111 abc My question here is, the records which are present in one.txt has to deleted in second file two.txt my output result... (2 Replies)
Discussion started by: Ganesh L
2 Replies

10. Shell Programming and Scripting

Quick way to select many records from a large file

I have a file, named records.txt, containing large number of records, around 0.5 million records in format below: 28433005 1 1 3 2 2 2 2 2 2 2 2 2 2 2 28433004 0 2 3 2 2 2 2 2 2 1 2 2 2 2 ... Another file is a key file, named key.txt, which is the list of some numbers in the first column of... (5 Replies)
Discussion started by: zenongz
5 Replies
cultivation(6)							       Games							    cultivation(6)

NAME
cultivation - game about the interactions within a gardening community SYNOPSIS
cultivation DESCRIPTION
Cultivation is a video game written by Jason Rohrer about a community of gardeners growing food for themselves in a shared space. Cultivation is quite different from most other games. It is a social simulation, and the primary form of conflict is over land and plant resources---there is no shooting, but there are plenty of angry looks. It is also an evolution simulation. Within the world of Cultivation, you can explore a virtually infinite spectrum of different plant and gardener varieties. All of the graphics, sounds, melodies,and other content in Cultivation are 100% procedurally generated at playtime. In other words, there are no hand-painted texture maps---instead, each object has a uniquely "grown" appearance. Every time you play, Cultivation generates fresh visuals, music, and behaviors. Cultivation is certainly an unusual game, but that doesn't necessarily mean it's good. From experience, some people absolutely love it, while others absolutely hate it. It's intended to be an "art game," after all, and mixed reactions go with that territory. When two sides are fighting, they often ruin the commons for everyone. The game is a metaphor about that kind of situation. Too much fight- ing destroys the island for everyone. USAGE
Cultivation explores the social interactions within a gardening community. You lead one family of gardeners, starting with a single indi- vidual, and wise choices can keep your genetic line from extinction. While breeding plants, eating, and mating, your actions impact your neighbors, and the social balance sways between conflict and compromise. Cultivation features dynamic graphics that are procedurally-generated using genetic representations and cross-breeding. In other words, game objects are "grown" in real-time instead of being hand-painted or hard-coded. Each plant and gardener in the game is unique in terms of both its appearance and behavior. The game includes an extensive in-game tutorial. In Cultivation, the game system teeters on the verge of uncontrolled conflict, and the player can make choices within this system that affect the balance. Perhaps it is impossible to win the game by acting only out of self-interest, but likewise, it may be impossible to win acting only out of altruism (I say "perhaps" here because, even as the designer of the system, I have only explored a tiny fraction of the game's possible permutations). Players can directly see the results of the choices that they make. In the initial release of Cultivation, neighbors would respond to encroachment with both counter-encroachment (claiming some of your plants as their own) and social scorn (refusing to mate with you). With only these mechanics in place, fighting just didn't feel serious enough---a fight could continue indefinitely without any real consequences, since after two plots overlapped completely, no further revenge was possible for either side. I had to think of a more serious act to crown the peak of an escalating fight. Poisoning, which is now a key mechanic in Cultivation, fit perfectly. This mechanic allows an angry neighbor to poison a plant. Poison not only kills the target plant, but it also renders the ground around the plant forever unusable. SEE ALSO
You can find more information at http://cultivation.sourceforge.net/ June 2007 cultivation(6)
All times are GMT -4. The time now is 08:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy