I have got, this output below and i want to extract the name of symlink which is highlighted in red and the path above it highlighted in blue. At the end i want to append path and symlink.
So the output should be:- I am new to awk, could you help me?
Thanks
Aditya
Moderator's Comments:
Use code tags please, ty.
Last edited by zaxxon; 06-10-2010 at 05:47 AM..
Reason: code tags
This is my problem, my file (file A) contains the following information:
Now, I would like to create a file (file B) containing only the lines with 10 or more characters but less than 20 with their corresponding ID:
Then, I need to compare the entries and determine their frequency. Thus, I... (7 Replies)
Hello UNIX experts,
I have 124 text files in a directory. I want to extract the 45678th line of all the files sequentialy by file names. The extracted lines should be printed in the output file on seperate lines.
e.g. The input Files are one.txt, two.txt, three.txt, four.txt
The cat of four... (1 Reply)
I have tried the following to no avail.
xargs -n8 < test.txt
awk '{if(NR%6!=0){p=""}else{p="\n"};printf $0" "p}' Mod_Alm_log.txt > test.txt
I have tried different variations of the above, the problem is mixes lines together.
And it includes the tags "%a and %A" I need them to be all tab... (16 Replies)
I am trying to output all lines in a file where $7 is less than 30. The below code does create a result file, but with all lines in the original file. The original file is tab deliminated is that the problem? Thank you :).
awk 'BEGIN{FS=OFS=","} $7 < 30 {print}' file.txt > result.txt... (3 Replies)
I have two large files (~250GB) that I am trying to remove the where GT: 0/0 or 1/1 or 2/2 for both files. I was going to use a bash with the below awk, which I think will find each line but how do I remove that line is that condition is found? Thank you :).
Input
20 60055 . A ... (4 Replies)
The awk below executes and produces the current output, which is correct, except I can not seem to include the header lines # and ## in the output as well. I tried adding !/^#/ thinking that it would skip the lines with # and output them but the entire file prints as is. Thank you :).
file
... (8 Replies)
Hi everyone,
I have the following string that repeats in a file.
I want to get the following output :
"CDN_NF2_SGW_INT_443"
172.23.120.40:443
source-address-translation {
pool /Common/SNAT_EXTERNAL_62.179.94.194
and parse the file till the end . (3 Replies)
Discussion started by: liviusbr
3 Replies
LEARN ABOUT PHP
highlight_file
HIGHLIGHT_FILE(3) 1 HIGHLIGHT_FILE(3)highlight_file - Syntax highlighting of a fileSYNOPSIS
mixed highlight_file (string $filename, [bool $return = false])
DESCRIPTION
Prints out or returns a syntax highlighted version of the code contained in $filename using the colors defined in the built-in syntax
highlighter for PHP.
Many servers are configured to automatically highlight files with a phps extension. For example, example.phps when viewed will show the
syntax highlighted source of the file. To enable this, add this line to the httpd.conf:
AddType application/x-httpd-php-source .phps
PARAMETERS
o $filename
- Path to the PHP file to be highlighted.
o $return
- Set this parameter to TRUE to make this function return the highlighted code.
RETURN VALUES
If $return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success,
FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.2.1 | |
| | |
| | This function is now also affected by safe_mode |
| | and open_basedir. |
| | |
+--------+---------------------------------------------------+
NOTES
Caution
Care should be taken when using the highlight_file(3) function to make sure that you do not inadvertently reveal sensitive informa-
tion such as passwords or any other type of information that might create a potential security risk.
Note
When the $return parameter is used, this function uses internal output buffering so it cannot be used inside an ob_start(3) callback
function.
SEE ALSO highlight_string(3), Highlighting INI directives.
PHP Documentation Group HIGHLIGHT_FILE(3)