capturing a file to store in a variable


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting capturing a file to store in a variable
# 1  
Old 07-21-2009
capturing a file to store in a variable

I have a file in a windows directory the file is delivery to us like this
07210900.dat
where
07210900 is the current date.
If I want to store that file in a variable UpLoadFileName and
rename, so I can Ftp later to a UNIX directory, I am doing this, is this correct?

Code:
CDRemoteDir='cd alumni\xxxx\xxx\0910\FTP'
UpLoadFileName=`date "+%m%d%y"00.dat`;
NewName= "eluppdtop.dat" ;

Thank you

Last edited by rechever; 07-21-2009 at 05:50 PM.. Reason: fixed code tag
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to store file name in a variable?

Hi All, Daily I am generating a file dfm_daily_file_ ex: dfm_daily_file_05072015 date will be changed daily. Once the file is FTP it is deleted. I have tried the below code to get the file name with any date and store it in a variable its not working. #!/bin/ksh ... (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies

2. Shell Programming and Scripting

How to read a value from a file and store in a variable?

Hi, I have a file service.xml which has following content: <?xml version="1.0" encoding="UTF-8"?> <Service Ver="2.31.13"/> I want to read the value of Ver (that is 2.31.13) and assign to a variable which i further use. Please help me in that. (3 Replies)
Discussion started by: laxmikant15
3 Replies

3. Shell Programming and Scripting

Extract a string from a file and store it in variable

Hi, I've a file ImageSizeDetails.txt with the following contents: Image Name: swncd 01.10.00.04 Created: Wed Jan 9 14:05:48 2013 Image Type: ARM Linux Multi-File Image (gzip compressed) Data Size: 7351011 Bytes = 7178.72 kB = 7.01 MB Load Address: 00008000 Entry Point: ... (6 Replies)
Discussion started by: Parameswaran
6 Replies

4. Shell Programming and Scripting

To store the file name o/p from find command in to a variable

Hi How to use a variable to store the filename of a file which was found by the 'find' command. can this be practical-->var = find . -name "filename.dat" Please help.. (1 Reply)
Discussion started by: ayyappaas
1 Replies

5. Shell Programming and Scripting

Read the contents of a file and store them in a variable

Hi Gurus, I am trying for a scenario where in I want to read the contents of a file line by line and then store them in variables. Below is the script: #!/bin/ksh while read line do id=`echo $line | cut -f1 -d |` name=`echo $line | cut -f2 -d |` echo $id ... (11 Replies)
Discussion started by: svajhala
11 Replies

6. UNIX for Dummies Questions & Answers

Read a file and store each value in a variable

Hi, How to read a file and put the values in a script. E.g. file1.txt 02/12/2009;t1;t2 The script should read this file and put these values in 3 different variables x1,x2,x3 which can be used further. Thanks Ashu (3 Replies)
Discussion started by: er_ashu
3 Replies

7. Shell Programming and Scripting

Capturing a number at the end of line and store it as variable

Hello, Would someone guide me on how to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it. The text file is in this form text or numbers in first line text or numbers in second line . . . Firsname... (6 Replies)
Discussion started by: amuthiga
6 Replies

8. Shell Programming and Scripting

store the first line of a file in a variable

i have to store the files in a folder and assign a variable to the the files. (0 Replies)
Discussion started by: dineshr85
0 Replies

9. UNIX for Dummies Questions & Answers

Capturing some data from a file into a variable

I have a file with some values in a tab delimted format Eg: 'test' contains: a<tab>b<tab>c<tab>Trk_12345678 now i need to capture this value 'Trk_12345678' into a variable say 'x' and append that value of 12345678 to 12345679 and store is back to a new 'test1' file as : 'test1'... (11 Replies)
Discussion started by: shiroh_1982
11 Replies

10. UNIX for Advanced & Expert Users

how to read each letter from file and store it in variable.

Dear friends, i am writing csh script i have one dat file containing following data.like this. 08FD3 03A26 000FA0 FFFF0 BBA0F 00000 00000 from the above file i want to read each letter and store it in one variable. how it is possible. please help (7 Replies)
Discussion started by: rajan_ka1
7 Replies
Login or Register to Ask a Question
Psi Release 3.0 						1

cints(1)	   PSI COMMANDS FOR UNIX USERS		 cints(1)

NAME
cints - One- and Two-Electron (Derivative) Integrals Program DESCRIPTION
The program cints computes (derivative) integrals of some one- and two-electron operators which appear in quantum chemical theories over symmetry-adapted cartesian and spher- ical harmonics Gaussian functions. DOCUMENTATION
Man-page is no longer supported. HTML-based documentation is in index.html. input.dat Input file FILE30 Checkpoint file FILE31 Input for this program is read from the file input.dat. Most of the keywords are not neccessary for routine task. The following keywords are valid: PRINT = integer Determines amount of information to be printed. Defaults to 0. CUTOFF = integral The negative of the exponent of the cutoff imposed on two-electron integrals. Default is 15 which results in two-electron integrals of greater than 1e-15 magnitude to be stored in FILE33. S_FILE = integer The file number to store overlap integrals. Defaults to 35. T_FILE = integer The file number to store kinetic energy integrals. Defaults to 35. V_FILE = integer The file number to store nuclear attraction integrals. Defaults to 35. ERI_FILE = integer Psi Release 3.0 Last change: 04 Jan, 2000 1 cints(1) PSI COMMANDS FOR UNIX USERS cints(1) The file number to store electron repulsion integrals. Defaults to 33. Psi Release 3.0 Last change: 04 Jan, 2000 2