Does AWK uses a lot of processing power? If so, is there a better scripting language to do it? Or should I do it in C itself (where rest of my code is).
相关问题
- UNIX Bash - Removing double quotes from specific s
- Split a .txt file based on content
- mv wrapped inside an if in shell scripting
- Why do I use double quotes in shell scripts [dupli
- Using awk / sed to find and replace key value pair
相关文章
- Is there a non-java, cross platform way to launch
- How to detect EOF in awk?
- Capture output of a bash command, parse it and sto
- Convert Text to Table (Space Delimited or Fixed le
- lldb python handle breakpoint hit
- How can I monitor memory and CPU usage by spark ap
- Rapidly learn InDesign scripting?
- Automatically pressing a “submit” button using pyt
If most of your code is in c, It is probably cleaner to use c to do your string processing rather than shelling out.
You can use PCRE directly in your program.
Depends on what you're telling it to do. Most of the work is passed to the regexp engine, which should be similar, no matter what language you use.
Now if you're using an awk script from inside a C program, and you have the resources to just implement the functionality in C too, you're best off doing that. You'll avoid the process creation/termination + communication overhead (which may or may not be a big part of the performance hit you'll get).
For more information, tell us more about your script!