Sponsored Content
Top Forums Shell Programming and Scripting Display file date after grepping a string in the file Post 302644973 by neutronscott on Tuesday 22nd of May 2012 09:28:15 PM
Old 05-22-2012
Where do you get 22-May-2012 from Knock1/modemlevelsKnock1.csv12020622 ?

What is your shell and operating system?
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Grepping string from out file

Guys .. Need to pull this highlighted strings irrespective of line numbers & should be echoed . But these strings are from Outfile from different dir. In which way this can be grepped ?? Need an idea http-timeout 120 seconds persistent-timeout 180 seconds host-rewriting on ... (7 Replies)
Discussion started by: raghunsi
7 Replies

3. AIX

Help with looping a file and grepping a string

I have 2 files: fileA and fileB. content of fileA --------------- admin.teacher is in new york; admin.mason is in new york; admin.driver is in new york city; user.trucker is in hartford; admin.developer is in new york state; content of fileB ---------------- admin.teacher is in... (8 Replies)
Discussion started by: lowprofile
8 Replies

4. Shell Programming and Scripting

How to search for file and display by date

I like "ls -ltr". I would like to search for a file in a large directory recursively and and display all the candidates in reverse order. /usr/bin/find . -name \*.txt This works. How do I display the date and sort the file names by the date in reverse order for the entire directory... (1 Reply)
Discussion started by: siegfried
1 Replies

5. HP-UX

find command to display size and date of a file

Hi, The blow code does not yeild any output. find . -name "*.jar" -o -name "*.ksh" -o -name "*.properties" -name "*.war" -o -name "*.ear" -o -name "*.sh" -o -name "*.cfg" -exec ls -l {} \; I wish to print the filename filesize filedate in HP-UX. Can anyone help ? (9 Replies)
Discussion started by: mohtashims
9 Replies

6. Shell Programming and Scripting

Display lines of two date range from syslog file

Hi Guys, I want to display lines from Solaris syslog file but with 2 dates range. I have some similar solution (https://www.unix.com/shell-programming-scripting/39293-grep-log-file-between-2-dates-4.html) which works fine but as you know syslog has different date format (Jan 22) so this is not... (1 Reply)
Discussion started by: prashant2507198
1 Replies

7. Shell Programming and Scripting

Extract count of string in all files and display on date wise

Hi All, hope you all are doing well! I kindly ask you for shell scripting help, here is the description: I have huge number of files shown below on date wise, which contains different strings(numbers you can say) including 505001 and 602001. ... (14 Replies)
Discussion started by: VasuKukkapalli
14 Replies

8. AIX

How do I display a file's last modified date?

I'm using a script that I need to get a file's "last modified date" in a format like 01:51:14 PM. We are running on AIX 6.1.0.0. I can't seem to find the right command parameters. Help! (4 Replies)
Discussion started by: mattadams1983
4 Replies

9. UNIX for Beginners Questions & Answers

Search a string and display its location on the entire string and make a text file

I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file. Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies

10. Shell Programming and Scripting

ksh Script, Reading A File, Grepping A File Contents In Another File

So I'm stumped. First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes. I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
dclock(1)						      General Commands Manual							 dclock(1)

NAME
dclock - digital clock SYNOPSIS
dclock [ -cmjd ] [ -sslant ] [ -tthickness ] [ -frate ] DESCRIPTION
Dclock displays a scalable digital clock. The time is updated from the local host clock every minute as a background process. The current date is displayed across the top of the window in the format Sat Aug 16 1986 (or some subset of such if there's not enough room). Options to control the clock's appearance, size and placement are as follows: -c Display in 12-hour format ("civilian" time) -- the default. -m Display in 24-hour format ("military" time). -j "John's flag." Puts a tail on the digit `9'. -d Do not display the current date across the top of the clock view. -b Display a border (horizontal line) between the date string and the time display. -T Do not display the Time in the clock view (leaving just the date). -sslant Set the slant of the digits. A slant of 100 (the maximum) corresponds to a slant of one digit width. A slant of 0 (the minimum) is vertical. Default is -s30. A special form is -s, which is equivalent to -s0. -tthickness Set the thickness of the digit segments. Allowable values are between 5 and 25. A thickness of 25 results in segments which are one quarter (25%) of the digit width. Default is -t15. -frate Set the rate at which the segments fade when the time changes. A value of 0 is fastest and 4 is slowest. Default is -f4. A special form is -f, which is equivalent to -f0. To exit dclock, type a `q' in the window. dclock(1)
All times are GMT -4. The time now is 07:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy