Sponsored Content
Top Forums Shell Programming and Scripting Merge two file data together based on specific pattern match Post 302372915 by patrick87 on Thursday 19th of November 2009 04:54:25 AM
Old 11-19-2009
Erm...
It just based on the column 1 content of file_1.
So far all the column 1 content of file_1 only appear once and no repeat.
you got any idea to solve my trouble?
thanks first Smilie

---------- Post updated at 04:54 AM ---------- Previous update was at 04:46 AM ----------

Hi, jsmithstl
sad to said that some might be appear twice as well in file_1's column 1.
I want all the file_1 content must exist in the output file. File_2 content just combined with it once match.
Sorry if bring you any inconvenience.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Concatenating and appending string based on specific pattern match

Input #GEO-1-type-1-fwd-Initial 890 1519 OPKHIJEFVTEFVHIJEFVOPKHIJTOPKEFVHIJTEFVOPKOPKHIJHIJHIJTTOPKHIJHIJEFVEFVOPKHIJOPKHIJOPKEFVEFVOPKHIJHIJEFVHIJHIJEFVTHIJOPKOPKTEFVEFVEFVOPKHIJOPKOPKHIJTTEFVEFVTEFV #GEO-1-type-2-fwd-Terminal 1572 2030... (7 Replies)
Discussion started by: patrick87
7 Replies

2. Shell Programming and Scripting

Paste two file side by side together based on specific pattern match problem

Input file_1: P78811 P40108 O17861 Q6NTW1 P40986 Q6PBK1 P38264 Q6PBK1 Q9CZ49 Q1GZI0 Input file_2: (6 Replies)
Discussion started by: patrick87
6 Replies

3. Shell Programming and Scripting

Merge lines in text file based on pattern

Hello, I have searched forum trying to find a solution to my problem, but could not find anything or I did not understand the examples.... I should say, I am very inexperienced with text processing. I have a text file with approx 60k lines in it. I need to merge lines based on the number... (8 Replies)
Discussion started by: Bertik
8 Replies

4. Shell Programming and Scripting

fetch last line no form file which is match with specific pattern by grep command

Hi i have a file which have a pattern like this Nov 10 session closed Nov 10 Nov 9 08:14:27 EST5EDT 2010 on tty . Nov 10 Oct 19 02:14:21 EST5EDT 2010 on pts/tk . Nov 10 afrtetryytr Nov 10 session closed Nov 10 Nov 10 03:21:04 EST5EDT 2010 Dec 8 Nov 10 05:03:02 EST5EDT 2010 ... (13 Replies)
Discussion started by: Himanshu_soni
13 Replies

5. Shell Programming and Scripting

Help with replace line based on specific pattern match

Input file data20714 7327 7366 detail data20714 7327 7366 main data250821 56532 57634 detail data250821 57527 57634 main data250821 57359 57474 main data250821 57212 57301 main data250821 57140 57159 detail data250821 56834 57082 main data250821 56708 56779 main ... (3 Replies)
Discussion started by: perl_beginner
3 Replies

6. Shell Programming and Scripting

Help with ksh-to read ip file & append lines to another file based on pattern match

Hi, I need help with this- input.txt : L B white X Y white A B brown M Y black Read this input file and if 3rd column is "white", then add specific lines to another file insert.txt. If 3rd column is brown, add different set of lines to insert.txt, and so on. For example, the given... (6 Replies)
Discussion started by: prashob123
6 Replies

7. Shell Programming and Scripting

How to merge variable data from another file into specific place?

Hello, I'm trying to create multiple commands using a variable input from another file but am not getting any successful results. Basically, file1.txt contains multiple lines with single words: <file1.txt> yellow blue black white I want to create multiple echo commands with these... (8 Replies)
Discussion started by: demmel
8 Replies

8. Shell Programming and Scripting

Match all lines in file where specific text pattern is less than

In the below file I am trying to grep or similar, all lines where only AF= is less than 0.4.. Thank you :). grep grep "AF=" ,+ .4 file file 12 112036782 . T C 34.0248 PASS ... (3 Replies)
Discussion started by: cmccabe
3 Replies

9. Shell Programming and Scripting

awk to update value based on pattern match in another file

In the awk, thanks you @RavinderSingh13, for the help in below, hopefully it is close as I am trying to update the value in $12 of the tab-delimeted file2 with the matching value in $1 of the space delimeted file1. I have added comments for each line as well. Thank you :). awk awk '$12 ==... (10 Replies)
Discussion started by: cmccabe
10 Replies

10. Shell Programming and Scripting

Bash to move specific files to directory based on match to file

I am trying to mv each of the .vcf files in the variants folder to the folder in /home/cmccabe/f2 that the .vcf id is found in file. $2 in file will always have the id of a .vcf in the variants folder. The line in blue staring with R_2019 in file up to the -v5.6 will always be an exact match to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
UISP(1) 							   User Commands							   UISP(1)

NAME
uisp - Micro In-System Programmer for Atmel's AVR MCUs SYNOPSIS
uisp [OPTION].. -dprog=TYPE -dpart=AT90XXX --FUNCTION.. [if=SOURCE] [of=DEST] DESCRIPTION
Programming Methods: -dprog=<method> avr910 Standard Atmel Serial Programmer/Atmel Low Cost Programmer pavr http://www.avr1.org/pavr/pavr.html stk500 Atmel STK500 dapa Direct AVR Parallel Access stk200 Parallel Starter Kit STK200, STK300 abb Altera ByteBlasterMV Parallel Port Download Cable atdh Atmel-ISP Download Cable (P/N ATDH1150VPC) avrisp Atmel AVR ISP (?) bsd http://www.bsdhome.com/avrdude/ (parallel) fbprg http://ln.com.ua/~real/avreal/adapters.html (parallel) dt006 http://www.dontronics.com/dt006.html (parallel) maxi Investment Technologies Maxi (parallel) dm04 Datamekatronik 2004 (parallel) dasa serial (RESET=RTS SCK=DTR MOSI=TXD MISO=CTS) dasa2 serial (RESET=!TXD SCK=RTS MOSI=DTR MISO=CTS) dasa3 serial (RESET=!DTR SCK=RTS MOSI=TXD MISO=CTS) Target Device Selection: -dpart=part Set target abbreviated name or number. For some programmers, if -dpart is not given programmer's supported devices are listed. Set -dpart=auto for auto-select. Auto-select does not work with all programmers, so it is recommended to always specify a target device explicitly. Parallel Device Settings: -dlpt=address|device name specify device name (Linux ppdev, FreeBSD ppi, serial) or direct I/O parallel port address (0x378, 0x278, 0x3BC) -dno-poll Program without data polling (a little slower) -dno-retry Disable retries of program enable command -dvoltage=value Set timing specs according to the power supply voltage in [V] (default 3.0) -dt_sck=time Set minimum SCK high/low time in micro-seconds (default 5) -dt_wd_flash=time Set FLASH maximum write delay time in micro-seconds -dt_wd_eeprom=time Set EEPROM maximum write delay time in micro-seconds -dt_reset=time Set reset inactive (high) time in micro-seconds -dinvert=[sck[,mosi[,miso[,reset]]]]] Invert specified lines Use -v=3 option to see current settings. -d89 Allow parallel programming of AT89S51 and AT89S52 devices. Atmel Low Cost Programmer Serial Device Settings: -dserial=device name Set serial interface as /dev/ttyS* (default /dev/avr) -dspeed=1200|2400|4800|9600|19200|38400|57600|115200 Set speed of the serial interface (default 19200) Stk500 specific options: -dhiv Use Hi-V programming instead of SPI (default is SPI). --rd_aref Read the ARef Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter. --wr_aref=value Set the ARef Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be larger than the VTarget value. --rd_vtg Read the Vtarget Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter. --wr_vtg=value Set the VTarget Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be smaller than the ARef value. --rd_osc Read the oscillator frequency in Hertz. --wr_osc=value Set the oscillator frequency in Hertz, from 14.06 to 3686400. Functions: --upload Upload "input_file" to the AVR memory. --verify Verify "input_file" (processed after the --upload opt.) --download Download AVR memory to "output_file" or stdout. --erase Erase device. --segment=flash|eeprom|fuse Set active segment (auto-select for AVA Motorola output) Fuse/Lock Bit Operations: --rd_fuses Read all fuses and print values to stdout --wr_fuse_l=byte Write fuse low byte --wr_fuse_h=byte Write fuse high byte --wr_fuse_e=byte Write fuse extended byte --wr_lock=byte Write lock bits. Argument is a byte where each bit is: Bit5 -> blb12 Bit4 -> blb11 Bit3 -> blb02 Bit2 -> blb01 Bit1 -> lb2 Bit0 -> lb1 --lock Write lock bits [old method; deprecated]. Files: if=filename Input file for the --upload and --verify functions in Motorola S-records (S1 or S2) or 16 bit Intel format of=filename Output file for the --download function in Motorola S-records format, default is standard output Other Options: -v=level Set verbose level (-v equals -v=2, min/max: 0/4, default 1) --hash=perbytes Print hash (default is 32 bytes) --help -h Help --version Print version information --terminal Invoke shell-like terminal AUTHOR
Written by Uros Platise. REPORTING BUGS
Report bugs to <uisp-dev@nongnu.org> SEE ALSO
http://savannah.nongnu.org/download/uisp/ COPYRIGHT
(c) 1997-1999 Uros Platise, 2000-2004 Marek Michalkiewicz uisp is free software, covered by the GNU General Public License. You are welcome to change it and/or distribute copies of it under the conditions of the GNU General Public License. uisp version 20050207 May, 2012 UISP(1)
All times are GMT -4. The time now is 05:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy