Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need to print file names in a certain date range using ls Post 8232 by sskb on Monday 8th of October 2001 07:14:16 PM
Old 10-08-2001
CPU & Memory

in the same thing.. if i want the files in a time interval, what should i change?

for example.. i want files modified from 1st oct 2001 to 5th oct 2001.

Smilie
sskb
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

get Message from file within date range

Hi All, I am a java devloper putting my hands on shell scripts. Honestly it sounds coool and interesting Presently I got stuck with the following requirement. Get the messages from file. The messages in the file are as follows: date|message1 date|message2 . . . date is of... (2 Replies)
Discussion started by: ambharish
2 Replies

2. Shell Programming and Scripting

display the file with in the date range

Hi All, I want a shell script which can display the file with in the date range. For Example I have 15 files with the following format abc_01-01-2009.txt to abc_15-01-2009.txt. Now I want to have the files between 4th of jan to 12th files. How can I acheive this. Advance... (1 Reply)
Discussion started by: fareed_do
1 Replies

3. UNIX for Dummies Questions & Answers

How to list file names in a certain date range using ls command?

Hi experts, I Need to print file names in a certain date range using ls:confused:. Please help me with any sample script. Thanks a lot in advance. Regards, Satish (4 Replies)
Discussion started by: satish.vutti
4 Replies

4. Shell Programming and Scripting

print range between two patterns if it contains a pattern within the range

I want to print between the range two patterns if a particular pattern is present in between the two patterns. I am new to Unix. Any help would be greatly appreciated. e.g. Pattern1 Bombay Calcutta Delhi Pattern2 Pattern1 Patna Madras Gwalior Delhi Pattern2 Pattern1... (2 Replies)
Discussion started by: joyan321
2 Replies

5. Shell Programming and Scripting

Print pattern range to a new file

Hi Everyone! I really appreciate all of your help, I'm learning so much, can't wait until I get good enough to start answering questions! I have a problem ... from one large file, I'd like to create multiple new files for each pattern block beginning with /^ISA/ ending with /^IEA/ ... (2 Replies)
Discussion started by: verge
2 Replies

6. Shell Programming and Scripting

Print Range Only Once Per File

Scenario: Each of several .txt files contain the following (but perhaps with some minor variations due to code version running on the devices from which the text was extracted): <output omitted> SWITCH1#show proc cpu hist 1... (4 Replies)
Discussion started by: svermill
4 Replies

7. Shell Programming and Scripting

Print numbers along with file names.

Hi All, I have some thousand files with names like 1.syl, 2.syl, 5.syl etc. These files contain one sentence each. I want to store all those sentences along with the file ID that is 1, 2, 5 with the sentences they contain. For example, 1.syl has this is a test line 2.syl has ... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies

8. Shell Programming and Scripting

Deal with a range of file names

Red Hat enterprise Lines 5.8 I have files like below. All the below files are created in the same minute. Using mv command, I want to move 33 files starting from pg424_fcds_1_718519105_34304.dat to pg424_fcds_1_718519105_34336.datto another direcory called /data/fcds_logs/ ls... (6 Replies)
Discussion started by: omega3
6 Replies

9. Shell Programming and Scripting

Print the output with different file names

I have a python script that gives output called test.png. By using the following command I run the script every 2 seconds. What is the easiest way to save the output as follows ( test.png (1st output), tes1.png (second output), tes2.png ....) Command I i use while sleep 2; do python... (1 Reply)
Discussion started by: quincyjones
1 Replies

10. UNIX for Beginners Questions & Answers

Search for Multiple strings in a given date range and print the Group if they exists

Hi, I am Searching for Multiple strings in a given date range and print the Group if they exists. the below is the format: ------------------------------------------------------------------------------------------------------------------------- ID: FIRST ID MESSAGE: Event Message... (5 Replies)
Discussion started by: linuxuser999
5 Replies
oct(3trf)																 oct(3trf)

NAME
       oct - Encoding "oct"

SYNOPSIS
       package require Tcl  ?8.2?

       package require Trf  ?2.1.3?

       oct ?options...? ?data?

DESCRIPTION
       The command oct is one of several data encodings provided by the package trf. See trf-intro for an overview of the whole package.

       This  encoding  transforms  every  byte	in the input into a sequence of 3 characters containing the octal representation of the byte.  For
       example

	    % oct -mode encode Z
	    132

       oct ?options...? ?data?

	      -mode encode|decode
		     This option has to be present and is always understood by the encoding.

		     For immediate mode the argument value specifies the operation to use.  For an attached encoding it specifies the operation to
		     use  for  writing.  Reading will automatically use the reverse operation.	See section IMMEDIATE versus ATTACHED for explana-
		     tions of these two terms.

		     Beyond the argument values listed above all unique abbreviations are recognized too.

		     Encode converts from arbitrary (most likely binary) data into the described representation, decode does the reverse .

	      -attach channel
		     The presence/absence of this option determines the main operation mode of the transformation.

		     If present the transformation will be stacked onto the channel whose handle was given to the option and run in attached mode.
		     More about this in section IMMEDIATE versus ATTACHED.

		     If  the option is absent the transformation is used in immediate mode and the options listed below are recognized. More about
		     this in section IMMEDIATE versus ATTACHED.

	      -in channel
		     This options is legal if and only if the transformation is used in immediate mode. It provides the handle of the channel  the
		     data to transform has to be read from.

		     If  the  transformation is in immediate mode and this option is absent the data to transform is expected as the last argument
		     to the transformation.

	      -out channel
		     This options is legal if and only if the transformation is used in immediate mode. It provides the handle of the channel  the
		     generated transformation result is written to.

		     If the transformation is in immediate mode and this option is absent the generated data is returned as the result of the com-
		     mand itself.

IMMEDIATE VERSUS ATTACHED
       The transformation distinguishes between two main ways of using it. These are the immediate and attached operation modes.

       For the attached mode the option -attach is used to associate the transformation with an existing channel. During the execution of the com-
       mand  no  transformation  is performed, instead the channel is changed in such a way, that from then on all data written to or read from it
       passes through the transformation and is modified by it according to the definition above.  This attachment can be revoked by executing the
       command unstack for the chosen channel. This is the only way to do this at the Tcl level.

       In  the second mode, which can be detected by the absence of option -attach, the transformation immediately takes data from either its com-
       mandline or a channel, transforms it, and returns the result either as result of the command, or writes it into a  channel.   The  mode	is
       named after the immediate nature of its execution.

       Where  the  data  is taken from, and delivered to, is governed by the presence and absence of the options -in and -out.	It should be noted
       that this ability to immediately read from and/or write to a channel is an historic artifact which was introduced at the beginning of Trf's
       life  when  Tcl	version 7.6 was current as this and earlier versions have trouble to deal with  characters embedded into either input or
       output.

SEE ALSO
       ascii85, base64, bin, hex, oct, otp_words, quoted-printable, trf-intro, uuencode

KEYWORDS
       bin, encoding, hex, oct

COPYRIGHT
       Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net>

Trf transformer commands					       2.1.3								 oct(3trf)
All times are GMT -4. The time now is 04:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy