How did you try to save it to a file? There are many editors for UNIX just as with Windows. Is saving it the problem or running it? You know to compile it next...?
you'd generally type:
and then run it, like so:
edit: OH, the problem is you need to rewrite this C program into a shell script??
Do you understand the C program already? What do you know about shell? Which shell are you learning (Bash? Korn? "sh"?)
Hey Guys,
Does anyone have a copy of a c-program which saves/writes files to a sub-directory within the home directory which uses the prototype::: save (char* filename, char* directory_name)::: if at all possible, could share that syntax with me please.
Thanx much.....
Peace... (3 Replies)
I am trying to set up a file for someone and they have a program that was built for UNIX. I am guessing that it is running in some sort of emulator since they are on WinXP. It is a database and we are trying to get all of the addresses out of the database. I talked to the tech support for the... (7 Replies)
How to get the user name of the Operating system from a c program.
eg:-
-rw-r----- 1 gkuser srth1 292 Jul 27 19:28 u1.txt
i need to get gkuser as the result? (3 Replies)
Write a shell program that takes one or any number of file names as input; sorts the lines of each file in ascending order and displays the non blank lines of each sorted file and merge them as one combined sorted file. The program should generate an error message in case any input file does not... (1 Reply)
Is there a program out there than runs like the UNIX operating system except in Window mode on Windows XP? Kind of like command prompt cmd.exe? (1 Reply)
if somebody can help me pls.
i need the source code for a shell which compiles C or java programs in unix
i need a very short and simple one, just the compiling part
Respect (2 Replies)
Write a C socket program on UNIX where a TCP client sends/reads a
time in decimal 24 hours format to the server and the server echoes the
seconds, minutes, and hours in the time.
Example: Client sends 18.78 hours and the server displays 18 hours, 46
minutes and 48 seconds. (1 Reply)
I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment. I am familiar with Windows environment.
Can anyone pls write simple 'envprint' programs to :
1) List all the environment Information (using the -l or --l options)
2) ... (1 Reply)
I want to run a C program from my BASH script. Here's some very basic simplified code of my bash script:
#!/bin/bash
echo "Run C program"
./main.c
echo "Ran C program"
Here's my main.c:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
... (3 Replies)
Hello folks!
I need help on this one:
I have this C known program which I need to save it as "power2.c", and create it as a file in my UNIX environment:
/* power2.c -- Print out powers of 2: 1, 2, 4, 8, .. up to 2^N */
#include
#define N 16
int main(void) {
int n; /* The current... (1 Reply)
Discussion started by: kinelisch
1 Replies
LEARN ABOUT NETBSD
debconf-mergetemplate
DEBCONF-MERGETEMPLATE(1) Debconf DEBCONF-MERGETEMPLATE(1)NAME
debconf-mergetemplate - merge together multiple debconf template files
SYNOPSIS
debconf-mergetemplate [options] [templates.ll ...] templates
DESCRIPTION
Note: This utility is deprecated. You should switch to using po-debconf's po2debconf program.
This program is useful if you have multiple debconf templates files which you want to merge together into one big file. All the specified
files will be read in, merged, and output to standard output.
This can be especially useful if you are dealing with translated template files. In this case, you might have your main template file, plus
several other files provided by the translators. These files will have translated fields in them, and maybe the translators left in the
english versions of the fields they translated, for their reference.
So, you want to merge together all the translated templates files with your main templates file. Any fields that are unique to the
translated files need to be added in to the correct templates, but any fields they have in common should be superseded by the fields in the
main file (which might be more up-to-date).
This program handles that case properly, just list each of the translated templates files, and then your main templates file last.
OPTIONS --outdated
Merge in even outdated translations. The default is to drop them with a warning message.
--drop-old-templates
If a translation has an entire template that is not in the master file (and thus is probably an old template), drop that entire
template.
SEE ALSO debconf-getlang(1)AUTHOR
Joey Hess <joeyh@debian.org>
2012-09-10 DEBCONF-MERGETEMPLATE(1)