01-16-2012
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi folks
how do i output contents of file in standard output.
in my script, i say
x=`cat filename'
echo $x
below is the actual file
***********
asda afdf fdf sdf dsfsdfsd fds dsfdfsdfsdg ssgd sgdg
sdfsdgfsdg dgfd gsfd gs sdg sfdg s
in my script, i am trying to output the... (4 Replies)
Discussion started by: bryan
4 Replies
2. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
3. Shell Programming and Scripting
Hi -
I have a file containing data like :-
cn=tommy,cn=users,c=uk
passwordexpirydate=20100530130623z
cn=jane,cn=users,c=uk
passwordexpirydate=20100423140734z
cn=michael,cn=users,c=uk
passwordexpirydate=20100331020044z
I want to end up with a file that looks like:-... (6 Replies)
Discussion started by: sniper57
6 Replies
4. AIX
When i use the command to check the preview of the filesets to be installed using CLI
# When using this commad 'm able to see all Preview view of the filesets to be installed
installp -apgX -d "." all
# When I redirected the same output to a file 'm able to see only half the details... (1 Reply)
Discussion started by: Sounddappan
1 Replies
5. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
6. Shell Programming and Scripting
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies
7. Shell Programming and Scripting
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
8. UNIX for Dummies Questions & Answers
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory (eg /tmp/)
one by one, keeping the original names
This is what I have so far, which seems to... (1 Reply)
Discussion started by: lowmaster
1 Replies
9. Shell Programming and Scripting
Hi friends, here is my problem.
I have three files like this..
cat file1.txt
=======
unix is best
unix is best
linux is best
unix is best
linux is best
linux is best
unix is best
unix is best
cat file2.txt
========
Windows performs better
Mac OS performs better
Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
LEARN ABOUT SUSE
xs::apitest
XS::APItest(3pm) Perl Programmers Reference Guide XS::APItest(3pm)
NAME
XS::APItest - Test the perl C API
SYNOPSIS
use XS::APItest;
print_double(4);
ABSTRACT
This module tests the perl C API. Currently tests that "printf" works correctly.
DESCRIPTION
This module can be used to check that the perl C API is behaving correctly. This module provides test functions and an associated test
script that verifies the output.
This module is not meant to be installed.
EXPORT
Exports all the test functions:
print_double
Test that a double-precision floating point number is formatted correctly by "printf".
print_double( $val );
Output is sent to STDOUT.
print_long_double
Test that a "long double" is formatted correctly by "printf". Takes no arguments - the test value is hard-wired into the function (as
"7").
print_long_double();
Output is sent to STDOUT.
have_long_double
Determine whether a "long double" is supported by Perl. This should be used to determine whether to test "print_long_double".
print_long_double() if have_long_double;
print_nv
Test that an "NV" is formatted correctly by "printf".
print_nv( $val );
Output is sent to STDOUT.
print_iv
Test that an "IV" is formatted correctly by "printf".
print_iv( $val );
Output is sent to STDOUT.
print_uv
Test that an "UV" is formatted correctly by "printf".
print_uv( $val );
Output is sent to STDOUT.
print_int
Test that an "int" is formatted correctly by "printf".
print_int( $val );
Output is sent to STDOUT.
print_long
Test that an "long" is formatted correctly by "printf".
print_long( $val );
Output is sent to STDOUT.
print_float
Test that a single-precision floating point number is formatted correctly by "printf".
print_float( $val );
Output is sent to STDOUT.
call_sv, call_pv, call_method
These exercise the C calls of the same names. Everything after the flags arg is passed as the the args to the called function. They
return whatever the C function itself pushed onto the stack, plus the return value from the function; for example
call_sv( sub { @_, 'c' }, G_ARRAY, 'a', 'b'); # returns 'a', 'b', 'c', 3
call_sv( sub { @_ }, G_SCALAR, 'a', 'b'); # returns 'b', 1
eval_sv
Evaluates the passed SV. Result handling is done the same as for "call_sv()" etc.
eval_pv
Exercises the C function of the same name in scalar context. Returns the same SV that the C function returns.
require_pv
Exercises the C function of the same name. Returns nothing.
SEE ALSO
XS::Typemap, perlapi.
AUTHORS
Tim Jenness, <t.jenness@jach.hawaii.edu>, Christian Soeller, <csoelle@mph.auckland.ac.nz>, Hugo van der Sanden <hv@crypt.compulink.co.uk>
COPYRIGHT AND LICENSE
Copyright (C) 2002,2004 Tim Jenness, Christian Soeller, Hugo van der Sanden. All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2010-05-13 XS::APItest(3pm)