Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to create a simple todo file? Post 15606 by sierra_aar on Sunday 17th of February 2002 02:07:34 AM
Old 02-17-2002
re: Cute

Smilie
Long tim esince I laughed so hard Smilie

But I can understand, it definitly looks like homework.

I am 31 yrs, working as a programmer, only thing, I am a Windows person myslef (don't hate me for that). And csh, tcsh, sed awk, nawk and all these crazy words are still new to me.
I still can't tell the diffeence between ll and ls -tr.

Anyway, this is NOT homework for me, I am sure someone out there did get this as homework, but last time I got to do homeworks was 5 years ago on my B.Sc.

And now to my Q.
I did manage to change the '-' to '+' using SED, but it doesn't want to overwrite the file, so I thaught to use a second file to get the change, delete the first one, and rename. I know long, and not very system perfect, but it's work, and this is what I need. (as I said, I don't get points for short programs ^^)

I couldn't understand how to add a new line. I read the awk man files, but I am not sure if this is the tool I need.

If you can complete this hole for me, that's gr8.

Sierra_aar
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Modifying simple commands to create a script

Can anyone direct me to a resource that explains scripting in simple terms? I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Discussion started by: rocinante
8 Replies

2. UNIX for Dummies Questions & Answers

How to create an run a simple batch file?

Hi, So, I created a file named TEST.BAT in my home directory. In it, I wrote: #! /bin/bash echo Hello and then, saved the file. Then, at the command-line interface, I typed TEST.BAT, but the command-line never executes the file and thus, never returns "Hello". It says "command... (2 Replies)
Discussion started by: Hyunkel
2 Replies

3. UNIX for Dummies Questions & Answers

Create new simple System Call.

Hello to all! I am new with unix and i need your help to make something.. First of all i want to inform you that i am working under the Minix 3 OS. What i want to make is, a new system call in terms of the process manager. This system call should take an integer as a parameter (input) and... (1 Reply)
Discussion started by: kostis1904
1 Replies

4. Shell Programming and Scripting

Simple Script to create folders

Hi I want to write a small script that will create folders named from `AAAA' all the way to `ZZZZ'. That is: `AAAA' `AAAB' `AAAC' ... `AABA' `AABB' `AABC' ... `ABAA' `ABAB' `ABAC' ... `ABBA' ... `ZZZZ' (4 Replies)
Discussion started by: ksk
4 Replies

5. Solaris

How to create a simple background script on Solaris

I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Discussion started by: vinaysa
3 Replies

6. Shell Programming and Scripting

How to create a simple shell script to backup

Hello - I am in process of deleting many files which are older than 4 weeks. For example I am inside: /subsystem/prod/ Files are with various extentions, but anything older than 4 weeks should be deleted. What would be the most simplest script to acheive this? (4 Replies)
Discussion started by: DallasT
4 Replies

7. Shell Programming and Scripting

How to create a simple copy script?

Guys I want to do this: copy: /var/router/system1/config/backup/install.put /var/router/system2/config/backup/install.put /var/router/system3/config/backup/install.put /var/router/system4/config/backup/install.put into: /var/router/system1/config/install.dat... (22 Replies)
Discussion started by: DallasT
22 Replies

8. Shell Programming and Scripting

Create simple script

Dear all, I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file. sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml At the same time, I want to remove the blank lines using sed '/^$/d' How can... (6 Replies)
Discussion started by: corfuitl
6 Replies

9. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

10. Homework & Coursework Questions

Create a simple bash backup script of a file

This is the problem: Write a script that will make a backup of a file giving it a ‘.bak’ extension & verify that it works. I have tried a number of different scripts that haven't worked and I haven't seen anything really concise and to the point via google. For brevity's sake this is one of the... (4 Replies)
Discussion started by: demet8
4 Replies
pilot-install-todos(1)						    PILOT-LINK						    pilot-install-todos(1)

NAME
pilot-install-todos - Updates the Palm ToDo list with entries from a local file. SECTION
pilot-link: Userland conduits SYNOPSIS
pilot-install-todos [-p|--port <port>] [--version] [-?|--help] [--usage] [-q|--quiet] [-f|--filename STRING] DESCRIPTION
pilot-install-todos allows the user to update the Palm ToDo list with entries from a local file. The format of this file is a simple line-by-line ToDo task entry. For each new line in the local file, a new task is created in the ToDo database on the Palm. OPTIONS
pilot-install-todos options -f, --filename filename A local filename containing the ToDo entry text. Conduit Options -p, --port <port> Use device file <port> to communicate with the Palm handheld. If this is not specified, pilot-install-todos will look for the $PILOTPORT environment variable. If neither are found or supplied, pilot-install-todos will print the usage information. -q, --quiet Suppress 'Hit HotSync button' message -v, --version Display version of pilot-install-todo and exit without connecting. Help Options -h, --help Display the help synopsis for pilot-install-todos and exit without connecting. --usage Display a brief usage message and exit without connecting. USAGE
The program will connect to a target Palm handheld, and creates the ToDo entry to the Palm ToDo application, using the specified file. EXAMPLE
-p /dev/pilot -f $HOME/MyTodoList.txt AUTHOR
pilot-install-todo was originally written by Martin Fick, based on code in pilot-install-todos by Robert A. Kaplan. This manual page was written by Neil Williams <linux@codehelp.co.uk> REPORTING BUGS
We have an online bug tracker. Using this is the only way to ensure that your bugs are recorded and that we can track them until they are resolved or closed. Reporting bugs via email, while easy, is not very useful in terms of accountability. Please point your browser to http://bugs.pilot-link.org: http://bugs.pilot-link.org and report your bugs and issues there. COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. SEE ALSO
pilot-install-todo(1), pilot-link(7). 0.12.5 Copyright 1996-2007 FSF pilot-install-todos(1)
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy