05-18-2010
I guess you echo at the end the variable "filename" so it prints the without extension which is correct.
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 HPUX
ftpconversions
ftpconversions(4) Kernel Interfaces Manual ftpconversions(4)
NAME
ftpconversions - ftpd conversions database
SYNOPSIS
DESCRIPTION
The conversions known by and their attributes are stored in an ASCII file that is structured as below. Each line in the file provides a
description for a single conversion. Fields are separated by colons (:).
Field Description
1 strip prefix
2 strip postfix
3 addon prefix
4 addon postfix
5 external command
6 types
7 options
8 description
strip postfix and addon postfix can be the file extensions or or or The file extensions the ftp server supports and the action that the ftp
server performs is summarized in the table below. This feature is supported only when using the command.
| |
True Filename | Specified Filename | Action
--------------+--------------------+---------------------------------------
filename.Z | filename | Decompress file before transmitting
filename | filename.Z | Compress filename before transmitting
filename | filename.tar | Tar filename before transmitting
filename | filename.tar.Z | Tar and compress filename
| | before transmitting
external command field is used to specify the path of the program/script to be used to perform the action specified for the different file
extensions as described in the above table.
types field indicates the flags that must be checked before compressing, decompressing, tarring and untarring the file requested by the
command.
options field specifies the options for the program/script specified in the external command field.
description is a short description of each conversion.
NOTE: The HP-UX command does not support any option to do or If the user wants to perform any such action, he/she must then write his/her
own program/script to do it and specify the pathname of the program/script in the external command field in the file. Also a copy of the
programs/scripts used to perform the conversions and the respective libraries used by the programs/scripts must be copied into the home
directory of each of the and user accounts for the and users to be able to perform on-the-fly conversions.
WARNINGS
The conversions mechanism does not currently support the strip prefix and addon prefix fields.
FILES
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M), ftpaccess(4).
ftpconversions(4)