CENTOS - istat

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat CENTOS - istat
# 8  
Old 11-22-2014
Bug

I see a typo Smilie
Quote:
Originally Posted by brjohnsmith
Code:
LINE=`ls -l --time-style='+%Y %m %d $H:$M' | grep $1`

Quote:
Originally Posted by ongoto
Code:
LINE=`ls -l --time-style='+%Y %m %d %H:%M' | grep $1`

Hope this helps.
# 9  
Old 11-22-2014
Those !@#$%^&*( chars have sharp teeth... Smilie
# 10  
Old 11-24-2014
Hi,

Yes, it worked, I also didnt notice it.

tks.
# 11  
Old 11-24-2014
Br. John,

Line 17of your script has:
Code:
LINE=`ls -l --time-style='+%Y %m %d $H:$M' | grep $1`

Line 19 of ongoto's script has:
Code:
LINE=`ls -l --time-style='+%Y %m %d %H:%M' | grep $1`

Again, the entire script could be simplified to something like:
Code:
ls -l --time-style=%Y%m%d%H%M $1 | awk '{ print $6; print $3; }'

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

RH V Centos

Hi, I have built out a new virtual production environment (VMWare, HA enabled, VMotion... all the bells & whistles) using RHEL5 VM's. I have got another ESX host that I plan to use as a pre-prod environment. To save some costs on RH subs I was thinking about installing this environment... (5 Replies)
Discussion started by: Duffs22
5 Replies

2. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

3. Shell Programming and Scripting

reformat date from istat

I would like to determine if a file is older than a particular date. I found that istat will let me see the date and time of a file older than a year, but I need to change the format. Could anyone help me reformat the following date to a variable (a one liner would be great). Output from istat -... (1 Reply)
Discussion started by: oldman2
1 Replies

4. UNIX for Advanced & Expert Users

istat ??

I got the command : istat filename shows all the file details like owner and group name. But i want to know, who has accessed the file last time. As istat shows the name of owner of that file and name of the group. istat does lots of my work but i want to know who has accessed my file... (2 Replies)
Discussion started by: varungupta
2 Replies

5. UNIX for Advanced & Expert Users

istat ??

I got the command : istat filename shows all the file details like owner and group name. But i want to know, who has accessed the file last time. As istat shows the name of owner of that file and name of the group. istat does lots of my work but i want to know who has accessed my file... (0 Replies)
Discussion started by: varungupta
0 Replies

6. UNIX for Advanced & Expert Users

HP LC2000 has message: istat=0a: LSS_PAR on ha=1 sist0=41

I have a HP Netserver 2000 running SCO UNIX 5.0.6. I get the message: istat=0a: LSS_PAR on ha=1 sist0=41 sist1=00 !!!! dstat =81 on ha=1 has DS_OPC while WAIT DISCONNECT, rp=c014f8co dsp=FD on path=1, newdsp=FD064600 WARNING: Parity Error MSG OUT=00000006 Failed, 1code=80000002 on ha=1 id... (0 Replies)
Discussion started by: dmksh
0 Replies
Login or Register to Ask a Question