Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Having a hard time with the sed/echo commands? Post 302503983 by Corona688 on Saturday 12th of March 2011 09:41:03 PM
Old 03-12-2011
Make sure 'file' doesn't already exist.
 

10 More Discussions You Might Find Interesting

1. AIX

Hard time with an IBM RS/6000 J40 + AIX 5.2L

Hello all! I'm having a hard time with an IBM RS/6000 J40 machine. I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM. I can go to the configuration menu, but, I don't know hot to point to my SCSI CDROM in order to boot from it. Do any of you have an... (2 Replies)
Discussion started by: MCM
2 Replies

2. UNIX for Advanced & Expert Users

Hard time with a RS6000 J40 + AIX 5.2L

Hello all! This is my first post here! I'm having a hard time with an IBM RS/6000 J40 machine. I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM. Do any of you have an ideia? Thank you for your time! (3 Replies)
Discussion started by: MCM
3 Replies

3. Shell Programming and Scripting

SSH, Remote Commands and echo, oh my!

So, HostB has a SSH trust via pre-shared keys from HostA. HostA> ssh HostB hostname HostB HostA> ssh HostB echo `hostname` HostA HostA> ssh HostB 'echo `hostname`' `hostname` HostA> ssh HostB "echo `hostname`" HostA HostA> ssh HostB echo $PS1 user@HostA:$PWD HostA> ssh HostB... (12 Replies)
Discussion started by: Wrathe
12 Replies

4. Shell Programming and Scripting

Help with echo and sed

I am using GNU sed but this does not output "what". Why? HEY=$(echo "hey 70.70.70.70:21 what: " | sed -nr 's/.*(70.70.70.70\|71.71.71.71):(21\|22\|115\|443\|989\|990) (.*):.*/\3/p') echo $HEY (2 Replies)
Discussion started by: limmer
2 Replies

5. Shell Programming and Scripting

Advice using cut & echo combination commands

Hi, I am cutting data from a fixed length test file and then writing out a new record using the echo command, the problem I have is how to stop multiple spaces from being written to the output file as a single space. Example: cat filea | while read line do field1=`echo $line | cut -c1-2` ... (6 Replies)
Discussion started by: dc18
6 Replies

6. UNIX for Dummies Questions & Answers

skipping echo stmnt first time a while loop entered

one more question. I want to skip the first echo statement the first time the loop gets entered while #keep prompting for more funds until selling price achieved do echo "You have inserted a total of ${total_inserted} cents. Please insert $total_remaining more cents" echo... (1 Reply)
Discussion started by: danieldcc
1 Replies

7. Shell Programming and Scripting

echo and grep commands

Hey im new in this...anything will be helpful... The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user. Example: file1.txt ======= a aa aaa... (2 Replies)
Discussion started by: Sundown
2 Replies

8. UNIX for Dummies Questions & Answers

Echo out running commands

Is there any way in a script to print out the commands being ran? In DOS script, there is the "@echo on" and "@echo off". so I have a script like this: #!/bin/ksh echo "hello there. moving files." <turn on echoing here> cp thisfile.txt thatfile.txt cp whatfile.prop whyfile.prop <turn... (2 Replies)
Discussion started by: ronron5477
2 Replies

9. Web Development

ReWrite rule giving a hard time.

Hi all, I am trying to find a rewrite rule that can help me with the following situation. So I am currently on a page which has a URL: http://www.test.mobile.com/#!/shop/phones/max-plus/features/ Now when I hover over a certain link, I can see that it will goto: <a... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

10. UNIX for Beginners Questions & Answers

Behaviour of echo commands used by Linux admins

version info : Fedora 28 (Kernel version: 4.16.12-300) shell : bash Using echo command , if I redirect a text like "Chocolate" to a file , all the contents in the file are overwritten as shown below. # cat /tmp/someTest Hello world One more Hello world myLine3 # echo... (4 Replies)
Discussion started by: kraljic
4 Replies
RPCINFO(8)						    BSD System Manager's Manual 						RPCINFO(8)

NAME
rpcinfo -- report RPC information SYNOPSIS
rpcinfo -p [host] rpcinfo [-n portnum] -u host program [version] rpcinfo [-n portnum] -t host program [version] rpcinfo -b program version rpcinfo -d program version DESCRIPTION
rpcinfo makes an RPC call to an RPC server and reports what it finds. OPTIONS
-p Probe the portmapper on host, and print a list of all registered RPC programs. If host is not specified, it defaults to the value returned by hostname(1). -u Make an RPC call to procedure 0 of program on the specified host using UDP, and report whether a response was received. -t Make an RPC call to procedure 0 of program on the specified host using TCP, and report whether a response was received. -n Use portnum as the port number for the -t and -u options instead of the port number given by the portmapper. -b Make an RPC broadcast to procedure 0 of the specified program and version using UDP and report all hosts that respond. -d Delete registration for the RPC service of the specified program and version. This option can be exercised only by the super-user. The program argument can be either a name or a number. If a version is specified, rpcinfo attempts to call that version of the specified program. Otherwise, rpcinfo attempts to find all the reg- istered version numbers for the specified program by calling version 0 (which is presumed not to exist; if it does exist, rpcinfo attempts to obtain this information by calling an extremely high version number instead) and attempts to call each registered version. Note: the version number is required for -b and -d options. EXAMPLES
To show all of the RPC services registered on the local machine use: example% rpcinfo -p To show all of the RPC services registered on the machine named klaxon use: example% rpcinfo -p klaxon To show all machines on the local net that are running the Yellow Pages service use: example% rpcinfo -b ypserv 'version' | uniq where 'version' is the current Yellow Pages version obtained from the results of the -p switch above. To delete the registration for version 1 of the walld service use: example% rpcinfo -d walld 1 SEE ALSO
rpc(5), portmap(8) RPC Programming Guide. BUGS
In releases prior to SunOS 3.0, the Network File System (NFS) did not register itself with the portmapper; rpcinfo cannot be used to make RPC calls to the NFS server on hosts running such releases. BSD
December 17, 1987 BSD
All times are GMT -4. The time now is 08:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy