03-05-2013
Stat value changes
Die to what all operations, the "Modify" and "Change" values of stat output changes for a file.
I found, during editing a file, Change and Modify alters. When chmod'ing Change alters, while Modify doesnot alters. Is there more situations where these changes?
10 More Discussions You Might Find Interesting
1. Programming
Hi all,
I can not understand why my stat() function fails all the time when function tries to go recursevly. Someone suggested that it might be poiter problem. Please, look up my code at: www.donnelly.cc.ks.us/readdir_test.c. How can i solve this problem? Any suggestion are welcome!
Thank you... (3 Replies)
Discussion started by: solvman
3 Replies
2. UNIX for Dummies Questions & Answers
Hi! I ran into a problem with a job I'm running. All it is doing is a "touch" on a filename. However, when I ran the job, it error'd out and got the message 'cannot stat'. When I restarted the job (making no changes) it worked just fine. Anyone know what this means? (1 Reply)
Discussion started by: lgardner
1 Replies
3. UNIX for Advanced & Expert Users
the output of stat command is
Size: 238 Blocks: 8 IO Block: 4096 regular file
Device: 80ah/2058d Inode: 736783 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 500/ gajju) Gid: ( 500/ gajju)
Access: 2008-09-08 20:00:15.000000000 +0530
Modify: 2008-09-08... (6 Replies)
Discussion started by: gajju
6 Replies
4. Programming
From reading various articles on the net, I know stat() is used on files to get things like permissions, sizes etc... As a folder is a special type of file in Unix, I assumed that stat() could work on it as well as any general file.
However, from running my program, perror() reported that the... (3 Replies)
Discussion started by: JamesGoh
3 Replies
5. Solaris
JoeyG's note in the following thread got me thinking about using stat more often in file operations. I've only ever used it within perl - didn't even realize there was a commandline version of it.... (3 Replies)
Discussion started by: Smiling Dragon
3 Replies
6. Shell Programming and Scripting
If i do ls -l i get the result rwx-rw-r ...... ............... file.
How can i get the result in octal format.
All other output will be the same as ls -l shows.
The rwx-rw-r would be like 755 etc. (7 Replies)
Discussion started by: cola
7 Replies
7. Shell Programming and Scripting
Hello everyone,
I need some help on a perl script. The script is to open a dir and print out the date of last modification on all files. I'm been trying this code but it doesn't work.
use File::stat;
open (D,"$ARGV") or die "Can't open\n";
while (defined ($file = readdir D))
{
next... (3 Replies)
Discussion started by: new bie
3 Replies
8. UNIX for Dummies Questions & Answers
hi guys
i got confused about stat output
stat manual says
File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
when i use stat command for passwd file it says
~#stat /etc/passwd File: `/etc/passwd' Size: 999 Blocks: 8 IO... (4 Replies)
Discussion started by: mhs
4 Replies
9. UNIX for Dummies Questions & Answers
i know this command does not exist in solaris. however, i read somewhere on this forum that basically everything the stat command provides in other oses can be obtained in solaris using the ls command.
i've searched the forum for a while now and i cant find the thread. does anyone know about... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. UNIX for Dummies Questions & Answers
Hi Experts,
I am here with very simple request:
#!bin/bash
a=`stat -c %y log1.csv`
echo $a
and this stat command returning value as
2013-08-11 05:42:10.000000000 -0400:
But I want to see in mm/dd/yyyy format?
any help is highly appreciated thank you
---------- Post... (9 Replies)
Discussion started by: parpaa
9 Replies
LEARN ABOUT DEBIAN
img2txt
img2txt(1) General Commands Manual img2txt(1)
NAME
img2txt - convert images to various text-based coloured files
SYNOPSIS
img2txt [ -W width ] [ -H height ] [ -x font-width ] [ -y font-height ]
[ -b brightness ] [ -c contrast ] [ -g gamma ]
[ -d dither ] [ -f format ] FILE
DESCRIPTION
img2txt converts images to colour ASCII characters and outputs them to text-based coloured files.
img2txt can load the most widespread image formats: PNG, JPEG, GIF, PNG, BMP etc (see NOTES for details). By default the output text is 60
columns wide, and the line count is computed accordingly to respect aspect ratio of original file. The default output format is standard
ANSI coloured text.
OPTIONS
-W, --width=<width>
Change output column count. If not given, the default is set to 60.
-H, --height=<height>
Change output line count. If not given, the height is computed to match correct aspect ratio.
-x, --font-width=<width>
Change output font width. If not given, the default is set to 6. This value will be used for computing aspect ratio.
-y, --font-height=<height>
Change output font height. If not given, the default is set to 10. This value will be used for computing aspect ratio.
-b, --brightness=<brightness>
Change image brightness. Default to 1.0.
-c, --contrast=<contrast>
Change image contrast. Default to 1.0.
-g, --gamma=<gamma>
Change image gamma. Default to 1.0.
-d, --dither=<dither>
Change dithering algorithm. This can be one of the following (default to fstein) :
none : Nearest color
ordered2 : Ordered 2x2
ordered4 : Ordered 4x4
ordered8 : Ordered 8x8
random : Random
fstein : Floyd Steinberg
-f, --format=<format>
Change output format. This can be one of the following (default to ansi) :
ansi : coloured ANSI
caca : internal libcaca format
utf8 : UTF8 with CR
utf8cr : UTF8 with CRLF (MS Windows)
html : HTML with CSS and DIV support
html3 : Pure HTML3 with tables
irc : IRC with ctrl-k codes
bbfr : BBCode (French)
ps : Postscript
svg : Scalable Vector Graphics
tga : Targa Image
-h, --help
Display help message and exit.
-v, --version
Display version of the program and exit.
EXAMPLES
img2txt hello.jpg > hello.ans
img2txt --width=40 --format=svg hello.jpg > tinyhello.svg
NOTES
Setting both column and line count (using --width and --height) will let you choose the exact output size without taking aspect ratio in
account.
You must compile libcaca package with support of Imlib2 to be able to load a wide variety of image formats. Otherwise you will only be
able to load regular BMP files.
SEE ALSO
cacaview(1)
AUTHOR
This manual page was written by Sam Hocevar <sam@hocevar.net> and Jean-Yves Lamoureux <jylam@lnxscene.org>.
libcaca 2007-11-07 img2txt(1)