Sponsored Content
Top Forums Shell Programming and Scripting how to write 2 variables while using read command Post 302363985 by Scott on Wednesday 21st of October 2009 07:47:35 PM
Old 10-21-2009
That is the date in the file.

Code:
while read DATE STRING; do
...
done < /home/or/input.txt

In any case the date in your file ('DD-MMM-YYYY') doesn't match the pattern in you update ('DD/MM/YYYY')
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SED command for read and write to different files

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)
Discussion started by: gaurav_1711
11 Replies

2. UNIX for Dummies Questions & Answers

trouble using read to store values in variables from command output

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)
Discussion started by: ProGrammar
2 Replies

3. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

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)
Discussion started by: shunter63
5 Replies

4. Shell Programming and Scripting

Interpreting Logicals/Environment Variables using the read command

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)
Discussion started by: kingpin2502
3 Replies

5. IP Networking

read/write,write/write lock with smbclient fails

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)
Discussion started by: swatidas11
1 Replies

6. Shell Programming and Scripting

Environment Variables in text file and read command

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)
Discussion started by: bradyd
2 Replies

7. Shell Programming and Scripting

How do write using variables

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)
Discussion started by: rocking77
3 Replies

8. Shell Programming and Scripting

Write string variables to file

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)
Discussion started by: Validatorian
3 Replies

9. Shell Programming and Scripting

How can I write variables to same line of a file?

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)
Discussion started by: snr_silencer
5 Replies

10. Shell Programming and Scripting

Read several variables from command output via SSH

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
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)
All times are GMT -4. The time now is 09:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy