Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Add line with data to existing file Post 302285273 by fletcher on Sunday 8th of February 2009 08:57:38 AM
Old 02-08-2009
where data come from

the data will come from the user, the user will input the data from the bash.
there is an existing file called appointments with colummn 3 headings saperated by tabs date time venue

what i want is the user to append data to that file by typing an executable file first called addfile followed by parameters 24/12/78 14.04 newyork eg.
$ addfile 14/12/78 14.04 newyork

to produce a file like this:
date time venue
14/12/78 14.04 newyork

thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to add a line of data to already existing file in Unix..

Hello.. I have a text file with 100 lines of data. I need to add 1 line of data to that already existing file at the first line( beginning of the file) , so that the already existing 100 lines will start from 2 nd line.Now the file will have 101 lines of data. Help me on how to add the line... (4 Replies)
Discussion started by: charan81
4 Replies

2. UNIX for Dummies Questions & Answers

add data from command line to end of file

how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan
3 Replies

3. Shell Programming and Scripting

Need Help for Adding Three new columns in existing file from fatching data from file

not required this time (36 Replies)
Discussion started by: Sandeep_Malik
36 Replies

4. Shell Programming and Scripting

add more data to existing data in a file

Hi all, I need help to add additional data from file2 to existing data in file 1 using awk, sed or perl. the ID in file 1 should match against field $3 in file2 file1 #this is a new game ID HR_1 BASE1 30 BASE2 37 DETAIL No TYPE L @@ ID HR_10 BASE1 6030 BASE2 ... (4 Replies)
Discussion started by: redse171
4 Replies

5. Ubuntu

How to add a data column in existing file

Hi All I need to add a column on my existing data file. I know similar posts are there but none of them were meeting my requirement. My input is 1.20 3.44 4.88 5.11 4.99 3.22 1.89 3.89 2.90 Desired output 1 1.20 3.44 4.88 2 5.11 4.99 3.22 3 1.89 3.89 2.90 I will... (2 Replies)
Discussion started by: mahbub03
2 Replies

6. Shell Programming and Scripting

create txt file form data file and add some line on it

Hi Guys, I have file A.txt File A Data AK1521 AK2536 AK3164 I want create text file of all data above and write some data on each file. want Output on below folder /home/kka/out AK1521.txt Hi Welocme (3 Replies)
Discussion started by: asavaliya
3 Replies

7. Shell Programming and Scripting

Generate tabular data based on a column value from an existing data file

Hi, I have a data file with : 01/28/2012,1,1,98995 01/28/2012,1,2,7195 01/29/2012,1,1,98995 01/29/2012,1,2,7195 01/30/2012,1,1,98896 01/30/2012,1,2,7083 01/31/2012,1,1,98896 01/31/2012,1,2,7083 02/01/2012,1,1,98896 02/01/2012,1,2,7083 02/02/2012,1,1,98899 02/02/2012,1,2,7083 I... (1 Reply)
Discussion started by: himanish
1 Replies

8. Shell Programming and Scripting

Recoding data in a matrix from an existing file

Hi, I was wondering if someone would be able to help with extrapolating information from a file and filling an existing matrix with that information. I have made a matrix like this (file 1): A B C D 1 2 3 4 I have another file with data like this (file 2): 1 A 1 C 3 C 4 B... (1 Reply)
Discussion started by: hubleo
1 Replies

9. Shell Programming and Scripting

Help with add existing file name as new data column in new output file

Input File 1 cat S1.txt MI0043 2731 miR-1 Input File 2 cat S4.txt MI006 310 CiR-1 MI057 10 CiR-24 MI750 5 CiR-24 Desired Output File 1 cat S1.txt.out MI0043 2731 miR-1 S1.txt Desired Output File 2 cat S4.txt.out MI006 310 CiR-1 S4.txt (3 Replies)
Discussion started by: perl_beginner
3 Replies

10. Shell Programming and Scripting

How to add new line after every data inserted to file?

Hi all, I need help for solve my problem. my problem is like this.. i want to add many word to file. but after I add 1 word, the second word should be in the under of the first word. i have tried but the result is like this word1word2word3 i want the result to be like this word1 word2... (5 Replies)
Discussion started by: weslyarfan
5 Replies
CALCURSE(1)															       CALCURSE(1)

NAME
calcurse - text-based organizer SYNOPSIS
calcurse [-h|-v] [-N] [-an] [-t[num]] [-c<file> | -D<dir>] [-i<file>] [-x[format]] [-d <date>|<num>] [-s[date]] [-r[range]] [-S <regex>] [--status] DESCRIPTION
Calcurse is a text-based calendar and scheduling application. It helps keeping track of events, appointments and everyday tasks. A configurable notification system reminds user of upcoming deadlines, and the curses based interface can be customized to suit user needs. All of the commands are documented within an online help system. OPTIONS
The following options are supported: -a, --appointment Print the appointments and events for the current day and exit. Note: The calendar from which to read the appointments can be specified using the -c flag. -c <file>, --calendar <file> Specify the calendar file to use. The default calendar is ~/.calcurse/apts (see section FILES below). This option is incompatible with -D. -d <date|num>, --day <date|num> Print the appointments for the given date or for the given number of upcoming days, depending on the argument format. Two possible formats are supported: o a date (possible formats described below). o a number n. In the first case, the appointment list for the specified date will be returned, while in the second case the appointment list for the n upcoming days will be returned. As an example, typing calcurse -d 3 will display your appointments for today, tomorrow, and the day after tomorrow. The date format used is the one specified in the "General options" menu. Four formats are available: 1. mm/dd/yyyy 2. dd/mm/yyyy 3. yyyy/mm/dd 4. yyyy-mm-dd Note: as for the -a flag, the calendar from which to read the appointments can be specified using the -c flag. -D <dir>, --directory <dir> Specify the data directory to use. This option is incompatible with -c. If not specified, the default directory is ~/.calcurse/. -h, --help Print a short help text describing the supported command-line options, and exit. -i <file>, --import <file> Import the icalendar data contained in file. -n, --next Print the next appointment within upcoming 24 hours and exit. The indicated time is the number of hours and minutes left before this appointment. Note: the calendar from which to read the appointments can be specified using the -c flag. -N, --note When used with the -a or -t flag, also print note content if one is associated with the displayed item. -r[num], --range[=num] Print events and appointments for the num number of days and exit. If no num is given, a range of 1 day is considered. -s[date], --startday[=date] Print events and appointments from date and exit. If no date is given, the current day is considered. -S<regex>, --search=<regex> When used with the -a, -d, -r, -s, or -t flag, print only the items having a description that matches the given regular expression. --status Display the status of running instances of calcurse. If calcurse is running, this will tell if the interactive mode was launched or if calcurse is running in background. The process pid will also be indicated. -t[num], --todo[=num] Print the todo list and exit. If the optional number num is given, then only todos having a priority equal to num will be returned. The priority number must be between 1 (highest) and 9 (lowest). It is also possible to specify 0 for the priority, in which case only completed tasks will be shown. -v, --version Display calcurse version and exit. -x[format], --export[=format] Export user data to specified format. Events, appointments and todos are converted and echoed to stdout. Two possible formats are available: ical and pcal. If the optional argument format is not given, ical format is selected by default. Note: redirect standard output to export data to a file, by issuing a command such as: $ calcurse --export > my_data.dat NOTES
Calcurse interface contains three different panels (calendar, appointment list, and todo list) on which you can perform different actions. All the possible actions, together with their associated keystrokes, are listed on the status bar. This status bar takes place at the bottom of the screen. At any time, the built-in help system can be invoked by pressing the ? key. Once viewing the help screens, informations on a specific command can be accessed by pressing the keystroke corresponding to that command. CONFIGURATION
The calcurse options can be changed from the configuration menu (shown when C is hit). Five possible categories are to be chosen from : the color scheme, the layout (the location of the three panels on the screen), notification options, key bindings configuration menu, and more general options (such as automatic save before quitting). All of these options are detailed in the configuration menu. FILES
The following structure is created in your $HOME directory (or in the directory you specified with the -D option), the first time calcurse is run: $HOME/.calcurse/ |___notes/ |___conf |___keys |___apts |___todo The notes subdirectory contains descriptions of the notes which are attached to appointments, events or todos. One text file is created per note, whose name is built using mkstemp(3) and should be unique, but with no relation with the corresponding item's description. The conf file contains the user configuration. The keys file contains the user-defined key bindings. The apts file contains all of the user's appointments and events, and the todo file contains the todo list. Note: if the logging of calcurse daemon activity was set in the notification configuration menu, the extra file daemon.log will appear in calcurse data directory. This file contains logs about calcurse activity when running in background. ENVIRONMENT
This section describes the environment variables that affect how calcurse operates. VISUAL Specifies the external editor to use for writing notes. EDITOR If the VISUAL environment variable is not set, then EDITOR will be used as the default external editor. If none of those variables are set, then /usr/bin/vi is used instead. PAGER Specifies the default viewer to be used for reading notes. If this variable is not set, then /usr/bin/less is used. BUGS
Incorrect highlighting of items appear when using calcurse black and white theme together with a $TERM variable set to xterm-color. To fix this bug, and as advised by Thomas E. Dickey (xterm maintainer), xterm-xfree86 should be used instead of xterm-color to set the $TERM variable: "The xterm-color value for $TERM is a bad choice for XFree86 xterm because it is commonly used for a terminfo entry which happens to not support bce. Use the xterm-xfree86 entry which is distributed with XFree86 xterm (or the similar one distributed with ncurses)." If you find other bugs, please send a report to bugs@calcurse.org or to one of the authors, below. SEE ALSO
vi(1), less(1), ncurses(3), mkstemp(3) The ical specification (rfc2445) can be found at: http://tools.ietf.org/html/rfc2445 The pcal project page: http://pcal.sourceforge.net/ Calcurse home page: http://calcurse.org/ Calcurse complete manual, translated in many languages and maintained in html format, can be found in the doc/ directory of the source package, or at: http://calcurse.org/files/manual.html AUTHORS
o Frederic Culot <frederic@culot.org> o Lukas Fleischer <calcurse@cryptocrack.de> COPYRIGHT
Copyright (c) 2004-2011 calcurse Development Team. This software is released under the BSD License. 09/03/2011 CALCURSE(1)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy