Omgili - forum search, search forums  
  

Discussions about awk php

Displaying 1 - 10 out of 234 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi I am stuck with this I want to replace all include('./ in a set of files with include(' . I am trying to use awk as follows: awk '{gsub("include\('"'"'./", "include\('"'"'", $0); print > FILENAME}' *.php It throws me this error. awk: (FILENAME=xyz...
Started by on , 5 posts by 5 people.  
Try this : awk '{gsub("include(\'"'"'./", "include\('"'"'", $0); print > FILENAME}' *.php you}' *.php how about this ? awk '{gsub("include(\47./", "include(\47", $0); print > FILENAME}' *.php Did}' *.php....
I want to run awk from php to do some text processing. I am giving an extremely simple example below: onecol.awk file { print "Hello!"; } f1.txt aaa ccc eee f2.txt ddd eee fff index.php --- <?php $command1 ="awk -f onecol.awk f1.txt > outsingle....
Started by on , 7 posts by 3 people.  
Answer Snippets (Read the full thread at unix):
My php file is: PHP Code: <?php $command = "awk -f onecol.awk f1.txt ....
Thanks Code: $command1 ="awk -f onecol.awk f1.txt > outsingle.txt not work if I call from php.
Executed when called from php.
Hi, I made a awk script to do stuff on some input files but as I want to avoid installing gawk on the windows machines I want this awk script to be available as a webservice or just a form where I can either upload a file or just copy the text of the ...
Started by on , 3 posts by 3 people.  
At the back end, you can either make a system call to gawk binary OR you can recode your gawk script using PHP(or your.
Suggestion, set up a web server, create a form using PHP (or your fav language).
Ask your Facebook Friends
I want to run awk from php to do some text processing. I am giving an extremely simple example below: onecol.awk file { print "Hello!"; } f1.txt aaa ccc eee f2.txt ddd eee fff index.php --- PHP Code: <?php $command1 = "awk -f onecol.awk f1.txt >...
Started by on , 4 posts by 2 people.  
Bradgrafelman Thanks for reply PHP Code: <?php $command1 = "awk -f agg.awk f1.txt > outsingle.txt set to On and error_reporting set to E_ALL? If so, are you getting any PHP error messages? Hi" ; system ( $command1 );....
Hi All, I am currently working as a software developer mainly coding in PHP & JS at the current job. I have about 2 years of experience, mostly in web development and i am trained in Java. Have some basic work experience in Struts. I recently have 2 job...
Started by on , 8 posts by 8 people.  
That the Systems Analyst job is probably not what you want, but CGI-AWK - are these people from the Stone-AWK and nothing else, or do they really? If you will have a chance to use new tools for new code that next week or next year they ....
Hi, Im trying to learn quicker ways to run these commands as they are taking a LONG time with my huge genotype files. Ive tried using the merge file method without luck. I am calling the file2 column number as a variable from file1. PHP Code: for i in...
Started by on , 13 posts by 5 people.  
I tried this script you suggested but it took 32 seconds to run one SNP .
Im not overly familiar with while loops! PHP Code: awk '{ a[NR]=$2 } END { for(i=1 it.
Executing it.
Hi, For each line in random.txt I want to subset the girls from girls.txt which fit the criteria (age between min and max and same hair colour). Here is an example of my file structure: random.txt Min_age Max_age Hair_colour 14 15 Brown 9 11 Red 5 7 Blonde...
Started by on , 9 posts by 4 people.  
In the second pice of code you can remove the for loop and do a Code: awk '{if(NR<=84) print $1-5 ,$2+5 ,$3}' tmp/random.txt >>....
I don't understand why you cicle from 1 to 84 you can get those lines within awk not using a for loop.
Hi all, Thank you for taking the time to read my post. I was wondering about the feasibility of writing a web application to carry out pattern matching in text files - basically what awk was designed to do, but with a browser based interface to make ...
Started by on , 7 posts by 3 people.  
Answer Snippets (Read the full thread at omgili):
If you want awk-like behavior, the easiest way to get it is to use awk.
Something like that, I'd write a CGI script - in awk/gawk - that would create an awk script, or select it to the browser (and delete the temp file).
I've recently purchased an Apple iMac. Unfortunately, enabling Apache and PHP has thrown up some problems. I enabled Mac's built-in Web Sharing through System Preferences, at which point I got an output and could add HTML files to my user directory. However...
Started by on , 4 posts by 4 people.  
It's a nice approach for a quick.
This is a "pre-made" webserver that includes Apache, PHP & MySql.
It will take a bit of time to set it up .
I would recommend using your Apache and PHP via MacPorts .
Is it wrong to use PHP as a server side language? For functions such as mail notifications / fraud checks (look for data, flag, then email type approach) / db cleanup / upload folder cleanup / cronjob type functions etc; I've ran into some projects lately...
Started by on , 7 posts by 7 people.  
Ps: PHP web ....
I write all my maintenance scripts in PHP and haven't had any problems.
PHP definitely has its uses webpage in your PHP CLI scripts.
Scripting (+ grep/awk/sed/whatever) might be what you're looking for.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Linux - Newbie - LinuxQuestions.org
  • Server Fault
  • Linux/Unix Help - PHPBuilder.com
  • Shell Programming and Scripting - The UNIX and Linux
Related Searches
php awk   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost