08-12-2009
Quote:
Originally Posted by
rajwinder
Is there any way to find "Number of files" that exists on my solaris parition in the starting of 2009 year ?
I know ctime or mtime will not help and unix wouldnt store creation time.
But ctime
is the creation time. <-- Edit: Disregard this, it's not true, as pointed out by jlliagre
Quote:
Originally Posted by
rajwinder
Only hope i can see ( and i am not sure if that will help ) is that my system is up from last 2 years without reboot so any place in /proc where i can find this or any other idea ?
If you are asking how to find out how many files existed on the system on Jan 1st 2009, there's no way to tell unless you ran a backup on that day.
Or are you asking something else?
Last edited by Smiling Dragon; 08-13-2009 at 03:38 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am new to unix shell scripting and I am trying to append batch number that comes in Trailer record to the detailed record.
TR|20080312|22881 |000000005|20080319|2202
LN|20080312|077777722220 |0000100000017|ABS
LN|20080312|000799439326 |0000709943937|AA
TR|20080313|22897 ... (6 Replies)
Discussion started by: kiran_418
6 Replies
2. Shell Programming and Scripting
I have a file with contents similar to this.
abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298
I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Discussion started by: grajp002
1 Replies
3. Shell Programming and Scripting
Hi,
I want to do the following:
Extract some lines from different files and copy them into one file, with the first column being the line number. I do this with
cat file1 file2 file3 |grep 'xxx' |nl > output.file
Works fine. But if I want to add data of interest from a fourth file to the... (2 Replies)
Discussion started by: paracetamol
2 Replies
4. Shell Programming and Scripting
Hi Power User,
I'm trying to compute this kind of text file format:
file1:
jakarta 100 150
jakarta 170 210
beijing 220 250
beijing 260 280
beijing 290 320
new_york 330 350
new_york 370 420
tokyo 430 470
tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies
5. Shell Programming and Scripting
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies
6. Shell Programming and Scripting
Hi anyone can help?
How to calculate total number of weeks from a specify date, for example, 01 Jan 2012.
Thx! (2 Replies)
Discussion started by: rayray2013
2 Replies
7. Shell Programming and Scripting
Hi All,
how can i delete files from my Unix directory on the basis of year, i have files from 2001 to till 2014, but from their, i have to delete only 2013 file.Below is my file name
rwxrwxrwx 1 guopt users 5169 Jul 12 00:30 grt592_20130712003000.SAP
Thanks
Kki (2 Replies)
Discussion started by: kki
2 Replies
8. Shell Programming and Scripting
Hi All,
I need to merge few files as belowABC_NYFWFX.txt
ABC_NYFQTFX.txt
ABC_NYFMAFX.txt
ABC_NYFAVFX.txt
ABC_CYFWFX.txt
ABC_CYFQTFX.txt
ABC_CYFMAFX.txt
ABC_CYFAVFX.txt
ABC_CYBWFX.txt
ABC_NYFWFX.txt & ABC_CYFWFX.txt should be merged into a single file and name should be... (3 Replies)
Discussion started by: Hypesslearner
3 Replies
9. UNIX for Beginners Questions & Answers
Hi Folks -
I'm looking for the best way to to increment fiscal weeks - allow me to explain.
At my one client, 10/01/17 was the beginning if year fiscal year 2018.
Each week, I need to manage a unique set of variable that are updated in my application - they are called substitution variables.... (31 Replies)
Discussion started by: SIMMS7400
31 Replies
10. Shell Programming and Scripting
Thanks for RudiC for his extraordinary help on organizing files in a batch of 10 using below code.
FL=($(ls));
for ((i=0;i<=${#FL};i++)); do
for j in ${FL:$i:10};
do
$batch ${j} ${j}.txt
done;
echo "Pausing for next iteration";
echo... (6 Replies)
Discussion started by: busyboy
6 Replies
LEARN ABOUT CENTOS
pmctime
PMCTIME(3) Library Functions Manual PMCTIME(3)
NAME
pmCtime - format the date and time for a reporting timezone
C SYNOPSIS
#include <time.h>
#include <pcp/pmapi.h>
char *pmCtime(const time_t *clock, char *buf);
cc ... -lpcp
DESCRIPTION
pmCtime is very similar to ctime(3), except the timezone used is the current ``reporting timezone'' (rather than the default TZ environment
variable scheme), and the result is returned into a caller-declared buffer (rather than a private buffer).
Like ctime(3) the time to be converted is passed via clock, and the result in buf is fixed width fields in the format:
Fri Sep 13 00:00:00 1986
The result buffer buf must be at least 26 bytes long, and no attempt is made to check this. pmCtime returns buf as the value of the func-
tion.
The default current reporting timezone is as defined by the TZ environment variable, so pmCtime and ctime(3) will initially produce similar
encoding of the date and time.
Use pmNewZone(3), pmNewContextZone(3) or pmUseZone(3) to establish a new current reporting timezone that will effect pmCtime but not
ctime(3).
SEE ALSO
ctime(3), PMAPI(3), pmLocaltime(3), pmNewContextZone(3), pmNewZone(3) and pmUseZone(3).
Performance Co-Pilot PCP PMCTIME(3)