09-25-2014
This is a result of what is known in the trade as GIGO (garbage in, garbage out). You told us what your input files looked like and you told us what you wanted your output to look like based on those input formats. We provided you code that performed the requested transformations and gave the exact output you said you wanted based on those input file formats.
Now you show us an input file format that is completely different from your sample input file format for file1 and tell us that our suggestions didn't work. Our software isn't smart enough to magically realize that the input format for file1 was totally wrong and transform itself into new code that can handle your new input file format.
Next time please give us representative sample data instead of wasting the time of all of the volunteers who were trying to help you.
I have other things to do this afternoon, but I may be able to try to put something together later to work with your new input input file format.
Last edited by Don Cragun; 09-26-2014 at 03:06 AM..
Reason: Fix typo know -> known
These 2 Users Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to find files which have urls such as "services/amf/fri/home.html" and "services/amj/fri/air.html" - so the pattern I want to match with grep, logically, is one that has
1. "services/"
2. stuff in between including slashes, numbers, underscores etc
3. ending in "html"
Can... (5 Replies)
Discussion started by: pauljohn
5 Replies
2. Shell Programming and Scripting
I have variable $2 whose value is expdp_SDW_MSTR_VMDB.par
I want to replace three characters from right (par) with (log)
Input --> expdp_SDW_MSTR_VMDB.par
Output --> expdp_SDW_MSTR_VMDB.log
Thanks
Deep (2 Replies)
Discussion started by: deep.singh
2 Replies
3. Shell Programming and Scripting
I have a pattern match problem I could use your help with
I have a file in the following format (names.txt)
jae,doe
john,doe
jay,doe
I need to loop through the file using FOR and check the names in names.txt against another file (information.txt).
information.txt is in the following... (2 Replies)
Discussion started by: chaos40
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file like follows
.
.
.
White.Jack.is.going.home
Black.Jack.is.going.home
Red.Jack.is.going.home
Jack.is.going.home
.
.
.
when I make:
cat <file> | grep -w "Jack.is.going.home"
it gives:
White.Jack.is.going.home
Black.Jack.is.going.home
Red.Jack.is.going.home... (4 Replies)
Discussion started by: salih81
4 Replies
5. Shell Programming and Scripting
The clear command specifically says it can only clear the entire terminal display. There are no arguments. So I'm wondering if there are any work arounds.
Carriage return does not work for this as it only moves the cursor to the beginning of the line we're on. And obviously NL only goes down. If... (1 Reply)
Discussion started by: FunkyLich
1 Replies
6. Web Development
Here is the fix for the recent Google changes to their pagerank API. For example, in the List Rank Dashboard Widget Wordpress Plugin (Version 1.7), in this plugin file:
list-rank-dashboard-widget/wp-list-rank-class.php
in this function:
function getGooglePR($url)
Change this line:
... (0 Replies)
Discussion started by: Neo
0 Replies
7. Shell Programming and Scripting
Hello i have 2 files:
a.out
10.1.1.1 james.franco
10.1.1.3 google.gol
10.1.1.14 yahoo.bol
b.out
10.1.1.1
10.1.1.3
10.1.1.45
I need to see an output just with:
10.1.1.1 james.franco
10.1.1.3 google.gol
Thankz in advance!! (2 Replies)
Discussion started by: danielldf
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am calling a shell script from another shell script, however, it only executes part of it (the echo commands only). What could be some causes for that?
For example:
ShellScriptA.sh:
...
...
...
. ShellScriptB.sh
ShellScriptB.sh contents:
echo date
echo... (7 Replies)
Discussion started by: DBnixUser
7 Replies
9. UNIX for Dummies Questions & Answers
Hi guys, I am using Centos 6.3. Actually I posted similar question but I still have some minor problem need be fixed. I have two files,
file1:target: gi|57529786|ref|NM_001006513.1| mfe: -31.4 kcal/mol p-value: 0.006985
target: gi|403048743|ref|NM_001271159.1| mfe: -29.6 kcal/mol p-value:... (11 Replies)
Discussion started by: yuejian
11 Replies
10. UNIX for Dummies Questions & Answers
I actually posted a similar question before but my expression probably lead the helper here frustrated. I also tried to figure it out by myself but failed. So I rephrase my question again and hopefully it is clearer to understand. I really appreciate your help.
Here is the file1target:... (2 Replies)
Discussion started by: yuejian
2 Replies