Need help in adding missing tag in php pages


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help in adding missing tag in php pages
# 8  
Old 11-22-2015
Quote:
Originally Posted by netatma
.
.
.
RudiC: can you please share your expertise and tell why this code didn't worked like it was supposed to be

grep -Lr --include=*.php "<?php" /home/path/ | xargs sed -i "1s/^/<?php \n/"
Love to - if you tell me how you supposed it to work and what it really did.

---------- Post updated at 20:44 ---------- Previous update was at 20:43 ----------

... optimally backed by sample data ...
This User Gave Thanks to RudiC For This Post:
# 9  
Old 11-23-2015
I am newbie, but someone who was suggesting me a way to include it in all pages, suggest that

I would be happily get enlightened if you can tell whats wrong in it and how would you do it with perl for all folder under.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

PHP Man Pages Now Available (Over 10,000)

Hello! Yesterday we added over 10,000 PHP man pages to our man page section. I've not yet got our unique and special recursive search feature working; but you can still access the PHP man pages directly by selecting PHP in the man sets drop down menu (left side) and then section 3 (right... (3 Replies)
Discussion started by: Neo
3 Replies

2. Shell Programming and Scripting

Help with missing XML tag

Hello All, I am struggling with many huge XML files with lots of Account details including at least one Membership tag, in that Membership tag one xml tag was missed that is MembershipIdentifier: (There are many Account tags with at least one Membership tag are there in each file) ...... ... (4 Replies)
Discussion started by: VasuKukkapalli
4 Replies

3. UNIX for Dummies Questions & Answers

Adding missing lines in file

Dear all, I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present. Sample: How can I change the file so as to include lines with zero count? e.g. in the previous file to put... (4 Replies)
Discussion started by: TheTransporter
4 Replies

4. UNIX for Dummies Questions & Answers

Adding missing lines in file

Dear all, I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present. Sample: 1950 7 2000 14 2050 7 2100 13 2150 10 2200 9 2250 7 2300 8 2350 7... (1 Reply)
Discussion started by: TheTransporter
1 Replies

5. Solaris

Missing man pages on SunOS Rel.5.10

Hello, last week I installed SunOS Release 5.10 on my "new" 220R. Unfortunately there seem to be no man pages, although I installed the End-User software package. Yes I know there are lots of similar topics and I hope you will help me nevertheless. Which further information do you need? ... (6 Replies)
Discussion started by: pseudocoder
6 Replies

6. Ubuntu

useradd - shell missing features after adding user

Hi, I need to create a user from a bash script so i have to use useradd. The problem is that when i create a user with: useradd -d /home/sample -m sample after i login with that user I have no history in bash, path do not appears, i can't use arrows and so on. When I use adduser everything is... (5 Replies)
Discussion started by: ktm
5 Replies

7. UNIX for Advanced & Expert Users

Adding a CVS tag to a new file

All, I've been working with perl scripts and shell scripts for quite some time now. I've been making code changes and submitting them into cvs. But I've never created a new file and added it to the directory tree. I know the cvs commands to add it to the directory tree. What I don't know is... (1 Reply)
Discussion started by: rahulrathod
1 Replies
Login or Register to Ask a Question