04-12-2012
Hi
I'd like to print each line where the columns match, so for example the result will show something like this:
to OUTPUTfile.log:
Uk, London, Application, datetime, LaterDateTime, Today This occured blah and I care
Because it had the work 'application' which matched the string from the other file in colum[0] (in fileB), and it contained the string ' This occured blah ' which occured in column[5] (in fileB).
There will be many rows in both files.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Im new here.I need to replace strings and change it into csv format, or at least saves the file as csv if that would work :p. Heres an example of my scenario
1) I have a log file, named abc.log, and its like a txt based file anyway, and the content looks like this
... (2 Replies)
Discussion started by: tententen
2 Replies
2. Shell Programming and Scripting
Hi, I have a problem..
1) I have a file that contains the lines as below :
VRF-TM_DummyLab/mse02.lab,mse02.lab,ge-2/0/7.222
VRF-EMS_HUAWEI_MSAN_208/mse01.lab,mse01.lab,xe-1/0/0.208
2) I need a method to read this file, line by line
from :... (5 Replies)
Discussion started by: msafwan82
5 Replies
3. Shell Programming and Scripting
Hi I'm in the need of a script that basically takes two files and generates a 3rd. It reads from fileA and fileB and copies lines from fileA if they start by a word of fileB.
for example
fileA
The dog is beautful
Where is your cat
Why are you sad?
Help me!
fileB
The
Where
tree
dog... (4 Replies)
Discussion started by: FrancoisCN
4 Replies
4. Shell Programming and Scripting
Hello All,
I have a file whose data looks something like this
I want to extract just the id, name and city fields in a csv format and sort them by id. Output should look like this.
1,psi,zzz
2,beta,pqr
3,theta,xyz
4,alpha,abc
5,gamma,jkl (12 Replies)
Discussion started by: grajp002
12 Replies
5. Shell Programming and Scripting
EDIT: My problems have been solved thanks to the help of bartus11 and pravin27
This code is just to help me learn. It serves no purpose other than that.
Here's a sample csv that I'm working with -
#listofpeeps.csv
Jackie Chan,1954,M
Chuck Norris,1930,M
Bruce Lee,1940,M
This code is... (13 Replies)
Discussion started by: chickeneaterguy
13 Replies
6. Shell Programming and Scripting
Hi all,
Please go through my requirement.
I have a log file in the location /opt/WebSphere61/AppServer/profiles/EMQbatchprofile/logs/EMQbatch
This file contains the follwing pattern data
<af type="tenured" id="42" timestamp="May 14 13:44:13 2011" intervalms="955.624">
<minimum... (8 Replies)
Discussion started by: satish.vampire
8 Replies
7. Shell Programming and Scripting
Hi Fellows,
I have been struggling to fix an issue in csv records to compose sql statements and have been really losing sleep over it. Here is the problem:
I have csv files in the following pipe-delimited format:
Column1|Column2|Column3|Column4|NEWLINE
Address Type|some descriptive... (4 Replies)
Discussion started by: khayal
4 Replies
8. Shell Programming and Scripting
hi, someone to know how can i read a specific column of csv file and search the value in other csv columns if exist the value in the second csv copy entire row with all field in a new csv file. i suppose that its possible using awk but i m not expertise thanks in advance (8 Replies)
Discussion started by: giankan
8 Replies
9. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
10. Shell Programming and Scripting
Hello,
Similar question to my previous posts. I am sorry for the trouble...
Just checked my old threads but I can not implement any solution into this case..
My aim is to grab each line in fileA, check it in fileB and merge with fileC (tab separated) in corresponding line as given below:
FileA:... (2 Replies)
Discussion started by: baris35
2 Replies
LEARN ABOUT SUNOS
evolution-addressbook-export
evolution-addressbook-export(1) User Commands evolution-addressbook-export(1)
NAME
evolution-addressbook-export - export local address book from Ximian Evolution, Sun Microsystems Edition
SYNOPSIS
evolution-addressbook-export [--async] [--format=[vcard|csv]] [--help] [--list-addressbook-folders] [--output=output-file] [--size=number]
[--usage] [--version]
DESCRIPTION
Export the local address book to a file.
OPTIONS
The following options are supported:
--async Export in asynchronous mode. You can also use -a to specify this option.
--format=[vcard|csv] Specify the export format: virtual card (vcard) or comma-separated value (csv).
--help Display help text. You can also use -? to specify this option.
--list-addressbook-foldeList the local address-book folders. You can also use -l to specify this option.
--output=output-file Specify the name of the output file to store the exported information. If no output file is specified, the exported
information is sent to standard output.
--size=number Specify the number of cards in one output file in asychronous mode. The default value is 100.
--usage Display brief usage text.
--version Display version information.
EXAMPLES
Example 1: Exporting Local Address Book in Asynchronous Mode and Vcard Format to contacts.vcf
example% evolution-addressbook-export -a --format=vcard --output=contacts.vcf
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
1 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/evolution-addressbook-export
Executable to export Evolution local address book
$HOME/evolution
Per-user configuration files and local storage for Evolution
$HOME/evolution/mail/account/folders
Temporary files for Evolution mail
$HOME/evolution/sunone/account/folders
Temporary files for Evolution Sun ONE account
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
|Availability |SUNWevo |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
|Interface stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT safe with Exceptions |
+-----------------------------+-----------------------------+
SEE ALSO
Ximian Evolution Sun Microsystems Edition User Guide
evolution(1), evolution-address-import(1)
NOTES
Written by Steven Zhang, Sun Microsystems Inc., 2004.
SunOS 5.10 15 Apr 2004 evolution-addressbook-export(1)