11-07-2007
Error while running the script
hi,
When i run the code given by you it renames all files irrespective of .bak extension like
before:
student.txt
after code is run
--------------------
student.txt.bak
this is same for all other files including .bak file
i.e if a file exists with name tst.bak
after the code is run it is made as tst.bak.bak.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Can somebody PLEASE help me.
Suppose I want to find a file which has largest no of bytes in a particular directory, How do i do that.
ls -s will give the size of Blocks.
But I want the largest sized file and in bytes or KB OR MB.
tHANKS IN advanvce.
Bye
Rooh
:( (1 Reply)
Discussion started by: rooh
1 Replies
2. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
3. UNIX for Advanced & Expert Users
Hi in my shell script I have to do this
1. there is a file called testing.txt in /home/report directory
If the file size is 0(zero) and date is today's date, then I have to print
"Successful" else "Failed".
2. There is a file called number.txt which will have text only one line like this... (10 Replies)
Discussion started by: gsusarla
10 Replies
4. Shell Programming and Scripting
Hi,
I have to directory
/usr/inbound
-------------
10900.txt
10889.txt
109290202.txt
I need to create inbound directory
and i need to know size of these files one by one
if file size is zero i need to print message like "empty file"
Please help me how to solve this
thanks
krish. (4 Replies)
Discussion started by: kittusri9
4 Replies
5. UNIX for Advanced & Expert Users
Anybody can help
HOW TO FIND THE FILE SIZE IN UNIX (5 Replies)
Discussion started by: lmraochodisetti
5 Replies
6. Shell Programming and Scripting
I have a directory, /local/test/
under this directory is many subdirectories, each subdir has about 70 files, the 70 files are always the same names. I want to print to the screen the size of fileabc.txt in each of the subdirectories. I cannot seem to work with pipe and splats * because there are... (3 Replies)
Discussion started by: ajp7701
3 Replies
7. Shell Programming and Scripting
Hi All...
is the below command be modified in sucha way that i can get the file size along with the name and path of the file
the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also..
find / -name "*.*" -size +100000k
... (3 Replies)
Discussion started by: rpraharaj84
3 Replies
8. UNIX for Dummies Questions & Answers
Is there a way to use the find command to recursively scan directories for files greater than 1Gb in size and print out the directory path and file name only?
Thanks in advance. (6 Replies)
Discussion started by: jimbojames
6 Replies
9. Shell Programming and Scripting
Hai guys,
I am kiran. I created GUI by using Gtk2-Perl. In that GUI I was running 3 shell scripts by using system command and also passing arguments to the shell scripts from GUI script.
In that arguments I can get the path like /home/kiran/pdk/sample/calibre (this is the output of shell... (2 Replies)
Discussion started by: kiran425
2 Replies
10. Shell Programming and Scripting
Hi,
I am trying to find out the original file size of an encrypted file in SunOS.
The file was decrypted with gpg command.
I want to know the size of the orginal file without decrypting it. I am using the below command, but it is not working for big files(more than 1 GB).
gpg --passphrase... (4 Replies)
Discussion started by: vsachan
4 Replies
LEARN ABOUT HPUX
passwd_export
passwd_export(1m) passwd_export(1m)
NAME
passwd_export - Creates local password and group files
SYNOPSIS
passwd_export [-d dir_name] [-m max_entries] [-h[elp]] [-n] [-s] [-v] [-x]
OPTIONS
The name of the directory to store the password, group, and organization files created by passwd_export. If you do not enter a directory
name, the files are stored in the /etc directory. Display help information. Ignore passwd_override and group_override file entries.
Without this option, passwd_export applies the override entries from both files to the local password and group files it creates. The max-
imum number of entries that can be stored in the local files. Sort the local password and group file entries by UNIX number. If you do
not specify this option, the entries are in order as they are retrieved from the registry. Run in verbose mode. Do not create entries for
users with OMIT as their encrypted password in the passwd_override and group_override files. See the passwd_override and group_override
reference pages for further details about omitting users.
DESCRIPTION
The dceshared/bin/passwd_export command creates local password and group files from registry data. These files are used when the network
registry is unavailable and by programs that use the original UNIX passwd and group interfaces instead of the DCE interfaces. Use
passwd_export to keep these local files consistent with the registry database.
When passwd_export runs, it makes backup copies of the current password and group files, if they exist. The files are named, respectively,
passwd.bak and group.bak.
By default, the backups are stored and the new files created in the /etc directory. You can override the default by supplying a directory
name with the -d option.
Running passwd_export
The passwd_export command is commonly run with an entry in /usr/lib/crontab. For example, to update the files every hour, the entry is 0 *
* * * dceshared/bin/passwd_export In large network environments, it is a good idea to stagger the times passwd_export is run.
RELATED INFORMATION
Commands: rgy_edit(1m)
Files: group(5), passwd(5), passwd_override(5), group_override(5)
passwd_export(1m)