05-18-2010
At what point do I add the new file extension?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Forgive the daft requests - I'm still a learner :D
I need a script so that I can test another script (I'm confused already) The script I am looking for should generate a new file in the same directory (called newfile1 or what ever) and also generate text within the new file (Hello world? What... (1 Reply)
Discussion started by: JayC89
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I was wondering if there was a way to append something to filenames based on a wildcard. For example, if I have the following files in a directory:
blah1
blah2
blah3
blah4
blah5
I want to rename these all to:
blah1.txt
blah2.txt
blah3.txt
blah4.txt
blah5.txt
Is there a... (4 Replies)
Discussion started by: Djaunl
4 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to write a script that reads filenames from a file and use these filenames in a loop. The filenames are all on one line and the problem is that these filenames have wildcards like * and braces like in them.
Right now what I'm doing is something like this:
echo "reading from... (0 Replies)
Discussion started by: warp17
0 Replies
4. Shell Programming and Scripting
Is there a way to link a script in my ~/bin with file extension priority for tab completion?
for example, if the script I have could only look at .tex files, and I have 6 files in the same directory with the same name, but different extensions:
index.tex index.dvi index.toc ... etc...
it... (0 Replies)
Discussion started by: pyramation
0 Replies
5. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
6. Shell Programming and Scripting
I'm working on a personal project, a multiplication quiz script for my kids. In it, the user's performance will be recorded and written to a file. After they've played it a little while, it will start to focus more on the ones that give them the most trouble-- that take a long time to answer or... (4 Replies)
Discussion started by: treesloth
4 Replies
7. Shell Programming and Scripting
Hello,
I have a file name in the below format and have to append the date as _$currdate.
kchik_UK_lo.txt_$currdate.
The above should be the format and I dont want to put entire filename as above in the code, but it should give me the output as the above filename.Can anyone please help... (7 Replies)
Discussion started by: harika03
7 Replies
8. Shell Programming and Scripting
Hi,
I wanted to load data from HDFS to HIVE by writing bash script.
Description:
I have written a bash script to validate the data and loaded validated data from local file system to HDFS. Now in the same bash script i wanted to load the data from HDFS to HIVE. How can i do it ? Also how tyhe... (2 Replies)
Discussion started by: shree11
2 Replies
9. Shell Programming and Scripting
Hi,
I have a script file where i'm validatig the input file and storing the validated records on HDFS.
I wanted to load data from HDFS to HBASE using pig script. So for that i have created a HBASE table and written pig script to load data from HDFS to HBASE which is working fine. Now i wanted... (0 Replies)
Discussion started by: shree11
0 Replies
10. UNIX for Beginners Questions & Answers
Hello.. and thanks in advance for any help anyone can offer me to figure this out
I'm reading about the about the Bash shell... and I've read from many sources that to make Bash POSIX compliant it needs "extensions"... Which sounds to me like something I should be able to load or unload into... (1 Reply)
Discussion started by: bodisha
1 Replies
LEARN ABOUT CENTOS
extutils::mksymlists
ExtUtils::Mksymlists(3) User Contributed Perl Documentation ExtUtils::Mksymlists(3)
NAME
ExtUtils::Mksymlists - write linker options files for dynamic extension
SYNOPSIS
use ExtUtils::Mksymlists;
Mksymlists( NAME => $name ,
DL_VARS => [ $var1, $var2, $var3 ],
DL_FUNCS => { $pkg1 => [ $func1, $func2 ],
$pkg2 => [ $func3 ] );
DESCRIPTION
"ExtUtils::Mksymlists" produces files used by the linker under some OSs during the creation of shared libraries for dynamic extensions. It
is normally called from a MakeMaker-generated Makefile when the extension is built. The linker option file is generated by calling the
function "Mksymlists", which is exported by default from "ExtUtils::Mksymlists". It takes one argument, a list of key-value pairs, in
which the following keys are recognized:
DLBASE
This item specifies the name by which the linker knows the extension, which may be different from the name of the extension itself (for
instance, some linkers add an '_' to the name of the extension). If it is not specified, it is derived from the NAME attribute. It is
presently used only by OS2 and Win32.
DL_FUNCS
This is identical to the DL_FUNCS attribute available via MakeMaker, from which it is usually taken. Its value is a reference to an
associative array, in which each key is the name of a package, and each value is an a reference to an array of function names which
should be exported by the extension. For instance, one might say "DL_FUNCS => { Homer::Iliad => [ qw(trojans greeks) ], Homer::Odyssey
=> [ qw(travellers family suitors) ] }". The function names should be identical to those in the XSUB code; "Mksymlists" will alter the
names written to the linker option file to match the changes made by xsubpp. In addition, if none of the functions in a list begin
with the string boot_, "Mksymlists" will add a bootstrap function for that package, just as xsubpp does. (If a boot_<pkg> function is
present in the list, it is passed through unchanged.) If DL_FUNCS is not specified, it defaults to the bootstrap function for the
extension specified in NAME.
DL_VARS
This is identical to the DL_VARS attribute available via MakeMaker, and, like DL_FUNCS, it is usually specified via MakeMaker. Its
value is a reference to an array of variable names which should be exported by the extension.
FILE
This key can be used to specify the name of the linker option file (minus the OS-specific extension), if for some reason you do not
want to use the default value, which is the last word of the NAME attribute (e.g. for "Tk::Canvas", FILE defaults to "Canvas").
FUNCLIST
This provides an alternate means to specify function names to be exported from the extension. Its value is a reference to an array of
function names to be exported by the extension. These names are passed through unaltered to the linker options file. Specifying a
value for the FUNCLIST attribute suppresses automatic generation of the bootstrap function for the package. To still create the
bootstrap name you have to specify the package name in the DL_FUNCS hash:
Mksymlists( NAME => $name ,
FUNCLIST => [ $func1, $func2 ],
DL_FUNCS => { $pkg => [] } );
IMPORTS
This attribute is used to specify names to be imported into the extension. It is currently only used by OS/2 and Win32.
NAME
This gives the name of the extension (e.g. "Tk::Canvas") for which the linker option file will be produced.
When calling "Mksymlists", one should always specify the NAME attribute. In most cases, this is all that's necessary. In the case of
unusual extensions, however, the other attributes can be used to provide additional information to the linker.
AUTHOR
Charles Bailey <bailey@newman.upenn.edu>
REVISION
Last revised 14-Feb-1996, for Perl 5.002.
perl v5.16.3 2013-06-14 ExtUtils::Mksymlists(3)