Sponsored Content
Top Forums Shell Programming and Scripting Change the naming convention of the output file Post 302971219 by newtoaixos on Monday 18th of April 2016 02:26:48 AM
Old 04-18-2016
Hi Yoda

Thanks for the reply.
So the file comes as hostname_YYMMDD_HHMM.nmon.
After the file is generated and completed for a particular day, can we rename the file from "hostname_YYMMDD_HHMM.nmon" to "nmon_servername_daily_2016.03.21_00.00.00".
Say for example if the data is collected for March 21st, I believe when the day March 21st ends at 23:59 nmon creates a new file for March 22nd. So after the data collection started for March 22nd a script has to be put to rename the file for March 21st. Is there an option to schedule this on crontab so that the file gets renamed automatically everyday.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Naming convention for Libraries..

Hi All, I need to know standard naming convention for Unix libraries (including all flavours of unix)..As I have gone through some sites and found out The UNIX convention for naming of libraries is lib<name>.so.<major>.<minor>.<revision> so is it statndard . also does it change... (0 Replies)
Discussion started by: rkshukla14
0 Replies

2. Emergency UNIX and Linux Support

Read file and change a 0 to a 1 in output

<key>ExcludeSimpleHostnames</key> <integer>0</integer> <key>FTPPassive</key> Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key. I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies

3. Shell Programming and Scripting

Change file output format

I have a file which has following contents usmtnz-dinfsi19 62 61 18400 18800 99.7 usmtnz-dinfsi19 62 61 18400 18800 99.7 i want the o/p to be like date (7 Replies)
Discussion started by: fugitive
7 Replies

4. Shell Programming and Scripting

Naming convention script

OK, so a quick background: I am a sys admin for a 1:1 deployment in academia with Macbooks, totaling around 6,000. Macbooks get shifted around from building to building and go to and from the repair center if hardware repair is needed. Often, some machines will get moved from one building to... (8 Replies)
Discussion started by: tlarkin
8 Replies

5. Hardware

Motherboards naming convention

For the selection of motherboards, is there any naming convention in the type numbers? There is usually a brand name and sometimes a version name, but more essential details like form factor, SATA speed and maximum amount of RAM is never given. Is there a reason for that? Is there any background... (2 Replies)
Discussion started by: figaro
2 Replies

6. Shell Programming and Scripting

Concatenate files to one file with naming convention

Hi , i have below files in wrk folder. file names are 1102090001.CLT 1102090003.CLT 1102100019.CLT 1102100020.CLT the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count. example : concatenate file... (9 Replies)
Discussion started by: krbala1985
9 Replies

7. Fedora

Basic question regarding rpm naming convention.

Hi Guys, Where would i find the list of distribution codes. For example. samba-32bit-3.4.2 -1.1.3.1.x8664.rpm In above rpm file it is indicated that its release is 1.1.3.1 . The rpm is meant to be run for opensuse. Where would i get the linking of release number and distribution. ... (2 Replies)
Discussion started by: pinga123
2 Replies

8. UNIX for Dummies Questions & Answers

Check file name against convention

I need this script to check if the first 3 letters of the file name are capital. find . -type f -name *001.dpx -exec find {} ! -name ???_???_???_v??.??????.dpx \; >> ./Bad_FileNames.txt Currently it finds the first frame of the sequence and tests that against the naming convention. It works... (6 Replies)
Discussion started by: scribling
6 Replies

9. Red Hat

File System Naming Convention

Hi, I am installing a new RHEL 5 application server containing JBOSS along with other specific 3rd party applications. I know that this usually gets installed in /opt but I was thinking of installing these on a new separtate lv / file system instead. i.e. /<my_new_FS_name> rather than... (6 Replies)
Discussion started by: Duffs22
6 Replies

10. Shell Programming and Scripting

Naming output files based on variable parameters and input filenames

Hello, I have a series of files in sub-directories that I want to loop through, process and name according to the input filename and the various parameters I'm using to process the files. I have a number of each, for example file names like AG005574, AG004788, AG003854 and parameter values like... (2 Replies)
Discussion started by: bdeads
2 Replies
BOOTPC(8)						      Debian GNU/Linux Manual							 BOOTPC(8)

NAME
bootpc - bootp client SYNOPSIS
bootpc [--bootfile file] [--dev device] [--verbose] [--debug] [--server addr] [--hwaddr addr] [--returniffail] [--waitformore length] [--in2host addr] [--serverbcast] [--help] DESCRIPTION
This manual page documents briefly the bootpc command. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. bootpc is a boot protocol client used to grab the machine's IP address, set up DNS nameservers and other useful information. OPTIONS
--bootfile file Tell the server to use file as the boot file. --dev device Use device to communicate with the server. --verbose Be verbose. --debug Produce debugging output. --server addr Use the IP address addr to communicate with the server. --hwaddr addr Use addr as our hardware address rather than what the operating system gives us. --returniffail Terminate the program if a failure occurs. By default bootpc will ask the user to press a key if the request did not succeed. --waitformore length Wait for more responses when one is received. bootpc will wait for at most length seconds. This is probably only useful for debug- ging. --in2host addr Takes an address and returns useful bits of the name after lookup, this was a separate program, but it is more compact to have both together. --serverbcast Tell the server to send back a broadcast reply. This is necessary on Linux 2.1 and 2.2. --help Display the usage of bootpc. AUTHOR
This manual page was written by Herbert Xu <herbert@debian.org>, for the Debian GNU/Linux system (but may be used by others). BOOTPC
1999 March 21st BOOTPC(8)
All times are GMT -4. The time now is 05:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy