In the below bash there are 6 .txt files in /home/cmccabe/Desktop/comparison/ref_val/ that are being updated from the 6 .vcf files in /home/cmccabe/Desktop/comparison/validation/files/*.vcf. The awk in the post updates the files with the information, however the files are not being updated so the awk stalls. Each filename will have the portion before the _ that matches between /home/cmccabe/Desktop/comparison/ref_val/*.txt and /home/cmccabe/Desktop/comparison/validation/files/*.vcf
Example of file in /home/cmccabe/Desktop/comparison/ref_val/*.txt
this file is updated from /home/cmccabe/Desktop/comparison/validation/files/*.vcf
matching files used to update FN /home/cmccabe/Desktop/comparison/validation/files/*.vcf
example of vcf file from (this is the file that update FN) /home/cmccabe/Desktop/comparison/validation/files/*.vcf
example of text file from (this is the file being updated) /home/cmccabe/Desktop/comparison/ref_val/*.txt
Bash
desired output (this is FN before updating)
this is FN after updating
If no match is found in /home/cmccabe/Desktop/comparison/validation/files/*.vcfto update FN, then it it skipped and the next line is processed. I hope I have included everything and thank you .
In this post at 302451613-post2.html the link to the code comes up not found. The thread is closed, so I was unable to ask on the thread itself and I do not have enough posts yet to send a private message (or write out a proper html link). Does the author (jim mcanamara) have an updated link?
... (2 Replies)
Hi to all,
I have thousand of files in a folder with names with format "FILE-YYYY-MM-DD-HHMM" for what I want to send the following AWK command
awk '/Code.*/' FILE-2014*
I'd like to separate all files that have the same date to a folder named with the corresponding date. For example, if I... (7 Replies)
Hi
i want to update the BASH because of the "shell shock" vulnerability.
my RedHat 5 is clean install with the default mirror site.
when im running the command: yum update bash
im getting a message saying there is no update. you can see in the attach picture...
what am i doing wrong? is... (4 Replies)
The patch blog has:
https://blogs.oracle.com/patch/entry/solaris_idrs_available_on_mos
information on dealing with bash 'shellshock' vulnerability. (3 Replies)
Hi,
I'm using awk command in bash script. I'm able to pass multiple files to awk for processing.The code i can use is as below(sample code)
#!/bin/bash
awk -F "," 'BEGIN {
...
...
...
}' file1 file2 file3
In the above code i'm passing the file names manually and it is fine till my... (7 Replies)
Hello,
I want to check the value of all MySQL columns.(column name is "status") via bash script.
If value is "0" at I want to make only single column value to "1"
I have many "0" values on mysql database(on "status" column)
"0" means it is a draft post. I want to publish a post. I... (2 Replies)
Hi All,
Using Solaris box
bash-3.00$ echo $BASH_VERSION
3.00.16(1)-release
I have a real bummer of a bug, basically Im running a bash script that executes a bash function "dbase_sql". The bash function accepts a parameter in the form of an Oracle update statement eg
... (1 Reply)
Hi all,
Basically Im trying to put the current time in a script in BASH. Tried the watch command, but its not really what I want.
I will have lots of things in this script, current date and time being just a few).
Any ideas? (4 Replies)
I have a security system that FTPs the camera files to my machine, however I want to sort the pictures (taken every 30s) into directories by hour.
Every picture uses the following file format.
yymmddhhmmsstt.jpg (where tt is the milliseconds)
I am thinking the for loop is best
for file... (11 Replies)