12-04-2012
Reading file
how can i read from a file and show the total content of the file? c++
9 More Discussions You Might Find Interesting
1. 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
2. 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
3. UNIX for Dummies Questions & Answers
hi
I have a shell script say primary.sh . There is a file called params
my scenario is
primary.sh should read all the values and echo it
for example
i should pass like
$primary.sh params
output would be
Abc
... (2 Replies)
Discussion started by: ssuresh1999
2 Replies
4. 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
5. Shell Programming and Scripting
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies
6. 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
7. 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
8. 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
9. 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
LEARN ABOUT HPUX
show_clerk
show clerk(1m) show clerk(1m)
NAME
show clerk - Displays attribute information about the CDS clerk on the local system
SYNOPSIS
cdscp show clerk
DESCRIPTION
The show clerk command displays all the names and values of the clerk attributes on the local system. The clerk must be enabled when you
use this command. The following are valid attributes:
Specifies the number of times a requesting principal failed authentication procedures. Specifies the number of requests to read attributes
for which the clerk was specifically directed by the requesting application to bypass its own cache. Instead, a server is contacted to get
the requested information. This attribute does not account for requests that the clerk is unable to satisfy from the cache or for requests
to look up names or enumerate the contents of directories. Specifies the total number of read requests directed to this clerk that were
satisfied entirely by the information contained in its own cache. This attribute accounts only for requests to read attribute values and
does not include requests to look up names or enumerate the contents of directories. Specifies the time when this entity was created.
Specifies the number of operations other than read and write (that is, skulks, enumerating contents of directories, and so on) performed by
this clerk. Specifies the number of lookup operations performed by this clerk. This attribute accounts only for requests to read
attributes and does not include requests to look up names or enumerate the contents of directories. Specifies how many requests to modify
data were processed by this clerk.
Privilege Required
You must have read permission to the clerk.
NOTE
This command may be replaced in future releases by the dcecp command, and may no longer be supported at that time.
EXAMPLE
The following command displays the attributes of the clerk on the local system: cdscp> show clerk
SHOW
CLERK
AT 1991-10-15-15:56:50
Creation Time = 1991-10-15-15:38:19.000000051-04:00I0.000000000
Authentication failures = 0
Read Operations = 1068
Cache Hits = 137
Cache bypasses = 433
Write operations = 1250
Miscellaneous operations = 590
RELATED INFORMATION
Commands: disable clerk(1m)
show clerk(1m)