06-20-2009
I also have this kind of problem. The code above deletes the lines which are alike on the two files. How can i do this, on a separate file?
File 3:
#from first file
a3px lm4 xpm
0wmp jga1 wmp6
#from second file
a3px lm4 xpj
0xmp lm4 xpm
thanks a lot!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I find matching lines between two files? (5 Replies)
Discussion started by: jojojmac5
5 Replies
2. Shell Programming and Scripting
I am using solaris, need either awk/shell or perl script to compate two files.
both of these file1 and file2 are located in two diffent location path in the same server.
file1 location: /export/db/mna
file2: /etc/dba
The script will compare in file1 first field (e.g. abc00asp)before colon:... (8 Replies)
Discussion started by: amir07
8 Replies
3. Shell Programming and Scripting
Hi,
I have two tab separated files;
file1:
S.No ddi fi cu o/l t+ t-
1 0.5 0.6 o 0.1 0.2
2 0.2 0.3 l 0.3 0.4
3 0.5 0.8 l 0.1 0.6
... (5 Replies)
Discussion started by: vasanth.vadalur
5 Replies
4. Shell Programming and Scripting
Hi everyone
I have a dilemma and I'm hoping someone has an answer for me.
I have two files:
# cat masterfile
line3
line4
line5
line6
line7
# cat tempfile
line1
line2
line3
line4
I want to compare tempfile with masterfile. (3 Replies)
Discussion started by: soliberus
3 Replies
5. Shell Programming and Scripting
Hi,
Can anyone help me to compare two files and get the matching data... say i have file1 and file2 ... file1 has 300 unique data with that i need to match with file2 to see how may are matching.. file2 have 1000 records. (4 Replies)
Discussion started by: zooby
4 Replies
6. Shell Programming and Scripting
Have two files and want to compare the content of file1 with file2. When matched remove the line.
awk 'NR==FNR {b; next} !(b in $0)' file1 file2file1
1. if match
2. removefile2
1. this line has to be removed if match
2. this line has a match, remove
3. this line has no match, no removingThe... (3 Replies)
Discussion started by: sdf
3 Replies
7. Shell Programming and Scripting
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies
8. Shell Programming and Scripting
I have 2 files. File 1 has more columns (6 columns but the last column has spaces) than file 2 (file 2 has 4 columns). The entries in file 1 do not change but column 4 in file 2 can be different from the the entry in file 1. I want to create a script that reads in file 1 and then uses column 1 2... (5 Replies)
Discussion started by: kieranfoley
5 Replies
9. Linux
hi,
i have a cache file with below file list
more gtda_11.cache
GTDA_Dly_Pmix_GB_6_20130624.20130624070610.psv
GTDA_Dly_Pmix_CH_006_20130624.20130624140018.psv
GTDA_Dly_Pmix_GB_6_20130624.20130624070620.psv
GTDA_Dly_Pmix_BE_6_20130624.20130624070620.psv... (2 Replies)
Discussion started by: renuk
2 Replies
10. Shell Programming and Scripting
Dear All,
I would like to compare two files and return the number of matches found.
Example
File A
Lx2
L1_Mus1
L1Md_T
Lx5
L1M2
L1_Mus3
Lx3_Mus
Lx9
Lx2A
L1Md_A
L1Md_F2
File B
L1_Mus3
L1_Mus3 (3 Replies)
Discussion started by: paolo.kunder
3 Replies
XFM(5) XFM XFM(5)
NAME
xfm - file format for application window contents of xfm
DESCRIPTION
Xfm - the X file and application manager - has its own format to save the content of the application window, which is described in this
file.
FORMAT
One entry per line. Lines starting with a hash (#) and empty lines are ignored. Each line consists out of six fields, separated by colons
(:). Backslashes and colons within those fields have to be escaped using backslashes.
FIELDS
Label
The label printed below the icon in the application window is the first part.
Directory
Directory The second part is the directory the specified action is executed in. An empty string is treated as the $HOME-directory, which
is also substituted for a leading tilde followed by a slash (~/).
If this line has the special drop_action LOAD, this is not the directory, but the next xfm file to display.
empty compatibility field
This field is only here for compatibility reasons. It has to be empty.
icon
The 4th field is the icon to show. Unless this field is empty, xfm will search in the pixmapPath and the bitmapPath for this file and use
it as icon for this item. The icon has to be in XBM or in the XPM format.
push action
This field (the 5th) contains the action to execute when the specified field is double-clicked or otherwise activated. Unless it is one of
the special commands listed below, it is given as a whole to the shell. Any parts encapsulated in percent signs (%) are substituted with
user input. Default values can be specified with two hyphens (--) within the token.
The special commands are:
LOAD The directory field is interpreted as filename of a xfm file which replaces the current contents of the application window. If the
directory is the special value XFM-DEVICES, the content of the application window are generated out of the information of the
xfm_dev(5) file instead.
OPEN The directory specified in the directory field is opened in a new file window.
EDIT filename
Start the default editor with the specified filename.
drop action
This field (the 6th) contains the action to execute if some files are dragged from the file window and dropped into this item. The command
is given to a shell, and the files are given as arguments.
EXAMPLES
Start a xterm with $HOME-directory as current directory. The icon is xterm.xpm. Nothing can be dragged here.
Xterm:::xterm.xpm:exec term:
Open the special menu for showing mountable devices:
Devices:XFM-DEVICES:::LOAD:
Open a file window with the home directory:
Home::::OPEN:
Open /floppy in a new file window:
Diskettenlaufwerk:/floppy::dev_floppy.xpm:OPEN:
Execute an xterm with a user specified command:
execute::::xterm -e %command--watch date%:
Grab a screenshot when pushed, show drag&dropped images with xli:
picture::::import `date +\%Y\%m\%d\%M\%H\%S.png`:xli "$@"
Process dropped files with transfig:
transfig:::app.xpm::transfig -L %Language:--eepic% "$@"
FILES
$HOME/.xfm/Apps
Unless otherwise specified in the X resources, this is the file opened when Xfm starts.
/etc/X11/xfm/Apps
Unless otherwise specified in the X resources, this file is opened when the previous one fails.
SEE ALSO
xfm(1), xfm_dev(5), xfmtype(1), xbm(5), xpm(5).
xfm 20 April, 2006 XFM(5)