Want to generate a .txt file that contains below data in ksh:
HTML Code:
SOURCE=XYZ
FILE_TYPE= META/DAT --generated dynamically if the files 2nd string is meta then META , if 2nd string is dat then DAT
NUM_REC=Will be generated dynamically through the script from the META/DAT file.wc -l?
BYTES= get the no. of bytes from the META/DAT file.wc-c?
DELIMITER=”|”
FLAG=”E”
Is it possible to write a function which will create the file in the above format? Thanks
HI,
I have a file which i catenate and using the fields in the file, I would like to get sqrt of it. I tried to man the function but it normally would need an echo as well as bc.
What I am intending to find out is catenate a file where let say
cat a.txt| awk ' {
t= h*($3+$2);
t=... (7 Replies)
hi.i want to create a bash script called countfiles.sh, that will count the pack of files under the current file that their term satisfy a specific pattern. The script must show the total per file or on the whole.
thank tou (4 Replies)
Hey guy,
how to make bash script to create foo.txt file and add current date into file content and that file always append.
example: today the script run and add today date into content foo.txt
and tomorrow the script will run and add tomorrow date in content foo.txt without remove today... (3 Replies)
Hi there, I have a text file with several colums separated by "|;#" I need to search the file extracting all columns starting with the value of "1" or "2" saving in a separate file just the first 7 columns of each row maching the criteria, with replacement of the saparators in the nearly created... (4 Replies)
Hi Guys,
I have file A.txt
File A Data
AK1521
AK2536
AK3164
I want create text file of all data above and write some data on each file.
want Output on below folder
/home/kka/out
AK1521.txt
Hi
Welocme (3 Replies)
Hi,
I need to create a .csv file from information that i have in two different tab delimited .txt file. I just want to select some of the columns of each .txt file and paste them into a .cvs file.
My files look like:
File 1
transcript_id Seq. Description Seq. Length ... (2 Replies)
sinebeep.py
Creating an audio WAVE file called...
beep.wav
...that can be played using almost ANY audio player available.
This simple DEMO snippet of code generates a 1 second sinewave WAVE file. It IS saved inside the CURRENT drawer so that you can find it... ;o)
Note that the... (1 Reply)
Hi, I am complete new to C programming and shell scripting. I just wrote a simple C code to calculate integral using trapezoid rule. I am prompting user to pass me No. of equally spaced points , N , upper and lower limit. My code looks as follows so far:
#include<stdio.h>
#include<string.h>... (2 Replies)
I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error message has some special character. how to escape the special character and insert my data into the... (7 Replies)
Discussion started by: DevAakash
7 Replies
LEARN ABOUT DEBIAN
site-lib
site-lib(5) File Formats Manual site-lib(5)NAME
site-lib - [Location of package directories]
STANDARD LAYOUT
...somewhere in the filesystem hierarchy...
|
site-lib
|
+- (optional) stublibs
+- (optional) postinstall
+- (optional) postremove
|
+- package1
| |
| +- META
| +- archive files
| +- interface definitions
|
+- package2
+
:
:
packageN
DESCRIPTION
Every installation of "findlib" has a default location for package directories, which is normally a directory called "site-lib". The loca-
tion can be set by the configuration variables path (used to look up packages), and destdir (used to install new packages); see find-
lib.conf.
The name of a package is the name of the package directory. For example, if destdir=/usr/local/lib/ocaml/site-lib, the package p will be
installed in the subdirectory /usr/local/lib/ocaml/site-lib/p. This subdirectory must contain the META file and all other files belonging
to the package. Package names must not contain the '.' character.
The variable destdir specifies the directory for new packages. You can only have one such directory at a time; but of course you can change
this directory in findlib.conf. The command ocamlfind install puts new packages into this directory; it is recommended to use this command
for installation because it ensures that the directory layout is right.
For searching packages, findlib uses (only) the variable path which may name several locations to look at.
For systems with DLL support another directory may exist: stublibs. If present, findlib will install DLLs into this directory that is
shared by all packages at the same site-lib location. Findlib remembers which DLL belongs to which package by special files with the suffix
".owner"; e.g. for the DLL "dllpcre.so" there is another file "dllpcre.so.owner" containing the string "pcre", so findlib knows that the
package "pcre" owns this DLL. It is not possible that a DLL is owned by several packages.
If the stublibs directory does not exist, DLLs are installed regularly in the package directories like any other file.
For special needs, a postinstall and/or a postremove script may be installed in the site-lib directory. These scripts are invoked after
installation or removal of a package, respectively.
ALTERNATE LAYOUT
...somewhere in the filesystem hierarchy...
|
site-lib
|
+- (optional) stublibs
+- (optional) postinstall
+- (optional) postremove
|
+- package1
| |
| +- archive files
| +- interface definitions
|
+- package2
+
:
:
: packageN
|
metaregistry
|
+- META.package1
+- META.package2
+
:
META.packageN
This is an alternate directory layout collecting all META files in one directory. You can configure this layout by setting path to the
absolute location of metaregistry. Findlib recognizes that there are META files in this directory and uses them; it is not necessary to
include site-lib into the path.
In order to work, the META files must contain a directory directive pointing to the corresponding package directory that resides below
site-lib.
The command ocamlfind install copes with this layout, too. The variable destdir must contain the absolute location of site-lib, and the
variable metadir must contain the absolute location of metaregistry. Note that ocamlfind install automatically adds a directory directive
to the META file, so you need not do it manually.
User Manual The findlib package manager for OCaml site-lib(5)