06-05-2011
Help in reading the date from the input file name
Hi,
I need to read the date from the input file. The format of the input file is as follows:
a_b_c_yyyymmdd.txt
I need to read the date(yyyymmdd) part from the name of the input file.
Would really appreciate if someone can help me in this regard
Thanks a lot.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings to all,
I would like to read input from a file and make duplications from it with Linux shell.
For e.g.
Input file
-----------
ABC
ABB
ABA
-------------------------------
Output file
------------
ABC
ABC
ABC
ABB
ABB (6 Replies)
Discussion started by: noelcantona
6 Replies
2. Shell Programming and Scripting
#!/bin/sh
rpt="/export/home/legato/rpt_offsite"/test_eject.tape
cat <$rpt
while read line
do
echo $line
perform routine
done
I am trying to read the contents of this file line by line and perform a routine for each line read.
The file contents are numbers..
What is wrong with my... (1 Reply)
Discussion started by: gzs553
1 Replies
3. Shell Programming and Scripting
First I' d like to say you guys are awesome. :)
I have a word document that I cut and paste into Textpad and it removed all the fancy formatting which is fine with me. I WinScp'd it to the box and and called it inputfile.txt.
Opened it in vi and don't see any special characters or stuff that... (2 Replies)
Discussion started by: zilla30066
2 Replies
4. Shell Programming and Scripting
I am trying to read input for a C program (that expects input from the user) from a file using the shell command:
progname < filename
but it seems that the program considers the char '<'
as the first input, hence causing an "error" in my program.
I checked it with another program and it... (2 Replies)
Discussion started by: nadbar
2 Replies
5. Shell Programming and Scripting
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
5 Replies
6. UNIX for Dummies Questions & Answers
First of all thanks to all for the good post, and the great site. I'm a noob, but I've been able to learna a lot by checking past posts.
I haven't been able to make sense of a problem that I've been working on for a while, hopefully someone can help me out. The script I wrote telnets into... (7 Replies)
Discussion started by: Wallygooo32
7 Replies
7. Shell Programming and Scripting
I need to know how the the string constant from Input File should be read and provide as input data for the script .
INPUT FILE
CONST VARIABLE
myname=/root/dir/syslog/myname1
myname=/root/dir/syslog/myname2
myname=/root/dir/syslog/myname3
urname=/root/dir/syslog/urname1... (6 Replies)
Discussion started by: baraghun
6 Replies
8. Shell Programming and Scripting
Hello,
I've been trying to come up with a solution for the following problem; I have an input file with two columns and I want to print as an output the first column without any changes but for the second column, I want to divide it by its last value. Example input:
1 9
2 10
3 11
4 12
5... (14 Replies)
Discussion started by: acsg
14 Replies
9. Shell Programming and Scripting
Hi,
Could someone let me know how to read input from a web page into a unix file.
I am writing my script in bash shell in Solaris version.
Thanks in advance,
ayarlaga. (7 Replies)
Discussion started by: ayarlaga
7 Replies
10. UNIX for Dummies Questions & Answers
I am not able to capture the user input in this script(bash).There is prompt for user input.Could some one help me capture user input while reading afile?
while read line
do
echo "$i"
path1=$line
path2=`echo $line|sed s/new_dir/old_dir/`
echo "Do you want to replace?";... (4 Replies)
Discussion started by: parijat guh
4 Replies
LEARN ABOUT DEBIAN
packxxk
packxxk(1) General Commands Manual packxxk(1)
NAME
packxxk - pack TI graphing calculator software files
SYNOPSIS
packxxk [ -t type ] [ -d date ] [ -o xxkfile ] appfile ...
DESCRIPTION
packxxk is a program to generate Flash Application and OS files for the Texas Instruments TI-73, TI-83 Plus, TI-84 Plus, TI-89, and TI-92
Plus graphing calculators. The files generated are in the ``TIFL'' format used by recent versions of TI's GraphLink and TI-Connect soft-
ware.
The input file to packxxk must be in TI-Hex or TIFL format to begin with, and (in order for the application to be installed) it must have
been digitally signed before being packed. packxxk does not do this, nor does it check for the presence of a signature. You can use rab-
bitsign(1) to sign applications in several common formats.
If multiple input files are specified, packxxk creates a multi-part TIFL file.
OPTIONS
-t type
Specify the type of program (e.g., `8xk' for a TI-83 Plus application, or `73u' for a TI-73 operating system.) The default behavior
is to infer the program type from the name of the input file. (If the input file does not have a recognized suffix, the type is
guessed based on the contents of the program header.)
-c id Manually specify the calculator device ID (e.g., 0x73 for the TI-83 Plus, or 0x74 for the TI-73.)
-d [ month/day/year | day-month-year ]
Manually specify the date stamp for the application. The default is to use the current date in the local time zone.
-o xxkfile
Specify the output file name (default is to write to standard output.)
SEE ALSO
rabbitsign(1)
AUTHOR
Benjamin Moody <floppusmaximus@users.sf.net>
RabbitSign 2.0 July 2009 packxxk(1)