Sponsored Content
Top Forums Shell Programming and Scripting If(Condition) Rename a file with (Date+Time) Stamp Post 302496806 by verdepollo on Tuesday 15th of February 2011 10:29:41 AM
Old 02-15-2011
I think a simple mv would do the work, isn't it?

Code:
mv /a01/bpm.log /a01/bpm$(date +%m%d%y_%T).log

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File date and time stamp

I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second. Any ideas... (1 Reply)
Discussion started by: Xenon
1 Replies

2. UNIX for Dummies Questions & Answers

Inserting Date&Time Stamp In Existing Log File

I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
Discussion started by: shephardfamily
3 Replies

3. Shell Programming and Scripting

Extract info from log file and compute using time date stamp

Looking for a shell script or a simple perl script . I am new to scripting and not very good at it . I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report. ... (0 Replies)
Discussion started by: breez_drew
0 Replies

4. Linux

rename files in a folder with date&time stamp

Hi, I want to rename all the files (more than 100 files) in a fodler to another folder with date&time stamp. foe eg, file1.dat file2.dat file3.dat .. to be renamed as file1100629_16_30_15.txt (yy-mon-dd_hh_mi_ss) file1100629_16_30_16.txt .. so on (2 Replies)
Discussion started by: feroz
2 Replies

5. UNIX for Dummies Questions & Answers

ls -ltr for a future date/time stamp file

Hi When i do ls -ltr <file1> then it shows me the date and time of the file if - for whatever reason file has future date/time stamp then ls -ltr is not showing the time, it just shows only date part ... even if time is ahead by 2 hr than current time. suppose a file was copied from INDIA... (3 Replies)
Discussion started by: reldb
3 Replies

6. Shell Programming and Scripting

Set date and time stamp of one file to another

Hi I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file. Is there anyway to do it simple instead of manually taking date/stamp of first file? TIA Prvn (2 Replies)
Discussion started by: prvnrk
2 Replies

7. HP-UX

How to rename file in FP server with server time stamp?

Hello All, I am new user in this forum. Facing problem when trying to download file using Perl ::NET:FTP module. I need to rename the remote server file with latest timestamp of that ftp server. Can somebody help me if this is possible? Many thanks, (5 Replies)
Discussion started by: krsnadasa
5 Replies

8. Shell Programming and Scripting

How to extract latest file by looking at date time stamp from a directory?

hi, i have a Archive directory in which files are archived or stored with date and time stamp to prevent over writing. example: there are 5 files s1.txt s2.txt s3.txt s4.txt s5.txt while moving these files to archive directory, date and time stamp is added. of format `date... (9 Replies)
Discussion started by: Little
9 Replies

9. Shell Programming and Scripting

Shell Script | Parse log file after a given date and time stamp

I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
Discussion started by: ROMA3
2 Replies

10. Shell Programming and Scripting

Change date time stamp of existing file

I have a file hello.txt which was created today (today's date timestamp) I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now. uname -a SunOS mymac 5.11 11.2 sun4v sparc sun4v Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
midid(1)						      General Commands Manual							  midid(1)

NAME
midid - Raw Midi interpreter SYNOPSIS
midid [OPTIONS] [input_file] DESCRIPTION
This manual page documents briefly the midid command. midid reads STDIN or input_file and interprets it as raw MIDI data according to the General Midi standard. The General Midi data is sent to a sound device (default), a .MID file, or to timidity(1) if you specify it. midid includes a standalone mode for timidity(1): midid will then attempt to start and configure timidity(1) itself for you. OPTIONS
Standard options -o seconds--timeout=seconds Turns output off after seconds of inactivity. (default: 0 - no timeout) -r,--resident Stays resident ; doesn't stop at the end of file. It works only if input_file isn't STDIN. -g,--emulate-gm Selects GM mode (default). -m,--emulate-mt Selects MT32 mode. -d device,--device=device Comma-separated list of devices to use for output. -l,--list-devices Lists devices. -h Displays a help message. Options for .MID file output device -f,--file filename Sets the .MID output filename. Default: midid.mid. -t bpm,--tempo=bpm Sets the tempo (beats/minute). Default: 120. -q tickrate,--tick-rate=tickrate Sets the number of ticks/quarter note. Default: 144. Options for timidity(1) client -s server,--server-name=server, Sets the timidity(1) server host name. Default: localhost. -p port,--port=port Sets the timidity(1) server control port. Default: 0. Specifying 0 enables the standalone mode: midid will attempt to start and configure timidity(1) itself. Options for using standalone mode with timidity(1) -B path,--timidity-bin=path Sets the timidity binary path. -A args,--timidity-args=args Specifies some extra arguments to pass to timidity(1) . Default: -EFreverb=0 -EFchorus=0 -EFresamp=1 -EFvlpf=0 -EFns=0. -M,--timidity-mono Tells timidity(1) to produce mono sound instead of stereo. -L,--timidity-low Tells timidity(1) to produce the low-q 8bit sound instead of the 16bit. -U,--timidity-uns Tells timidity(1) to produce the unsigned samples instead of the signed ones. -F rate,--timidity-freq=rate Sets the sampling rate for timidity(1). -C,--timidity-capture Enables the capturing mode: the data produced by timidity(1) gets captured by midid and forwarded to stdout. You won't hear any sound in that mode. SEE ALSO
timidity(1) AUTHORS
midid is: Copyright (c) 1997 R.Nijlunsing <rutger@null.net> Copyright (c) 2002 Robert Komar <rkomar@telus.net> Copyright (c) 2002-2005 Stas Sergeev <stsp@users.sourceforge.net> This manual page was written by Francois Wendling <frwendling@free.fr> for the Debian GNU/Linux system (but may be used by others). 2008-08-28 midid(1)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy