10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am using bash and have a filename with a path and extension and want to extract just the filename
Have used the following code, oflna gives the file name with extension, but now neet to remove the .texi at the end.
oflna=${flnm##*/}
oflnb=${${flnm##*/}%.*}
echo "flnm: $flnm"
echo... (1 Reply)
Discussion started by: Danette
1 Replies
2. UNIX for Beginners Questions & Answers
Suppose i have a list of files in a directory as mentioned below
1. Shankar_04152019_ny.txt
2. Gopi_shan_03122019_mi.txt
3. Siva_mourya_02242019_nd.txt
..
.
.
.
.
1000 . Jiva_surya_02282019_nd.txt
query : At one shot i want to modify the above all filenames present in one path with... (4 Replies)
Discussion started by: Shankar455
4 Replies
3. Shell Programming and Scripting
Hello,
I'd like to write a monthly archive script that archives some logs. But I'd like to do it based on yesterday's date. In other words, I'd like to schedule the script to run on the 1st day of each month, but have the archive filename include the previous month instead.
Here's what I... (5 Replies)
Discussion started by: nbsparks
5 Replies
4. Shell Programming and Scripting
Hi
I would like to extract the first portion of filename from a list of files.
The filename pattern is of the form 123456789_TEXT_TEXT_TEXT_.csv. I want to extract just the numerical portion of this filename from the list of files and then output this into another text file.
K (6 Replies)
Discussion started by: kamal_p_99
6 Replies
5. Shell Programming and Scripting
I am using ksh93 on Solaris.
Ok, this may seem like a simple request at first. I have a directory that contains sets of files with a YYYYMMDD component to the name, along with other files of different filespecs. something like this:
20110501_1.dat
20110501_2.dat
20110501_3.dat... (2 Replies)
Discussion started by: gary_w
2 Replies
6. Shell Programming and Scripting
hi all,
I'm trying to automate some tasks and while I've got the script itself working, I'm having difficulties with automatic file detection and associated variable setting...
for example, in a directory I've got several files... something along the lines of:
xis0_NAME_src.file... (2 Replies)
Discussion started by: u5j84
2 Replies
7. Shell Programming and Scripting
Hi,
I need to extract the file name without filetype.
Suppose in DIR1 if i have files like F1.txt and F2.DOC then i need to return F1 and F2 only with out file types (txt and DOC).
I tried with the following code
newname = ` $i | cut -d "'." -f1`
but it is giving the error " 0403-006... (1 Reply)
Discussion started by: Raamc
1 Replies
8. Shell Programming and Scripting
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Discussion started by: MKNENI
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Any help on this would be very appreciated.
I capture the full path & filename in a variable like (varFile=/home/user/extfile.txt). Now in my shell script I have to use only the filename part i.e. extfile.txt. How do I extract only the filename part from the variable?
Thanks in... (3 Replies)
Discussion started by: njoshi
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a requirement that i need to store only the filename without its extension. Can anyone please help me to do this.
For Example, i have stored the filename in a varialble called fname. I need to extract all the charecters before the first occurence of the dot.
If fname has value... (3 Replies)
Discussion started by: lotus123
3 Replies
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)