Sponsored Content
Top Forums Shell Programming and Scripting different versions of the same file. Post 18133 by krkc4u on Monday 25th of March 2002 01:09:07 AM
Old 03-25-2002
List of Superusers

Hai

Unix tells us the list of users who logged on when you give the command "who". It also gives the list of super users also because a super user is nothing but a simple user but he will have more powers.

Well iam also a learning user of Unix. Hope this is correct answer

have a nice time
kalyan
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

different versions?

can someone tell me a shell-script to convert an older version of a file with the current one? (1 Reply)
Discussion started by: deeptia
1 Replies

2. UNIX for Dummies Questions & Answers

File Versions (GDG)

Hi There, This is more a question for the 'mainframers' of old. I need a control structure (AIX) very similar to "GDG" files (Generation data group) as found on OS/390 to control versions of files. Specific files have specific needs, some need to be kept for 5 versions, some for 30 and... (0 Replies)
Discussion started by: Bizcut
0 Replies

3. UNIX for Advanced & Expert Users

RCS - Find difference between 2 different versions of a file

Hi, I have a c file in my repository. We are using RCS(Revision Control System) to control and manage the versions. I need to find 1. Difference between the current version with a different version 2. Difference between any two different versions of a file. Ex Difference between 1.14 and... (1 Reply)
Discussion started by: kelangovan
1 Replies

4. Shell Programming and Scripting

ftp a file after checking the versions not greater then 8 in archive directory

Hi , I want to write a FTP Script which checks the No of Vesions of the files in Archive Dir and if count >= 8 Delete the oldest file from the Archive Dir and if the count is <= 8 Move the file to the Archive Dir with a CurrentDate concatenation and FTP the file to the FTP directory and send... (1 Reply)
Discussion started by: kailash.jadhav
1 Replies

5. Shell Programming and Scripting

Script to maintain file versions

I am developing a script to maintain 'n' number of versions of a file. The script will take a filename as a parameter and the number of versions to maintain. This basically does something like a FIFO. Here is what I developed. But something is not right. I have attached the script. Can u pls help... (2 Replies)
Discussion started by: vskr72
2 Replies

6. Shell Programming and Scripting

Remove file versions

Hi All, I have a difficult problem (at least for me) and need your help. Situation is like this, there are a lot of files in a lot of folders and some of them files are just versions of the same file saved by careful users . Once every few months I have to clean up and keep the last version of... (2 Replies)
Discussion started by: mihaicris
2 Replies

7. Shell Programming and Scripting

Needed script to generate versions for a file and maintian them in a folder

need a shell script for the following requirement how to generate 5 versions of a file in a folder after generating them in a folder i want to maintian the past 2 versions of the file in the folder and i have to delete the the remaining. for example if i ran the script today and tommorow... (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies

8. Shell Programming and Scripting

Merge different versions of file in UNIX

Hello Experts, I want to merge my local file (File1) with the changes in remote server (File1). For Example: File1 contents are... (file @ remote server) ABC <blankLine> GHI <EOF> I, as USER#1, have updated the contents of File1 in my local as... ABC DEFGhi <blankLine> JKL... (2 Replies)
Discussion started by: AjMyTechGroup
2 Replies

9. Shell Programming and Scripting

Retaining file versions based on input parameter

Hello Forum. I have the following files in one directory: abc_july01_2013.txt abc_july02_2013.txt abc_july03_2013.txt abc_july04_2013.txt abc_july05_2013.txt abc_july06_2013.txt abc_july07_2013.txt abc_july08_2013.txt If I want to be able to keep the last 5 versions of the file and... (4 Replies)
Discussion started by: pchang
4 Replies

10. Shell Programming and Scripting

Help with korn shell script to get the latest file versions in a directory

I want to write a korn shell script to get the latest three versions for a file in the directory having lot of files with various versions (files with prefix as same but time stamp as suffix) and compress it and at the same time have to remove the remaining versions of the file (other than latest... (4 Replies)
Discussion started by: maheshbabu
4 Replies
statvfs(2)							System Calls Manual							statvfs(2)

NAME
statvfs, fstatvfs - get file system information SYNOPSIS
DESCRIPTION
returns information about a mounted file system. returns similar information about an open file. The parameters for the and functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a structure, which is where the file system status information is stored. fildes is a file descriptor for an open file, which is created with the successful completion of an or system call (see open(2), creat(2), dup(2), fcntl(2), or pipe(2)). The structure contains the following members: fsblkcnt_t f_blocks; /* total blocks of f_frsize on file system */ fsblkcnt_t f_bfree; /* free blocks */ fsblkcnt_t f_bavail; /* blocks available to non-superusers or users without the LIMIT privilege */ fsfilcnt_t f_files; /* total file nodes in file system */ fsfilcnt_t f_ffree; /* free file nodes in file system */ fsfilcnt_t f_favail; /* file nodes available to non-superusers or users without the LIMIT privilege */ ulong f_bsize; /* preferred file system block size */ ulong f_frsize; /* fundamental file system block size */ ulong f_size; /* see note below */ ulong f_fsid; /* file system ID for file system */ /* type; see sysfs(2) */ char f_basetype[FSTYPSZ]; /* file system type name is */ /* null-terminated */ ulong f_flag; /* bit mask of flags */ ulong f_namemax /* maximum file name length */ char f_fstr[32]; /* file system specific string */ time_t f_time; /* Last time file system was written */ The field f_size contains the size of file system in units. Note that this field is not part of the standard POSIX definition of When a 32-bit application uses with a large file system, f_size will top out at rather than return an error. Use f_blocks instead. The field f_basetype contains a null-terminated file-system-type name. The constant is defined in the header file The following flags can be returned in the f_flag field: File system is enabled for large files. File system is read-only. File system does not support and semantics. File system is exported (NFS). User quotas enabled on this file system. Group quotas enabled on this file system. Security Restrictions The field is the number of blocks available to non-superusers or users without the privilege. The field is the number of file nodes avail- able to non-superusers or users without the privilege. See privileges(5) for more information about privileged access on systems that sup- port fine-grained privileges. RETURN VALUE
and return 0 upon successful completion; otherwise, they return -1 and set to indicate the error. ERRORS
If fails, is set to one of the following values: Search permission is denied for a component of the path prefix. Too many symbolic links are encountered during path-name translation. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. The named file does not exist (for example, path is null or a component of path does not exist). A component of the path prefix is not a directory. If fails, is set to the following value: fildes is not a valid open file descriptor. When both and fail, is set to one of the following values: buf points to an invalid address. An I/O error occurred while reading from or writing to the file system. Result would overflow one or more fields of the struct. SEE ALSO
df(1M), fstatfs(2), fstatvfs64(2), quotactl(2), stat(2), statfs(2), statvfs64(2), sysfs(2), ustat(2), privileges(5). statvfs(2)
All times are GMT -4. The time now is 06:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy