10 More Discussions You Might Find Interesting
1. Programming
I have a list of files, 4 files for example
Then I have two buffers ifa and ifb giving me the file numbers
from which I need to get a group of data. For example, the first
four groups use file 1. The fifth group uses data from file 1 and
file 2.
I am thinking of storing all the data in the... (1 Reply)
Discussion started by: kristinu
1 Replies
2. Programming
#include <stdio.h>
/*
typedef struct
{
char name;
int number;
float balance;
} acct_info_t;
*/
int main()
{
FILE *fptr;
fptr = fopen("acct_info", "r");
int magic = 5;
fseek(fptr,3,SEEK_SET);
fread(&magic,sizeof(int),1,fptr);... (7 Replies)
Discussion started by: robin_simple
7 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
Discussion started by: dsfreddie
1 Replies
4. Programming
In C, given a name or path to a file, how do I check if the path is valid, and how can I check its permisions will let me read from it, and how do i check if its an empty file? (15 Replies)
Discussion started by: omega666
15 Replies
5. AIX
Hi all,
I have a shell script where it processes a set of files from a particular directory (shared location among 4 servers). i.e. under this directory /shared/work/ I have a set of files that needs to be processed. Since the number of files are alot, I have this script to be run from 4... (2 Replies)
Discussion started by: haroon_a
2 Replies
6. Shell Programming and Scripting
Okay, so I've looked on here and found some similar things, but not exactly what I am looking for. I am working on creating a script that can back up some files, based on the contents of another file - the configuration file.
First file contains the files to back up - we'll call this... (1 Reply)
Discussion started by: pdxwarrior
1 Replies
7. Shell Programming and Scripting
Hi, I have 2 files
file 1
----
10013 This is a text
10014 This is a test
10015 This is a temp
file 2
----
10013 010014737 ADSM 1300004 E
10014 020012323 ABCD 1718888 E
10015 030121212 ADSW 1290991 E
need to compare column1 in... (2 Replies)
Discussion started by: injeti
2 Replies
8. Solaris
I'm looking to write a script where i look in a file called files.txt. This file has a list of other files in there.
I want the script to be able to look at this files.txt and go off and find the files that are listed in another directory.
I am doing it this way as filenames change week in... (1 Reply)
Discussion started by: Pablo_beezo
1 Replies
9. UNIX for Dummies Questions & Answers
Hi
I need to perform certain tests on information contained in a file, a lot of what is contained in the file is duplicate data, so what I want to do as it is a failrly substantial file size is to start and finish reading from a specifed line in the file.
Can someone tell me how to indicate... (3 Replies)
Discussion started by: oop
3 Replies
10. Shell Programming and Scripting
Hi,
I have a simple perl script where I am passing array of gziped files to the while loop and trying to read content of each field one line at the time using gzcat. Yet, I can not get it to work
Here is what I am doing
...
while ($filename=shift) {
open(MYFILE, "| gzcat $filename");
... (2 Replies)
Discussion started by: arushunter
2 Replies