How would I go about storing multiple file paths in a directory that begin like: 20080402*
and run a loop that reads each line of each file thats in a given directory. So far this is what I have:
#!/bin/ksh
echo "ENTER Reprint Date (YYYYMMDD): "
read ReprintDate
echo ""... (1 Reply)
Hi guys,
is there are way to substitute the content of certain line in the file by another entry if line number is available?
For example, I have a variable A="HCMLPBBG" and a file MYFILE.
I need to substitute entry on line 18168 of MYFILE with the value of the variable "A".
Is there a way to... (1 Reply)
Hi All
I have one query,say i have a requirement like the below code should be
move to diffent files whose maximum lines can be of 10 lines.Say in the below example,it consist of 14 lines.
This should be moved logically using the data in the fisrt coloumn to file1 and file 2.The data of first... (2 Replies)
Hi all,
I have 20 files (file001.txt upto file020.txt) and I want to read them from 3rd line upto end of file (line 1002). But in the final file they should appear to start from line 1.
I need following kind of output in a single file:
Filename Line number 2ndcolumn 4thcolumn
I... (14 Replies)
Hi,
I have multiple files having many lines like as bvelow:
file Name a.txt
abc def
def xyz
123 5678
file Name b.txt
abc def
def xyz
123 5678
I would like to append files in the below format to a new file:
file Name c.txt (7 Replies)
Greetings experts,
Have 2 input files, of which 1 file has 1 record per line; in 2nd file, multiple lines constitute 1 record; Hence declared the RS=";"
Now in the first file which ends with ";" at each line of the line; But \nis also being considered as part of the data due to which
I am... (1 Reply)
Dear All,
I would like to instantiate a "pattern file" substituting "variable name" by their content.
Saying, we have:
1/ a "pattern file" containing different "variable name", the first character of the "variable name" is "@":
$ cat TPTModl.txt
DEFINE... (12 Replies)
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Team,
I want to change below parameter in all the files in a directory,
Check for HOSTNAME=`hostname`
Change to HOSTNAME=localhost
And I tried below but, its not working ☹
find /tmp -type f -exec sed 's/"HOSTNAME\=\`hostname\`"/"HOSTNAME\=localhost/g'"
Help me if I am missing... (6 Replies)
Discussion started by: natraj005
6 Replies
LEARN ABOUT DEBIAN
relaytool
RELAYTOOL(1) Listaller Project RELAYTOOL(1)NAME
relaytool - Generate a file that can be used instead of linking directly against a library
SYNOPSIS
relaytool [OPTION ...] [LINKER COMMAND ...]
DESCRIPTION
This manual page documents briefly the relaytool command.
relaytool is a program to provide a more convenient interface to dlopen/dlsym. It lets you write the same style of code you would when
using a normal hard link (-lwhatever), but the symbols are actually lazy-linked at runtime. You can use the symbols libwhatever_is_present
and libwhatever_symbol_is_present() to find out what APIs are actually available at runtime.
In other words, the need to use function pointers and lots of manual calls to dlsym() is eliminated, and it becomes much simpler to soft
link to things as a result. If a symbol is missing at runtime and you call it anyway, your application will abort and an error message is
printed that states which function was called. If a variable is missing at runtime, the value is always -1.
OPTIONS --relay LIB
If a matching -lLIB is found, generate a file that can be used instead of linking directly to LIB. The name of the file is echoed on
stdout. Multiple --relay can be used together, a file will be generated for each matching ones.
--replace-all-libs
Generate a file for every -lLIB parameter.
--minimal-list OBJ_LIST
Will look in OBJ_LIST for undefined symbols, and generate a file creating only the needed symbols for each LIB.
--partial-map MAP_FILE
Generate a file creating only the symbols contained in MAP_FILE. Will apply to all further -lLIB parameters, so in general is not
suitable to multiple libs in the same invocation of relaytool.
--no-replace
Echo -lLIB on stdout even if a --relay LIB is found, so it'll be linked in normally.
--multilink [SONAMES...]
If a library has different SONAMES on different Linux distributions you can specify the various SONAMES that it's known by here.
Relaytool will attempt to load them (in the order provided) until one if found. This cannot be used with multiple --relay options. The
first SONAME in the list will be used as the name in the _is_present variable and _symbol_is_present function.
--out-dir DIRECTORY
Write stub file to DIRECTORY instead of CWD.
LINKER COMMANDS -LPATH
Add PATH to the list of paths to search for LIBs.
-lLIB
If a matching --relay LIB is found (or if --replace-all-libs is specified), generate a file that can be used instead of linking
directly to LIB. If there's no --relay LIB, echo -lLIB to stdout.
All other linker commands are passed as is to stdout.
OTHER COMMANDS -h, --help
Show some help.
--version
Display version information of relaytool
SEE ALSO
lipkgen (1), ligcc(1), gcc(1).
Additional documentation can be found on http://listaller.tenstral.net/wiki/doku.php/relaytool.
AUTHOR
This manual page was written by Matthias Klumpp matthias@tenstral.net.
COPYRIGHT
Copyright (C) 2009-2012 Matthias Klumpp
Listaller Project 14 May,2012 RELAYTOOL(1)