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
rmfset
rmfset(8) System Manager's Manual rmfset(8)NAME
rmfset - Removes a fileset or a clone fileset from an AdvFS file domain
SYNOPSIS
/sbin/rmfset [-f] domain fileset
OPTIONS
Turns off the message prompt.
OPERANDS
Specifies the name of an existing AdvFS file domain. Specifies the name of the fileset to be removed from the specified file domain.
DESCRIPTION
The rmfset command removes a fileset (and all of its files) from an existing AdvFS file domain. Unless you use the -f option, you are
prompted with the following request before a fileset is removed: rmfset: remove fileset <filesetname>? [y/n]
If you answer n, the fileset is not removed. If you answer y, the fileset is removed.
The -f option is useful for scripts or when you do not want to be queried about each fileset. If you choose the -f option, no prompts are
displayed. The rmfset command operates as if you responded yes to the prompt.
Unmount a fileset before removing it with the rmfset command.
RESTRICTIONS
A fileset or clone fileset cannot be removed with this command if it is mounted.
A fileset that has a clone fileset cannot be removed with this command until the clone fileset has been removed.
You must be the root user to use this command. An rmfset operation can hang if you attempt to remove a fileset and the target AdvFS domain
is experiencing heavy I/O. To work around the restriction, avoid using the utility on busy AdvFS domains.
EXAMPLES
The following example deletes the test_fset fileset from the test_domain file domain. In this example, the test_fset fileset is mounted on
the /mnt3 directory: # umount /mnt3 # rmfset test_domain test_fset rmfset: remove fileset test_fset? [y/n] y #
SEE ALSO
Commands: mkfset(8), showfdmn(8), showfsets(8), mount(8)
Functions: advfs_rmfset(3)
File Formats: advfs(4)rmfset(8)