How to replace string in only one field which could be duplicated in the file I have a file consists of serveral sections, and each section consists
of same/semilar fields. Some fields need to change, the string should
be replaced without effect same field in other section. Here is an
group name = abc # section 1
stt = 123
busy = off
dev = name1
ssn = 129483021
dlc = c82u208
group name = xyz # section 2
stt = 145
busy = on
dev = name2
ssn = 129432326
dlc = s43k234
group name = jhg # section 3
stt = 321
busy = off
Extract lines from a log-file with duplicate fields? How could I extract all of the lines from a log-file which have a
certain field duplicated?
For example, if File1.log contained
Using any common GNU utilities like sed/awk/uniq/tac/egrep (not Perl
though), let's say I need a command that will return all lines where
the second field is duplicated. Note that the duplicated field may or
may not be in consecutive lines. So, I need to end up with;
For added points I could also do with a count of the number of times
Populating a field based on a value in a related file I have file with orders I get from a customer (has item number). In a second
file I have Item number and manufacture.
In the orders file I need to assign a salesperson based on the manufacture
of the item on the order. There are only two salespersons and just a few
manufactures; I know I could use the Case Function to set the salesperson
field. However I'd like something more dynamic, so if a manufacture is
changed a user could just up a field.
Is there a way to do this through a multi-key relationship?
create a db that as info on salespeople/manufacturers
transferring fields of one file to fields of another file Hi,
I have a C program and Fortran that are similar in what they do. I
have functions that have tolerances and precisions (among other
things) as arguments. What I would like to do is transfer the
precision and tolerance fields of the C file to the corresponding ones
in the Fortran file.
What I have at this point does nothing other than remove one of the
fields in the updated Fortran file. I run the awk program at the
command line as awk -f transfer_file c_file fortran_file >
FS = "[(,]+" # make any number of commas, brackets
# and s...
Copy File Field Value to Dynamic File Field Value Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
> Firefox showed me a security error when I was copying a value of file
> field object into new DOM created input file field. Can I do something
> about it?
Nope, it's a security issue, you're not able to manipulate file fields.
# Regards || piotr[.]solnica[at]gmail[.]com || jid : email@example.com #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
On Nov 7, 9:55 am, s0...
Can I filter a value list in a related field and the related result could be in 2 fields Hi,
Here is my situation.
I have a table called tb_manager which has manager_id and manager_name
Another table called tb_project which has project_id, main_manager_id,
I have relationships on manager_id from tb_manager to tb_project's
main_manager_id and bk_manager_id.
I would like to have a value list when I select a manager_id, it will
show me all project_id that this manager handles. This value list
should include all projects which the manager_id is either in
tb_project's main_manager_id or bk_manager_id.
tb_manager: manager_id: A
changing field content of ID related fields Hello together,
I am using FM 7. I am working with related tables for my database. In
one of these tables I have fields related to an automatic ID. If I
want to change the content of the ID-related field the new content will
not be seen in all records but only in those who are created after the
e.g. field NAME content = Smith ID = 32 changing field content from
Smith to Johnson has only affect in new records but I want this change
happens in all records. The old "name" is no longer valid and needed.
Thank's for your help
Normally I won't re-u...
displaying file path in file input field Hi all,
i have file input field in a form like this:
<input name="isbn" type="text" size="25" value="<?php echo
$_POST['isbn'] ?>" />
<input name="image" type="file" size="25" value="<?php echo
$_FILES['image']['name'] ?>" />
when i press "submit" button, the same page gets loaded... if my
$_POST['isbn'] is empty, i want to have the file path on "file input
field" to redisplay on that same field... it's possible in text input
how to add relative path of files in iframe file attribute Hi All, i want to show the content of file in iframe .So iam using<iframe name="I1" src="file://<%=reportFilePath %>" but when i try toopen the web page from different pc on the networkit didnot display the content of file. but when i click on downloadbuttion it'll properly download the file. So anybody know the solutionto this problem then please tell me.Thanks in Advanceregardsmahesh B. Well, how does your download button code look like?...