1) Yes
2) How do you want to convey the target path to the script? In case you want to use the source files' path, and this is constant, to place the hd*.txt files next to the sources, try (in the END section)
assuming the FILENAME variable is still defined and valid in that section.
Else you can use awk's -v mechanism to supply the path.
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 all
I am new to unix and want to create a loop to repeat the loop and before that it ask me to do so.I know "while" may help but I put it in my work and getting stuk with it.any help appreciated. (13 Replies)
Hi ,
please guide me for a bash script that will create a txt files and the name of the txt files will be as of timestamp so that each file name will be different from other and these files will be get created say after every 10 minutes in a folder(/home/p2000/sxs137), please guide me how would... (1 Reply)
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)
My Calling script is like below:
for file in `echo $LIST_OF_FILES` --listing filenames eg, xyz_meta_20110501_00000789.tar
do
file_name=`basename $file`
<call a function to create .txt file in below format>
done
Want to generate a .txt file that contains below data in ksh:
... (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)
I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 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 SUSE
pth-config
PTH-CONFIG(1) GNU Portable Threads PTH-CONFIG(1)NAME
pth-config - Pth library build utility
VERSION
GNU Pth 2.0.7 (08-Jun-2006)
SYNOPSIS
pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
[--cflags] [--ldflags] [--libs]
DESCRIPTION
The pth-config program is a little helper utility for easy configuring and building applications based on the pth(3) library. It can be
used to query the C compiler and linker flags which are required to correctly compile and link the application against the pth(3) library.
OPTIONS
pth-config accepts the following options:
--help
Prints the short usage information.
--version
Prints the version number and date of the installed pth(3) library.
--all
Forces the output of all flags, that is, including extra flags which are not Pth specific.
--prefix
Prints the installation prefix of architecture independent files
--exec-prefix
Prints the installation prefix of architecture dependent files.
--bindir
Prints the installation directory of binaries.
--libdir
Prints the installation directory of libraries.
--includedir
Prints the installation directory of include headers.
--mandir
Prints the installation directory of manual pages.
--datadir
Prints the installation directory of shared data.
--acdir
Prints the installation directory of autoconf data.
--cflags
Prints the C compiler flags which are needed to compile the pth(3)-based application. The output is usually added to the "CFLAGS" vari-
able of the applications "Makefile".
--ldflags
Prints the linker flags ("-L") which are needed to link the application with the pth(3) library. The output is usually added to the
"LDFLAGS" variable of the applications "Makefile".
--libs
Prints the library flags ("-l") which are needed to link the application with the pth(3) library. The output is usually added to the
"LIBS" variable of the applications "Makefile".
EXAMPLE
CC = cc
CFLAGS = -O `pth-config --cflags`
LDFLAGS = `pth-config --ldflags`
LIBS = -lm `pth-config --libs`
all: foo
foo: foo.o
$(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
foo.o: foo.c
$(CC) $(CFLAGS) -c foo.c
SEE ALSO pth(3), cc(1).
AUTHOR
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
08-Jun-2006 GNU Pth 2.0.7 PTH-CONFIG(1)