Questions tagged [programming]

Questions about tools for programming (compilers, IDE, etc.) For questions that involve programming, ask on Stack Overflow.

Questions about programming for Unix & Linux belong on Stack Overflow — this site is for users and administrators. However, questions about using and administering programming tools on Unix (setting up a development environment, configuring an IDE, compiling software, etc.) are on-topic here.

201 questions
2
votes
2 answers

Extract name of file without extension in shell script

Possible Duplicate: Best way to remove file extension from a string? How to rename multiple files by removing the extension? I have a metric boatload of .txt files I'd like to load into a database. The tables have the same name as the .txt files,…
1
vote
1 answer

Is Linux a suitable platform for learning COBOL?

I am studying a college CIS degree. Next semester, I have a choice of either studying JAVA and COBOL or JAVA and PHP. I don't know much about COBOL and only have computers with Debian. The textbooks I have seen all focus on compiling COBOL in…
Village
  • 5,035
  • 15
  • 50
  • 84
0
votes
1 answer

How should I write a test environment for my program?

If I have a program, its input and the desired output, how do I automate the comparison of what I want the program to give me and what it actually gives me? For example: a=${./program < inputfile} diff ${a} outputfile
Tom Tao
  • 13
0
votes
2 answers

What operating systems do experienced users use and why?

I was reading the Modern Operating Systems book and it says Many UNIX users, especially experienced programmers, prefer a command- based interface to a GUI, so nearly all UNIX systems support a windowing system called the X Window System (also…
user96101
-1
votes
1 answer

An executable has two processes and is launched twice on two different terminals How to make the processes identify their roles

I have to write a c code which will contain two processes. And its executable will be launched twice on two different terminals. Both processes will know whats their role. One terminal will show result of one process and second terminal will show…
-2
votes
1 answer

C Program Problem

#include int main(void) { int a; int count=0; for(a=1;a<=10;a=a+1) { if(a>3) count=count+1; } printf("%d numbers were greater than 3\n",count); return 0; } why have the error of ERROR: variable 'file name'…