10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
2. Shell Programming and Scripting
Input:
|Running the Rsync|Sun Oct 16 22:48:01 BST 2016
|End of the Rsync|Sun Oct 16 22:49:54 BST 2016
|Running the Rsync|Sun Oct 16 22:54:01 BST 2016
|End of the Rsync|Sun Oct 16 22:55:45 BST 2016
|Running the Rsync|Sun Oct 16 23:00:02 BST 2016
|End of the Rsync|Sun Oct 16 23:01:44 BST 2016... (4 Replies)
Discussion started by: busyboy
4 Replies
3. Shell Programming and Scripting
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
Discussion started by: laknar
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Want to know what does it returns.
$ awk '$1 == /Jan/' inv
$ awk '$1 = /Jan/' inv --- What does this one signify.
1 13 25 15 115
1 21 36 64 620
$ awk '$1 ~ /Jan/' inv
Jan 13 25 15 115
Jan 21 36 64 620
Thanks in advance. (3 Replies)
Discussion started by: vanand420
3 Replies
5. Shell Programming and Scripting
Hi,
I have data as
"01/22/97-"aaaaaaaaaaaaaaaaa""aaa""aabbbbbbbbcccccc""zbcd""dddddddddeeeeeeeeefffffff"
I want to remove only the Consequitive double quotes and not the one which occurs single.
My O/P must be ... (2 Replies)
Discussion started by: Bhuvaneswari
2 Replies
6. Shell Programming and Scripting
Hi,
I want to search for a particular string using awk and print "Found" or "Not Found" depending on the search.
On searching this forum i got this code but it is not working: (6 Replies)
Discussion started by: rishav
6 Replies
7. Shell Programming and Scripting
Hi
I read somewhere that when using double quotes in awk; variables gets expanded else it doesn't.
So I tried to use the double quotes inside an awk statement as below:
from_instance_trans=`awk "/INPUT =\"$frm_inst\"/,/<\/TRANSFORMATION>/" $xml_object | grep -w "<TRANSFIELD" | awk... (9 Replies)
Discussion started by: dips_ag
9 Replies
8. Shell Programming and Scripting
i guys, i have a bash script , and it works, but i need an awk file, and i can't convert this code like:
#!/bin/awk -f
.....
my script
#!/bin/bash
awk '/\<FIRST\>|\<SECOND\>|\<THIRD\>|\<ZERO\>/' DOC.txt
thanks :) (4 Replies)
Discussion started by: felito
4 Replies
9. Shell Programming and Scripting
Hello,
an awk style question (or a stupid question... it depends on your point of view :) )
How can I write in one awk command these two ones ?
$USER - `grep $USER /etc/passwd | awk -F: '{ print $5 }' | awk -F, '{ print $1 }'`
Thanks
gb (4 Replies)
Discussion started by: gogol_bordello
4 Replies
10. Shell Programming and Scripting
I need to search for a line containing only 'XYY' or '//'. Then if the next line is either 'COD' or 'FAL' I need to replace positions 3-5 of the line 2 lines after that depending on its value.
So my incoming file is like this:
ABC
XYZ
COD
AS/12/1436/02MAR09
K 99X C4347 N6450SDQ... (9 Replies)
Discussion started by: prismtx
9 Replies