Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Previous yearmonth in filename Post 302569595 by Peasant on Tuesday 1st of November 2011 12:11:20 AM
Old 11-01-2011
How did it fail when ran on Oct. for Sept output ?
Do you have some output ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

getting previous filename

hello experts, H r u . i just need to get the previous file from the latest file let say. fileA fileB fileC fileD fileE in this case fileE is the latest file but i need a script which will always get the name of the previouse file like fileD. currently i am using this command to get the... (3 Replies)
Discussion started by: shary
3 Replies

2. Shell Programming and Scripting

gzcat into awk and then change FILENAME and process new FILENAME

I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
Discussion started by: timj123
6 Replies

3. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

4. UNIX for Dummies Questions & Answers

Append Previous Days date to filename

I need to append previous days date to my file which is generated using a script. I am working on Solaris 10. Thanks! (2 Replies)
Discussion started by: Twisha
2 Replies

5. Shell Programming and Scripting

Adding Previous Month To Filename

Dear experts, I'm using solaris 5.10 and bash. I want to zip file "Amount.txt" to "Amount.zip" and rename it to "Amount_<prev_month>_<this year>.zip". For example, file for this month should be renamed to "Amount_06_2012.zip", for next month it should be "Amount_07_2012.zip". I have no problem... (8 Replies)
Discussion started by: kris.adrianto
8 Replies

6. UNIX for Dummies Questions & Answers

to extract all the part of the filename before a particular word in the filename

Hi All, Thanks in Advance I am working on a shell script. I need some assistance. My Requirement: 1) There are some set of files in a directory like given below OTP_UFSC_20120530000000_acc.csv OTP_UFSC_20120530000000_faf.csv OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Discussion started by: aealexanderraj
0 Replies

7. Programming

to extract all the part of the filename before a particular word in the filename

Hi All, Thanks in Advance I am working on a shell script. I need some assistance. My code: if then set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\ "pam_account"; for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Discussion started by: aealexanderraj
0 Replies

8. Shell Programming and Scripting

Remove previous line if next & previous lines have same 4th character.

I want to remove commands having no output. In below text file. bash-3.2$ cat abc_do_it.txt grpg10so>show trunk group all status grpg11so>show trunk group all status grpg12so>show trunk group all status GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
Discussion started by: Raza Ali
4 Replies

9. Shell Programming and Scripting

Add previous Sundays date to filename

I am looking for some scripting help. I need to add a time stamp to a file name. I will append data to a file, and want to add to the file name a time stamp of the previous Sundays date. Any takers? (1 Reply)
Discussion started by: sswagner8839
1 Replies

10. Shell Programming and Scripting

Bash to rename files repeats previous filename in directory

In the below bash processes substitution, if there are 3 files in a directory /home/cmccabe/medex.logs/analysis.log, the filename variable is set to where these files are located. The code does execute, the problem is that if there is a renamed file in the output directory below, it gets... (0 Replies)
Discussion started by: cmccabe
0 Replies
asadmin-display-license(1AS)					   User Commands				      asadmin-display-license(1AS)

NAME
asadmin-display-license, display-license - displays the license information SYNOPSIS
display-license [--user admin_user][--password admin_password][--host localhost] [--port 4848][--passwordfile filename][--secure|-s] display-license displays the license information. This command can run both locally and remotely. OPTIONS
--user administrative user associated for the instance. --password administrative password corresponding to the administrative user. --host host name of the machine hosting the administrative instance. --port administrative port number associated with the administrative host. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --secure if true, uses SSL/TLS to communicate with the administrative instance. Example 1: Using display-license in local mode asadmin> display-license ***************************************************************** Eval Sun ONE Application Server 7 Evaluation License Expiration date Tues 11 Sept 11:58:47 PDT 2002 Number of instances per admin server Unlimited Allow remote administration YES ***************************************************************** Example 2: Using display-license in remote mode asadmin> display-license --user admin --password adminadmin --host fuyako --port 7070 ***************************************************************** Eval Sun ONE Application Server 7 Evaluation License Expiration date Tues 11 Sept 11:58:47 PDT 2002 Number of instances per admin server Unlimited Allow remote administration YES ***************************************************************** EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-install-license(1AS) J2EE 1.4 SDK March 2004 asadmin-display-license(1AS)
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy