Sponsored Content
Top Forums Shell Programming and Scripting reading a .dat file in to a string Post 302415463 by usustarr on Thursday 22nd of April 2010 03:51:47 PM
Old 04-22-2010
Thanks guys, i will try that.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reading and writing SCO DAT tapes uing Linux

Hi, Guys. I've been trying to read and write SCO DAT tapes to my Linux hard disk. I'm using RedHat 6.0 because it is the only version that has device drivers for my SCSI host adapter and SCSI tape drive. When I run the command "cpio -ivt > /dev/st0" I can read the archive from the SCO... (3 Replies)
Discussion started by: cstovall
3 Replies

2. Shell Programming and Scripting

How to attach an excel file/ dat file thru unix mails

Hi. I want to attach a .xls or .dat file while sending mail thru unix. I have come across diff attachments sending options, but allthose embeds the content in the mail. I want the attachement to be send as such. Please help me out. regards Diwakar (1 Reply)
Discussion started by: diwakar82
1 Replies

3. UNIX for Dummies Questions & Answers

How do I delete a data string from a .dat file in unix

I have a .dat file in unix and it keeps failing file validation on line x. How do I delete a data string from a .dat file in UNIX? I tried the following: sed -e 'data string' -e file name and it telling me unrecognized command (4 Replies)
Discussion started by: supergirl3954
4 Replies

4. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

5. Shell Programming and Scripting

Reading a .dat file in to 2 different arrays

hi all, i have a data file that contains 2 columns, names and numbers. i need to read names in to a an array call names and numbers in to an array call numbers. i also have # and blank lines in my dat file and i need to skip those when i read the dat file. how do i do this? btw, my column 1 and... (3 Replies)
Discussion started by: usustarr
3 Replies

6. Shell Programming and Scripting

File Reading for a certain string and echo the line before

Hi Guys, I have a big file like this. It has cache group line ( the bold lines ) and then followed by 10 status lines showing either Compelte or Failed. This pattern repeats several time. We can assume all the status lines have either Complete or Failed status for that Cache Group line. I... (13 Replies)
Discussion started by: MKNENI
13 Replies

7. UNIX for Dummies Questions & Answers

ID incorrect field values in dat file and output to new file

Hi All I have a .dat file, the values are seperated by ". I wish to identify all field values in field 14 that are not '01-APR-2013' band then copy those records to a new file. Can anyone suggest the UNIX command required. Thanks in advance Andy (2 Replies)
Discussion started by: aurum1313
2 Replies

8. Shell Programming and Scripting

FASTEN count line of dat file and compare with the CTRL file

Hi All, I thinking on how to accelerate the speed on calculate the dat file against the number of records CTRL file. There are about 300 to 400 folder directories that contains both DAT and CTL files. DAT contain all the flat files records CTL is the reference check file for the... (3 Replies)
Discussion started by: ckwan
3 Replies

9. Shell Programming and Scripting

Execution of loop :Splitting a single file into multiple .dat file

hdr=$(cut -c1 $path$file|head -1)#extract header”H” trl=$(cut -c|path$file|tail -1)#extract trailer “T” SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name If; then # start loop if it is a header While read I #read file Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies

10. Shell Programming and Scripting

How to use 'ls' command to list files like *.dat, not *.*.dat?

How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies
PMKPC(1)						    BSD General Commands Manual 						  PMKPC(1)

NAME
pmkpc -- Packages metainformation management tool. SYNOPSIS
pmkpc [options] [modules] DESCRIPTION
pmkpc is a tool that gathers metainformation about installed libraries that provide pkg-config data files. It aims to be an alternative to the pkg-config tool. OPTIONS
The options are as follows: --version Display compatibility version relative to pkgconfig. --atleast-pkgconfig-version Check if compatibility version is at least equal or greater than the version provided as an argument. --modversion Display the version of the given library modules using one line for each version. --atleast-version Check if each module version is at least equal or greater than the version provided as an argument. --exact-version Check if each module version is equal to the version provided as an argument. --max-version Check if each module version is at least equal or smaller than the version provided as an argument. --exists Check if given library modules exists. --cflags Display pre-processor and compiler flags for given library modules. Duplicates values are automatically removed. --cflags-only-I Enable output filtering of compiler flags and keep include path. See output filtering section. --cflags-only-other Enable output filtering of compiler flags and keep other flags than include path. See output filtering section. --libs Display linker flags for given library modules. Duplicate values are automatically removed. --libs_only_l Enable output filtering of linker flags and keep library linking flags. See output filtering section. --libs_only_L Enable output filtering of linker flags and keep library path flags. See output filtering section. --libs_only_other Enable output filtering of linker flags and keep other flags than library linking and path flags. See output filtering section. --help Only for compatibility with pkg-config. Refers to this man page. --usage Display usage. --list-all Display all module names and descriptions. The following options have not been implemented yet: --uninstalled --debug --variable --define-variable --print-errors --silence-errors --errors-to-stdout OUTPUT FILTERING
As pkg-config has no standard specifications we determinated its behavior from pkg-config man page. The result is that filtering options can be accumulated. The default behavior is like if all filtering options were enabled. FILES
pmkcfgtool.dat config tool specific data. SEE ALSO
pkg-config(1) HISTORY
Initialy pmk was using pkg-config in a sub shell. Further, internal support was developed to improve the speed of data gathering. While studying the code of pkg-config we discovered some chunks of code that were unsafe (malloc return unchecked, use of strcpy without any check, ...). Knowing that, we decided to try to do a safer implementation and pmkpc was born. AUTHORS
Damien Couderc and Xavier Santolaria. BSD
January 20, 2004 BSD
All times are GMT -4. The time now is 08:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy