Hi
I need some help using shell script to edit a file.
My original file has the following format:
/txt/email/myemail.txt
/txt/email/myemail2.txt
/pdf/email/myemail.pdf
/pdf/email/myemail2.pdf
/doc/email/myemail.doc
/doc/email/myemail2.doc
I need to read each line. If the path is... (3 Replies)
hello,
i want to make a script to search the file contents in my home directory by a given date and output me the line that has the date... (10 Replies)
OK, best is I explain what the operating enviroment is.
Linux, but Motomagx. It is a Linux operated mobile phone, Motorola V8.
I am writting a shell script, but got stuck.
I have to delete the complete content of file 1 in file 2.
I have attached the 2 files.
You can see that the content of... (2 Replies)
Hi,
I have a text file that has a long multi-line db2 CTE query. Now I want to store all the contents of this file (i.e. the entire query) in a shell script variable. I am trying to achieve it by this: query = `cat /Folder/SomeFile.txt` But when I echo the contents of this file by saying echo... (4 Replies)
Hello,
I need to do one thing that my script creates the file
touch release.SPLASH_12_03_00_RC01.txt
Now I want to update that file with some content e.g
splashbuild::SPLASH_12_17_00_RC02.zip
Thanks (1 Reply)
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
Hi Guru's,
I am new to shell scripting. I have a unique requirement:
The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this:
Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end
Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Hi/ Hello all Guru here,
I am trying to create script to remove same content from other file, already tested few idea and found that in unix it is limited to sort and uniq. There is many script for removing duplicate content however to delete all same content is non. Need your help and guide .... (7 Replies)
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
I am new to shell scripting. I am interested how to know how to sort a content of a file using shell scripting.
I've attached the 'Input file' and the 'expected output' to this thread.
Details provided in the expected output file will provide details on how the sort needs to be done.
... (16 Replies)
Discussion started by: nkarthik_mnnit
16 Replies
LEARN ABOUT OSF1
rmfdmn
rmfdmn(8) System Manager's Manual rmfdmn(8)NAME
rmfdmn - removes a file domain
SYNOPSIS
/sbin/rmfdmn [-f] domain
OPTIONS
Turns off the message prompt.
OPERANDS
Specifies the name of an existing file domain.
DESCRIPTION
Use the rmfdmn utility to remove an existing, but unused, file domain and all its filesets from the system.
When you remove a file domain: The file domain and its filesets are destroyed The directory entry for the file domain in the /etc/fdmns
file is deleted AdvFS volumes which were assigned to the file domain are relabeled as unused
Before attempting to remove a file domain, unmount all filesets and clone filesets from the domain using the umount command. If you
attempt to remove a file domain that has mounted filesets or clone filesets, the system does not remove the file domain. Instead, it dis-
plays an error message indicating that a fileset is mounted.
For each file domain you attempt to remove, a prompt similar to the following is displayed: rmfdmn accounts_dmn rmfdmn: remove domain
accounts_dmn? [yes/no]
If you answer n, the file domain remains. If you answer y, it is removed. The default is n, the file domain remains.
The -f option is useful for scripts when you do not want to be queried for each file domain. If you choose the -f option, no message prompt
is displayed. The rmfdmn command operates as if you responded yes to the prompt.
RESTRICTIONS
You must be the root user to use this command.
To remove a domain, all filesets and clone filesets must be unmounted.
The rmfdmn command can leave a partially-removed domain in the /etc/fdmns directory, for example, should there be a system failure during
the remove operation. If this happens, the remnants of the removed domain are put in the /etc/fdmns directory as a file with a name in
this format: rmfdmn.domain_name.processid. If you interrupt the rmfdmn command or there is a system failure during its operation, check
the /etc/fdmns directory for domain names in this format and use the rmfdmn command to delete them.
However, if a partially-removed domain has been in the /etc/fdmns directory for some time, it can be risky to remove it with the rmfdmn
command: the partitions might have been put back into use and deleting them would make them unusable. [The rmfdmn command puts an unused
option in the fstype field of the disk label when it removes disks.]
In this case, use the rm -r command to remove the partially-recovered domain. Unlike the rmfdmn command, the rm command does not alter the
fstype field of the disk label.
EXAMPLES
The following example removes the accounts_dmn file domain. In this example, the accounts_dmn#credit_fs fileset is mounted on the /mnt3
directory and must be unmounted. When the verification prompt for removing the accounts_dmn is displayed, yes is selected. # umount /mnt3
# rmfdmn accounts_dmn # rmfdmn: remove domain accounts_dmn? [yes/no] # rmfdmn: domain accounts_dmn removed
FILES
Contains file domain names and devices.
SEE ALSO mkfdmn(8), advfs(4), showfdmn(8), mount(8)rmfdmn(8)