8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
2. UNIX for Dummies Questions & Answers
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies
3. UNIX for Dummies Questions & Answers
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies
4. Shell Programming and Scripting
Hi All
I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt
===========
commands.txt contains:
ps -ef | grep abc | grep xyz |awk '{print $2};
My objective is to store the o/p of the command in a variable and do... (8 Replies)
Discussion started by: rahulparo
8 Replies
5. Shell Programming and Scripting
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies
6. UNIX for Advanced & Expert Users
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies
7. AIX
Hi,
I am looking for a tool or utility to browse/edit VSAM files in Unix on AIX box. Looking for something similar to FileAid or FIleManager we use on MVS.
If you have anything in your knowledge then please share with me.
Thanks,
Satish (2 Replies)
Discussion started by: satishkhatri
2 Replies
8. Shell Programming and Scripting
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Discussion started by: anushilrai
4 Replies
fread(3s) fread(3s)
Name
fread, fwrite - buffered binary input/output
Syntax
#include <stdio.h>
size_t fread(ptr, size, nitems, stream)
void *ptr;
size_t size, nitems;
FILE *stream;
size_t fwrite(ptr, size, nitems, stream)
void *ptr;
size_t size, nitems;
FILE *stream;
Description
The function reads into a block beginning at ptr, nitems of data of the size size (usually sizeof *ptr) from the named input stream. It
returns the number of items actually read.
If stream is stdin and the standard output is line buffered, then any partial output line will be flushed before any call to to satisfy the
The function appends, at most, nitems of data of the size size (usually sizeof *ptr) beginning at ptr to the named output stream. It
returns the number of items actually written.
Return Values
The and functions return 0 upon end of file or error.
See Also
read(2), write(2), fopen(3s), getc(3s), gets(3s), printf(3s), putc(3s), puts(3s), scanf(3s)
fread(3s)