I am working with a list that contains a large number of files listed by their absolute path. I am trying to determine a way to delete the file name at the end of each line, therefore leaving just the directory path. For example, I'd like to go from:
to
I remember that there is a simply command that accomplishes this, but I can't remember what it is for the life of me. Thanks for any assistance that can be provided.
-Omni
Last edited by Franklin52; 09-20-2012 at 04:44 AM..
Reason: Please use code tags for data and code samples
I have a text file with rows of information (it is basically a ls command information(o/p from ls command))
I need to remove the lines ending with a .cnt extension and keep the lines ending with .zip extension, how to accomplish this.
I also only need the date,size and name of the file from every... (2 Replies)
Hi, I have multiple large files which consist of the below format:
I am trying to write an awk or sed script to remove all occurrences of the 00 record except the first and remove all of the 80 records except the last one.
Any help would be greatly appreciated. (10 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Hi,
I have numerous files which have data in the following format
A|B|123.|Mr.|45.66|33|zz
L|16.|33.45|AC.|45.
I want to remove decimal point only if it is last character in a number.
O/p should be
A|B|123|Mr.|45.66|33|zz
L|16|33.45|AC.|45
I tried this
sed -e 's/.|/|/g'
Problem... (6 Replies)
Hi all,
Is there other way to Add text at start and ending of every line?
here my script:
cat file.txt |awk '{print "<p align=\"justify\">"$0"</p>"}'
but the problem they put including white spaces, I only need those line have a sentence or text not an skip all have empty string or have... (7 Replies)
Hello,
Here is my text data excerpted from the webpage:
input
My target is to get:
What i tried is:
sed 's/.*\(connector\)/1/' input > output
but all characters coming before the word "connector" are deleted which is not good for me.
My question: (9 Replies)
Hello experts,
I have a text file with lot of curly brackets (both opening { & closing } ). I need to delete them alongwith the text between opening & closing brackets' pair.
For ex: Input:-
59. Rh1 Qe4 {(Qf5-e4 Qd8-g8+ Kg6-f5
Qg8-h7+ Kf5-e5 Qh7-e7+ Ke5-f5 Qe7-d7+ Qe4-e6 Qd7-h7+ Qe6-g6... (6 Replies)
I have a file of a content like this:
abc_bla -def 800
abc_bla -def 802
abc_bla -def 804
abc_bla -def 806
abc_bla -def 808
abc_bla -def 810
abc_bla -def 812
abc_bla -def 814
...
abc_bla -def 898
abc_bla -def 900
abc_bla -def 902
abc_bla -def 904
...
abc_bla -def 990
abc_bla -def... (7 Replies)
Discussion started by: maya3
7 Replies
LEARN ABOUT ULTRIX
kits
kits(1) General Commands Manual kits(1)Name
kits - generate setld format distribution kits
Syntax
/usr/sys/dist/kits key-file input-path output-path [ subset... ]
Description
The command produces subset images, inventories, and control files for an installation using the command. You need to know the key file
which describes the product to be built, a hierarchy from which the component files to be kitted are to be taken, and a destination direc-
tory into which the kit information is to be placed.
The command produces a subset image and a .image file in the output-path directory for each subset. In the instctrl subdirectory of output-
path, produces an inventory file and a control file. Any subset control program for the subset is transferred to output-path/instctrl. An
instctrl directory is created if none existed.
Arguments
key-file The path name of the manufacturing key file which describes the product to be kitted. Unless optional subset arguments are
specified, all subsets listed in the descriptor section of the key-file are kitted.
input-path The path name which specifies the top of a hierarchy of files. This hierarchy contains the files which are to be kitted into
subsets.
output-path The name of the directory to be used to store the subset image and data files produced by the command.
subset... The names of individual subsets can be specified by optionally listing them on the command line. If they are specified, only
those subsets will be kitted. The program assumes that all other subsets for the product have been kitted and that their
images are in the directory specified by output-path. The key file specified must contain descriptors for each of the
optional named subsets.
Restrictions
Any subset control programs to be provided with the kit must be located in a directory scps in the working directory where the program is
invoked. If no subset control program is found for a subset, an empty one is created.
Examples
The following example shows the command used to produce a kit using key file ULT400.k in the current directory to package files from the
hierarchy /var/kits/input and place the results in /var/kits/output.
kits ULT400.k /var/kits/input /var/kits/output
The next example shows the same usage, but specifies that only the ULTACCT400 subset is to be created.
kits ULT400.k /var/kits/input /var/kits/output ULTACCT400
Diagnostics
kits: key-file not found
The program was unable to find the key-file specified on the command line.
kits: input-path not found
The program was unable to find the specified input-path.
kits: output-path not found
The program was unable to find the specified output-path.
kits: cannot create instctrl directory.
The program cannot create an instctrl directory under output-path. Check that the user has write permission to output-path.
kits: key-file format error
One of the NAME, CODE, VERS, MI or ROOT values in the specified key-file is either missing or has a null value.
Inventory file pathname not found
The master inventory file pathname specified in the MI entry of the key-file cannot be found. Verify that the pathname is accessible from
the current directory.
Generating media creation information...failed.
There are no records in the master inventory file for a subset which is being kitted. Check the master inventory file for correctness of
content and format.
No such subset in key-file subset subset
A subset name specified on the command line does not have a descriptor line in the key-file. Check the spelling of the subset name on the
command line. Check the contents of the key-file.
compression failed. status = status
The compression option was specified in the key-file and an attempt to compress a subset failed. This should not happen. Run the program
once more.
Files
temporary files.
log of subset packaging activity
See Alsoinvcutter(1), tarsets(1), stl_comp(5), stl_ctrl(5), stl_image(5), stl_key(5), stl_mi(5), stl_scp(5), setld(8)
Guide to Preparing Software for Distribution on ULTRIX Systems
kits(1)