Hi
I need some help on SED command
I am writing a shell script which does the following:
1. Read one line at a time from a file abc.txt which has millions of lines
2. Prefix each line read with some text "
3. Post fix each line read with a quote "
4. Write the new modified... (11 Replies)
I know there are caveats about using read in pipelines because read is treated by a subshell. I know this but I can't think of any way to accomplish this regardless, I'm still a rookie.
I hope somebody will be able to interpret what it is that I'm trying to accomplish and correct me.
... (2 Replies)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Hi All
I have something that from the outset seems really trivial but in practice is not quite working.
I have the following code sample in my shell script which illustrates the problem
echo "enter home directory"
read home
mkdir $home/newdir
The user then enters a logical $HOME... (3 Replies)
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
I cannot get the following substitution ($ORACLE_SID) to work:
The variable ORACLE_SID is set to wardin my environment. It has been exported.
I have a text file called test.dat:
/u07/oradata/${ORACLE_SID}/extab/finmart/summit/ps_voucher_line_crnt_ex.dbf... (2 Replies)
Hello Team,
I have the following line in a .sh file .That means if we add my file.sh file to crontab .The crontab will read the first line where the db2 profile is installed.Can some body help me how to recode this using a variable ?
That means the below path is static to a perticular... (3 Replies)
I have the following:
#! /bin/bash
foo="bar"
this="that"
vars="foovar=$foo\n\
thisvar=$this\n"
I want to write the following to a file:
foovar="bar"
thisvar="that"
Then in another script, I pull this file, and loop through it:
while read line; do
eval $line
done <... (3 Replies)
I am trying to keep variables in a file.
if I have all variables at the same time, I can write them all like below.
echo $var1","$var2","$var3
But, these variables are being calculated at different times then they are lost
so I want to keep them in a file seperated by "," .
echo... (5 Replies)
Hi Folks,
I'm currently trying to read several values into different variables.
Actually, what I'm doing works, but I get an error message.
My attempts are:
read strCPROC strIPROC strAPROC <<<$(ssh -n -T hscroot@$HMC "lshwres -r proc -m $strIDENT --level sys -F \"configurable_sys_proc_units... (11 Replies)
Discussion started by: NKaede
11 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)