05-08-2012
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in
this forum under
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
If you did post homework in the main forums, please review the
guidelines for posting homework and repost.
Thank You.
The UNIX and Linux Forums.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Discussion started by: jyotib
11 Replies
2. Shell Programming and Scripting
I have to write a shell script which can delete all the files and directories recursively inside the specified directory but should not delete the specified directory.
Please some body help me in writing the script. (3 Replies)
Discussion started by: deepthi.s
3 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to organize my MB Pro by moving all my jpeg files to a single folder from the desktop. There are some on the desktop that are not in any folder. I was at the command line and typed
mv *.jpg "Jpeg files"
but it only moved the files that were on the desktop, not any of the ones that... (3 Replies)
Discussion started by: Straitsfan
3 Replies
4. Shell Programming and Scripting
Hi Everyone!
Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file.
Any ideas?
Thank you! (1 Reply)
Discussion started by: DanTheMan
1 Replies
5. Solaris
Display the number of files in a directory and recursively in each subdirectory
To look something like below, for example
/var 35
/var/tmp 56
/var/adm 46Any ideas how can we do this?
Got a sun cluser global mount point which takes ages to mount everytime, need to understand... (5 Replies)
Discussion started by: jakerock
5 Replies
6. Shell Programming and Scripting
accidentally i have changed ownership of a directory,subdirectory and files wil below command. I want to the change ownership back as same as in same directory on another server. How can i do it?
chown -R user:group /u01
is there any simple script? it is really an urgent need.. (2 Replies)
Discussion started by: johnveslin
2 Replies
7. Shell Programming and Scripting
I want to list files that end with .c in the direct subdirectory of the current directory. I have tried the following command:
find ./ -mindepth 2 -maxdepth 2 -name "*.c"
Is that right? Or is there any easier way to handle that problem?
Another problem is that I want to grep in a file to find... (5 Replies)
Discussion started by: Ray Sun
5 Replies
8. Shell Programming and Scripting
I used rm * and it deleted the files in the directory but gives and error message for unsuccessful subdirectory deletion.
"rm: cannot remove 'DirectoryName': Is a directory"
I dont want to explicitly get the above error.
What are the modifications I have to do in the rm command? (3 Replies)
Discussion started by: duplicate
3 Replies
9. Shell Programming and Scripting
I love the -newerct flag for the Cygwin find command on windows.
Can I use "/usr/bin/find . -newerct '3 hours ago'" to conditionally copy a directory tree so that only the files in the directory tree that are younger than 3 hours are copied to my destination directory such that the directory... (4 Replies)
Discussion started by: siegfried
4 Replies
10. Shell Programming and Scripting
I need to copy a complete directory structure into a new location. But I want to have all files copied into one directory and leave out the directory structure. So all files must be placed in one directory. (4 Replies)
Discussion started by: ReneVL
4 Replies
genufi(8) System Manager's Manual genufi(8)
NAME
genufi - Generates a User File Inventory (UFI) file
SYNOPSIS
/usr/bin/genufi
DESCRIPTION
The genufi utility creates a User File Inventory (UFI) file that contains the names of user files created or copied to your system after an
installation. Some of these files reside on file systems that are overwritten during a new installation of the operating system. You must
have superuser privileges to run the genufi utility, and you must invoke the genufi utility from the /usr/.smdb. directory.
To create the UFI file, the genufi utility checks the Master Synchronization Inventory (MSI) file created by the invsync utility to deter-
mine which file systems will be overwritten by a complete installation. The genufi utility searches those file systems for user files and
writes these entries to the UFI file. File systems that remain intact during a new installation of the operating system are not searched.
The genufi utility also filters out certain files and directories that would not commonly be considered for backup. For example, some log
files, installation files, and temporary directories do not need to be restored after a complete installation and are not written to the
UFI file.
The following directories are not included:
/tmp /tmp /usr/.smdb. /usr/sys/HOST /var/adm/smlogs /var/adm/syslog.dated /var/rwho /var/tmp
In the previous list, HOST represents the hostname of the system (such as /usr/sys/BLUTO) on the system named bluto.
The following files are not included:
*/core */*.dummy */.new.. /osf_boot */.profile */.proto.. /var/adm/binary.errlog /var/adm/xdm/xdm-pid */vmcore /*vmunix
Edit the UFI file to remove the entries for files and directories that you do not want to back up. The UFI file is written in the setld
inventory file format. Refer to the stl_inv(4) reference page for more information.
RESTRICTIONS
You must have superuser privileges to run the genufi utility.
You must invoke the genufi utility from the /usr/.smdb. directory.
FILES
Master Synchronization Inventory file User File Inventory file
SEE ALSO
ils(8), invsync(8), udelta(8), udetect(8), updmv(8), usync stl_inv(4)
genufi(8)