10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Both codes not working for me.
whois nba.com| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com.pt| sed -n '/Registry Registrant ID:/,/Registrant
whois ymas.com.pt| sed -n '/Registry Admin ID:/,/Admin Email:/p' ... (5 Replies)
Discussion started by: kenshinhimura
5 Replies
2. UNIX for Dummies Questions & Answers
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies
3. UNIX for Advanced & Expert Users
I thought this would be easy to Google, but I am having trouble getting a clean result that I can understand.
I simply want to insert the the line:
My Network 192.168.1.1
After the last line that begins with ACL localnet (15 Replies)
Discussion started by: glev2005
15 Replies
4. Shell Programming and Scripting
Hi,
how to figure out script name from a file which are having pattern .ksh. So wherever i have .ksh in a file i should get complete name of the file along with its extension as well. (7 Replies)
Discussion started by: vinsin55
7 Replies
5. Shell Programming and Scripting
Hi,
I have the file contents:
Start,End,Req,Resp
12:39,12:40,4,5
The sting to be matched is: Req and Resp.
parsefile("Req,Resp");
Here is the code.
sub parsefile ($)
{
$header=shift; (2 Replies)
Discussion started by: vanitham
2 Replies
6. Shell Programming and Scripting
My GNU awk's version is 3.1.5, the special regexp operator '\B' can't work as expected.
The document from "The GNU Awk User's Guide"
It's my data file:
ABCDE
ABCD
ABC
AB
A
replaces all /\B/ with gsub:
$ awk '{gsub(/\B/,"X")}1' data
AXBXCXDE
AXBXCD
AXBC
AXB
A
And, the expected... (2 Replies)
Discussion started by: redraiment
2 Replies
7. Shell Programming and Scripting
HI,
I have sentences like this:
@str=("An ribonucleic acid (RNA)-binding protein, started its expression in the daughter cells","Elucidation of the mechanism of retinal degeneration of RNA-binding protein","Rna binding protein is an important protein","In the retinal degenerative process... (1 Reply)
Discussion started by: vanitham
1 Replies
8. Shell Programming and Scripting
I have two files with multiple columns separated by commas.
I want to search one column from the first file in the second file;
If there is a matching, will append that matched row to the first file. Let me show an example... (unique values in the search column)
First file
aa,reg1,bb,cc,dd,ff... (6 Replies)
Discussion started by: lalelle
6 Replies
9. Shell Programming and Scripting
Hi,
I have an array.
@arr=("abcdefgh","ppppppp","rrr");
$tofind="rrr";#string to find.
I want to match this string and retrieve only matched contents.
In this case rrr is found in 2nd position in an array i want to print only rrr.
If the string is matched i have to retrieve only... (1 Reply)
Discussion started by: vanitham
1 Replies
10. Shell Programming and Scripting
Hi ,
If I match a word in a file, I want to pick the next line of that matched word.
My file is a below format-
The ntrag trace has auditError
Line5005 contains transaction Ntrag data
------------
Here I wanted if I match a word auditError, I need to get the next line
"Line5005... (10 Replies)
Discussion started by: Muktesh
10 Replies