06-30-2009
hi
thanxs for ur reply..... i have formatted the output now the file looks like this
VPORCL01
Ram-pc
1533
9000
9100
VPORCL02
Ram-pc
7000
9000
9100
now ,
i need to print this out put in this format
VPORCL01 Ram-pc 1533 9000 9100
VPORCL02 Ram-pc 7000 9000 9100
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts.
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran1.P
/home/Dave/Program/Tran2.P
/home/Dave/Program/Tran3.P
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies
2. Shell Programming and Scripting
I want this script to read notes and print the contents of any file that starts with messages and is possibly followed by a period and a digit.
I've made this code, but how do I make it so that IF there is a period and a digit. Right now it only prints out the result if it is for example;... (8 Replies)
Discussion started by: HardyV2
8 Replies
3. Windows & DOS: Issues & Discussions
We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
5. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
6. Shell Programming and Scripting
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Discussion started by: scriptscript
5 Replies
7. Shell Programming and Scripting
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies
8. Shell Programming and Scripting
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
9. Shell Programming and Scripting
Hi friends, here is my problem.
I have three files like this..
cat file1.txt
=======
unix is best
unix is best
linux is best
unix is best
linux is best
linux is best
unix is best
unix is best
cat file2.txt
========
Windows performs better
Mac OS performs better
Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
FCNSQ(8) Open-FCoE Tools FCNSQ(8)
NAME
fcnsq - Fibre Channel Name Server Query Tool
SYNOPSIS
fcnsq host --gpn port_id [-q | --quiet]
fcnsq host --gnn port_id [-q | --quiet]
fcnsq host --gspn port_id [-q | --quiet]
fcnsq host --gsnn wwpn [-q | --quiet]
fcnsq ?
DESCRIPTION
The fcnsq command performs Fibre Channel Name Server queries for a user-specified FC Host. The supported name server query commands
include: Get Port Name (GPN), Get Node Name (GNN), Get Symbolic Node Name (GSNN), and Get Symbolic Port Name (GSPN) as described in FC-GS-3
for the Common Transport (CT) services.
fcnsq takes the host bsg name as the input for the target host. Host bsg name must be a valid bsg device, e.g., "host12" as derived from
/dev/bsg/fc_host12. For each name server query command, the argument is either a Port ID or a World Wide Port Name. Port IDs and World Wide
Names must be specified in hexadecimal. To disable verbose output, use the --quiet option.
OPTIONS
host --gpn port_id
Get Port Name by Port ID for host.
host --gnn port_id
Get Node Name by Port ID for host.
host --gspn port_id
Get Symbolic Port Name by Port ID for host.
host --gsnn wwpn
Get Symbolic Node Name by World Wide Port Name for host.
-q, --quiet
Disable verbose output.
?
Display a help message with basic usage instructions.
EXAMPLES
Query Get Port Name (GPN) from host12 for Port ID 0xbf0027
fcnsq host12 --gpn bf0027
Query Get Node Name (GNN) from host12 for Port ID 0xbf0027
fcnsq host12 --gnn bf0027
Query Get Symbolic Port Name (GSPN) from host12 for Port ID 0xbf0027
fcnsq host12 --gspn bf0027
Query Get Symbolic Node Name (GSNN) from host12 for WWWPN 0x1000001B213C9DDA
fcnsq host12 --gsnn 0x1000001B213C9DDA
SEE ALSO
fcoeadm(8)
SUPPORT
fcnsq is part of the fcoe-utils package, maintained through the Open-FCoE project. Resources for both developers and users can be found at
the Open-FCoE website http://open-fcoe.org/.
Open-FCoE 06/09/2010 FCNSQ(8)