06-22-2006
This might get better responses in the shell programming forum...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I have written a script called "compare" (see below) to make comparison between 2 files namely test_put.log and Output_A0.log
#!/bin/ksh
while read file
do
found="no"
while read line
do
echo $line | grep $file > /dev/null
if
then
echo $file found
found="yes"
break
fi... (3 Replies)
Discussion started by: lweegp
3 Replies
2. Shell Programming and Scripting
I want to deal with several data, i.e., data.*.txt with following structure
MSG|20010102|123 125 4562 409|SEND
MSG|20010102|120 230|SEND
MSG|20010102|120 204 5071|SEND
MSG|20010103|2 11 1098 9810|SEND
......
index file index.txt is
11
201
298
100
......
What I want to do is:
1)... (0 Replies)
Discussion started by: zhynxn
0 Replies
3. UNIX for Dummies Questions & Answers
I have a .dat file in unix and it keeps failing file validation on line x. How do I delete a data string from a .dat file in UNIX?
I tried the following:
sed -e 'data string' -e file name
and it telling me unrecognized command (4 Replies)
Discussion started by: supergirl3954
4 Replies
4. Shell Programming and Scripting
Can anyone provide me a shell script to edit a xml file and delete one entry.
To do manually i can edit(vi editor) the file and 'dd' will delete the file.But I wiluld to know if I can do with a script.
Thanks in advance
Tannu (6 Replies)
Discussion started by: tannu
6 Replies
5. Shell Programming and Scripting
Hi there
I would like to create a shell script to do the following:
- delete a line in file1 if it contains the data string in file2
eg: file1
1 100109942004051510601703694 0.00 0.00
2 100109942004051510601702326 0.00 0.00
3 ... (1 Reply)
Discussion started by: earth_goddess
1 Replies
6. UNIX for Dummies Questions & Answers
Dear unix gurus,
I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this:
adam peter
blah blah blah
blah blah blah
car
01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y... (8 Replies)
Discussion started by: tintin72
8 Replies
7. UNIX for Dummies Questions & Answers
Hello ,
Is there a way to delete lines from a file where data is continously appended to the file. I can use normal vi command ndd to remove n number of lines from the file, as the data is continously appended the line numbers doesnt work. (1 Reply)
Discussion started by: sophos
1 Replies
8. Shell Programming and Scripting
Dear Friends,
I need urgent help from u..
I have two files,file1 & file 2..
file1 have a existing data of file2.So i want to delete those existing datas from file1 (which contain the data from file1)
My file1 like this
rs39348 1 1045729 A G 0.1791 0.2054 0.84 ... (3 Replies)
Discussion started by: sureshraj
3 Replies
9. Shell Programming and Scripting
i need to delete the lines is match from file data 1 & data 2
please help?
data 1
4825307
4825308
4825248
4825309
4825310
4825311
4825336
data 2
4825248 0100362210 Time4Meal 39.00 41.73 MO & MT MT SMS
4825305 0100367565... (2 Replies)
Discussion started by: ooilinlove
2 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Discussion started by: kokoro
4 Replies
LEARN ABOUT CENTOS
exchange2ical
EXCHANGE2ICAL(1) OpenChange Users' Manual EXCHANGE2ICAL(1)
NAME
exchange2ical - Convert Exchange calendar to ical file
SYNOPSIS
exchange2ical [-?V] [-?|--help] [--usage] [-f|--database=STRING] [-p|--profile=STRING]
[-P|--password=STRING] [-i|--icalsync=STRING] [-o|--filename=STRING] [-R|--range=STRING]
[-d|--debuglevel=STRING] [--dump-data] [-V|--version]
DESCRIPTION
exchange2ical provides a way to extract appointments from an Exchange calendar into the ical format. The ical is provided on stdout by
default if the filename is not specified.
OPTIONS
--database
-f Set the path to the profile database to use
--profile
-p Set the profile to use. If no profile is specified, exchange2ical tries to retrieve the default profile in the database. If no
default profile has been set, exchange2ical returns MAPI_E_NOT_FOUND .
--password
-P Specify the password for the profile to use. This can be omitted if the password is stored in the profile.
--icalsync
-i Specify an icalendar file to be used to sync back to exchange.
--filename
-o Specify the filename for the icalendar output. The specified file will be overwritten with the new icalendar. If this is omitted,
stdout will be used by default.
--range
-r Specify the range of exchange appointments to be converted into an icalendar. If there are no events, whos start date is within the
specified range, an icalendar with no vevents will be returned. Format: MM/DD/YYYY-MM/DD/YYYY
--dump-data
Dump the hex data. This is only required for debugging or educational purposes.
--debuglevel
-d Set the debug level.
EXAMPLES
Extract appointments from the Exchange calendar:
exchange2ical > appointments.ical
Extract appointments from the Exchange calendar to a specified path
exchange2ical --filename=/path/to/file.ics
Extract only appointments which begin from June 25 2008 to July 26 2009
exchange2ical --range=06/25/2008-07/26/2009
REMARKS
If you are using the default profile database path and have set a default profile (using mapiprofile --profile=profile_name -S ) you do not
need to specify these parameters on the command line.
AUTHOR
exchange2ical was written by Julien Kerihuel <j.kerihuel at openchange dot org>
This man page was written by Brad Hards <bradh at openchange dot org>
OpenChange 2.0 QUADRANT 2013-01-24 EXCHANGE2ICAL(1)