09-09-2013
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a text file with following content (3 lines)
filename : output.txt
first line:12/12/2008
second line:12/12/2008
third line:Y
I would like to know how we can replace 'Y' with 'N' in the 3rd line keeping 1st and 2nd lines same as what it was before.
I tried using cat output.txt... (4 Replies)
Discussion started by: santosham
4 Replies
2. Shell Programming and Scripting
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Discussion started by: hertingm
4 Replies
3. Shell Programming and Scripting
Hi Eveyone,
I am working on one shell script to find the specific records from data file and add the totals into variables and print them. you can find the sample data file below for more clarification.
Sample Data File:
PXSTYL00__20090803USA
CHCART00__20090803IND... (7 Replies)
Discussion started by: veeru
7 Replies
4. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
5. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
6. Shell Programming and Scripting
greetings!
how do i get an env variable that looks like this when echoed:
into a file that looks like this:
keeping in mind that the two constants are the fields from the env variable will always be in odd positions of the string that need to go into the file AND they will always start... (3 Replies)
Discussion started by: crimso
3 Replies
7. Shell Programming and Scripting
Hi,
I want to compare two columns from file1 with another two column of file2 and print matched and unmatched column like this
File1
1 rs1 abc
3 rs4 xyz
1 rs3 stu
File2
1 kkk rs1 AA 10
1 aaa rs2 DD 20
1 ccc ... (2 Replies)
Discussion started by: justinjj
2 Replies
8. Shell Programming and Scripting
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies
9. Shell Programming and Scripting
I hope this makes sense and is possible.
I am trying to match $1 of panel_genes.txt with $3 of RefSeqGene.txt and when a match is found the value in $6 of RefSeqGene.txt
Example: ACTA2 is $1 of panel_genes.txt
ACTA2 NM_001613.2
ACTA2 NM_001141945.1
awk 'FNR==NR {... (4 Replies)
Discussion started by: cmccabe
4 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
recserv(1M) recserv(1M)
NAME
recserv - HP SharedX Receiver Service
SYNOPSIS
/usr/lbin/recserv
DESCRIPTION
HP SharedX Receiver Service provides a method for a receiver to allow the sharing of windows without explicitly performing any xhost com-
mands. The Internet daemon (inetd(1M)) executes recserv when it receives a service request at the port listed in the services data base
for recserv (see inetd(1m) and services(4)).
When recserv is executed via inetd, a dialog box appears informing the receiver of the share request by the sender. The receiver can allow
or disallow the share request by selecting the YES or NO button.
recserv allows sharing by xhosting the sender just long enough for it to make a connection to the receiver. Once the connection is estab-
lished recserv removes the sender from the access control list, unless the sender was entered in the list prior to the execution of rec-
serv. Since no permanent change is made to the access control list, security is maintained at its highest level.
To start recserv from the Internet daemon, the configuration file /etc/inetd.conf must include the single line entry,
recserv stream tcp nowait bin /usr/lbin/recserv recserv -display :0
If the sharing is going to be done between IPv6 machines, the protocol field of the above entry in /etc/inetd.conf file of the receiver
machine should be changed to tcp6 as follows
recserv stream tcp6 nowait bin /usr/lbin/recserv recserv -display :0
and the services file /etc/services must include the line,
recserv 7815/tcp # SharedX Receiver Service
Receiver Service options, set by selecting the Options button, dictate the behavior of recserv. The behavior can also be set by running
recserv manually. In either case, an X server resource is set dictating the behavior for subsequent invocations of recserv.
OPTIONS
The following options allow different behavior according to user preferences.
AlwaysAsk
The dialog will pop up each time sharing is requested, regardless of the security on your X server.
AlwaysAllow
The dialog box never appears, but sharing will always be allowed.
AskUnhosted
The dialog will pop up only if the sender's machine is not hosted on your machine. If the sender's machine is already
hosted, sharing will occur without a dialog appearing.
NeverAsk
The dialog will never appear. Windows are shared only if the sender's machine is already hosted by your server.
To set resources (system behavior, label strings, etc) globally for a system, edit the file /usr/lib/X11/app-defaults/RecServ.
AUTHOR
HP SharedX Receiver Service was developed by Hewlett Packard.
SEE ALSO
SharedX(1), inetd(1M), xhost(1), hosts(4), inetd.conf(4), inetd.sec(4), services(4).
recserv(1M)