problem with pch files.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting problem with pch files.
# 1  
Old 03-04-2009
PHP problem with pch files.

Here is what i am trying to do.

I have a directory /data/PCH with several precompiled header files.

A_12.pch
B_05.pch
C_08.pch

so on and so forth.

All of these files can take a '-q' argument to give an output like something below:

# A_12.pch -q

PchV=1.0.0.2
pchID=A_12.pch
pchT=B
pchD=X X X X X X X X X X X X
pchL=pch001 pch002 pch003 pch004 .......pch012
pchS=123456 342156 345676 334223 234356 ....
pchRb=Y N Y N N N Y N Y N Y N
pchDc=N N N N N N N N N N N N

my idea is to read all the pch files in the /data/PCH directory with -q option and to find out what is the last value of pchRb. If it is Y then display 'Its possible'. If it is N then display 'Its not possible.' How should i do this???

Thanks
# 2  
Old 03-04-2009
MySQL

Also how do I do it for every Y and N which comes along?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem with renaming files

I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f" "${f//\*/-}"' - '{}' \ People tell me it works for... (4 Replies)
Discussion started by: MikeDavid
4 Replies

2. UNIX for Dummies Questions & Answers

Files problem

Can anyone help me with this problem?: Write a programm that converts a text file cu externs decimal reprezentations into a binary file with they're interns reprezentations.The file's specifiers are given as arguments in the command line.(sorry about my bad english):D (2 Replies)
Discussion started by: nemo113
2 Replies

3. Shell Programming and Scripting

Displaying Files Problem

To match all filename comprising at least three characters the first character is numeric and the last character is not alphabetic (2 Replies)
Discussion started by: polineni
2 Replies

4. Shell Programming and Scripting

Displaying Files Problem

To match all filename comprising at least three characters not beginning with a dot (1 Reply)
Discussion started by: polineni
1 Replies

5. Shell Programming and Scripting

Problem in deleting files

Hi Guys, In one of my folders i have 10000 log files starting with sqlfile..... Iam trying to delete the log files alone from the folder using for loop but i am getting an error ksh: /usr/bin/ls: 0403-027 The parameter list is too long. For loop i used for i in `ls sqlfile*`... (4 Replies)
Discussion started by: mac4rfree
4 Replies

6. UNIX for Advanced & Expert Users

problem with renaming files

Hi, I need to rename all the .txt files present in current directory to .dat files respectively in UNIX. for example: $ ls aaa.txt bbb.txt ccc.txt I need to change them to $ ls aaa.dat bbb.dat ccc.dat Is there any UNIX command to do this in one go? ... (3 Replies)
Discussion started by: Johny001
3 Replies

7. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

8. UNIX for Advanced & Expert Users

Problem joining 2 files

Hi I have 2 files which look like File1 1245 1256 2345 2165 3245 9851 8514 6498 8547 2541 5242 and File2 (4 Replies)
Discussion started by: rochitsharma
4 Replies

9. UNIX for Dummies Questions & Answers

Space problem in files

Hi, I have a file containing a list of entries. Want to do ls on them. for a in `cat <list.txt>`; do ls $a; done; Now some entries contain spaces. How do i incorporate space in $a. Quoting $a in "" doesn't help. Thanks (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

10. UNIX for Dummies Questions & Answers

when I try to run rm on multiple files I have problem to delete files with space

Hello when I try to run rm on multiple files I have problem to delete files with space. I have this command : find . -name "*.cmd" | xargs \rm -f it doing the work fine but when it comes across files with spaces like : "my foo file.cmd" it refuse to delete it why? (1 Reply)
Discussion started by: umen
1 Replies
Login or Register to Ask a Question