#!/usr/bin/python
flag=0
for line in open("file1"):
line = line.strip()
for line2 in open("file2"):
if line2.split(",")[0] == line:
print line2.strip()
flag=1
if flag:
flag = 0
continue
else: print "%s,,," % line
Hi:
First, this is not a homework problem. I just need enough of a hint to get this going...
My datafile (dataf.in) is made up of 10 sections. Each section begins with & and with &&
So it looks like this:-------------------------------------
§ion1
...etc...
&&
§ion2
...etc...... (4 Replies)
Hi ,,,,
I have move an oracle db from old server to a new server ( solaris 5.9 is the operating system ) my problem is that to new server the datafile ( *.dbf ) are in a different path .....
example
old : /export/home/data/blobs ...........
new /oracle/data/blobs.......
how i can... (3 Replies)
Hi dear friends,
Im writing a shell script which has to select the strings based on the position.
but the problem is there is no field seperator.
Normally a datafile contains 2000 records (lines) and each line is of size 500 charecters.
I want to select the fields from all the lines which... (10 Replies)
I am working on an shell script which checks for all the file starting with abc*.*
and if file found then the filelines need to append the file name in begining
can some one help with the filename appending...
for i in `ls $filename*.csv`
do
echo $i
--- NEED to append file name befor... (3 Replies)
Hi,
Is there any way we can find out which process is creating a partucular datafile.I know the user and group but i am just curios to know is there any way to find the process.
Thanks (7 Replies)
Hello,
I've tried searching the forum for an answer to my question, but without any luck...
I have a datafile looking simplified as follows:
01 02 03 04 05 06
07 08 09 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
I want to reverse it by rearranging all the numbers from last to... (16 Replies)
Hi,
I have two files:
first input file is having 7-8 columns,
and second data file is like
I want to arrange my datafile1 in the order given in second data file, by comparing the seconddatafile with the second column of first file and print the entire line....also if any... (2 Replies)
I have a datafile containing data in the following format
name1,employee_number1,cell1,home1,fax1
name2,employee_number2,cell2,home2,fax2
name3,employee_number3,cell3,home3,fax3
name4,employee_number4,cell4,home4,fax4
name5,employee_number5,cell5,home5,fax5
...
...
....
I would like... (6 Replies)
I have two input files 1)datafile 2)metadata file.
I have a metadata file like:
field1datatypeformat1number2string3dateyy-mm-dd
I have a data file like:
1234abc12-8-16 xyz234512-9-163456acd14-08-12
In the first row there is no correction as everything is inline with the metadata.... (3 Replies)
Hi,
I want to be able to read numbers from many files which have the same general form as follows:
C3H8 4.032258004031807E-002
Phi = 1.000000E+00 Tau = 5.749E+00
sL0 = 3.805542E+01 dL0 = 1.514926E-02
Tb = 2.328291E+03 Tu = 3.450E+02 Alpha = ... (3 Replies)
Discussion started by: lost.identity
3 Replies
LEARN ABOUT BSD
install
INSTALL(1) General Commands Manual INSTALL(1)NAME
install - install binaries
SYNOPSIS
install [-cs] [-f flags] [-g group] [-m mode] [-o owner] file1 file2
install [-cs] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory
DESCRIPTION
The file(s) are moved (or copied if the c option is specified) to the target file or directory. If the destination is a directory, then
the file is moved into directory with its original filename. If the target file already exists, it is overwritten if permissions allow.
c Copy the file. This flag turns off the default behavior of install where it deletes the original file after creating the target.
f Specify the target's file flags. (See chflags(1) for a list of possible flags and their meanings.)
g Specify a group.
m Specify an alternate mode. The default mode is set to rwxr-xr-x (0755). The specified mode may be either an octal or symbolic
value; see chmod(1) for a description of possible mode values.
o Specify an owner.
s Install exec's the command strip(1) to strip binaries so that install can be portable over a large number of systems and binary
types.
By default, install preserves all file flags, with the exception of the ``nodump'' flag.
The install utility attempts to prevent moving a file onto itself.
Installing /dev/null creates an empty file.
Upon successful completion a value of 0 is returned. Otherwise, a value of 1 is returned.
SEE ALSO chflags(1), chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)HISTORY
The install utility appeared in 4.2BSD.
4.2 Berkeley Distribution February 20, 1996 INSTALL(1)