Sponsored Content
Top Forums Shell Programming and Scripting Creating/ammending Name Column in existing .txt file Post 302214692 by radoulov on Monday 14th of July 2008 05:08:32 PM
Old 07-14-2008
Code:
awk>output.bed '1 == NR || $NF >= 1000 {
  if (c) 
    print _, __ "Cluster" ++i
  _ = $1 FS $2
  c = 1
  }
{ __ = $3 FS substr($4, 1, 6) }
END {
  print _, __ "Cluster" ++i
  } ' input.bed

Quote:
Originally Posted by Annihilannic
[...] _ is a strange variable name to use!
Definitely Smilie
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating a csv file based on Existing file

Hi I am Newbie to Unix.Appreciate Help from forum user would loada b.Csv File(Below example) in /data/m/ directory.Program need to read the b.csc to extract certain column and create a new file /data/d/ directory as csv file with new name. User File Format 1232,samshouston,12345... (3 Replies)
Discussion started by: skywayterrace
3 Replies

2. UNIX for Dummies Questions & Answers

Creating a txt file

Hi All, I would like to know if you can set up in part of a script for the script to create a txt file and put some predetermined text into it. #Example make file example.txt #Then it would the lines below into the text file as text. Line 1 Line 2 Line 3 Does anyone have any... (1 Reply)
Discussion started by: outthere_3
1 Replies

3. Shell Programming and Scripting

Creating a new file based on existing file

Hello Guys , I need an another help regarding the below problem. I want to create a new file based on the existing file ,where two columns will be changed according to user input .(say column 4 and column 5) Please let me know how to proceed with Thanks (3 Replies)
Discussion started by: Pratik4891
3 Replies

4. Shell Programming and Scripting

Creating file from an existing file using CUT, is it the best option?

Dear All, I have a requirement in which i have to load a file placed in FTP location onto my database. The process i'll follow is as below: 1) Get the files using FTP. 2) Create the desired load files as i have to load only 19 fields out of the 104 available in the file. The fields i require... (7 Replies)
Discussion started by: abhishekakaomi
7 Replies

5. Shell Programming and Scripting

Need help in creating a file in required format form another existing file

I have a text file with contents like this: a,b,c, d~e,f,g,h~i,j ,k,l,m~n,o,p,q~ I need to convert this file into this format unix shell script commands: a,b,c,d~ e,f,g,h~ i,j,k,l,m~ n,o,p,q~ as you may have noticed, I need to retain the ~ signs at the end. Any help is greatly... (3 Replies)
Discussion started by: harsha1238
3 Replies

6. UNIX for Advanced & Expert Users

Creating the script for updating or replacing the existing http.conf file

Hi I need some help with a task, i am an absolute newbie to any form of shell scripting and request guidance. I have been building a proxy server using the apache mod proxy currently my solution is working , but i need to automate the process , suppose if any changes need to be made on... (0 Replies)
Discussion started by: satej
0 Replies

7. Shell Programming and Scripting

Matching column then append to existing File as new column

Good evening I have the below requirements, as I am not an experts in Linux/Unix and am looking for your ideas how I can do this. I have file called file1 and file2. I need to get the second column which is text1_random_alphabets and find that in file 2, if it's exists then print the 3rd... (4 Replies)
Discussion started by: mychbears
4 Replies
scconf_transp_adap_ibd(1M)				  System Administration Commands				scconf_transp_adap_ibd(1M)

NAME
scconf_transp_adap_ibd - configure the InfiniBand (ibd) transport adapter DESCRIPTION
Note - Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor- mation about the object-oriented command set, see the Intro(1CL) man page. You can configure ibd adapters as cluster transport adapters. These adapters can only be used with transport type dlpi. The ibd adapter connects to an InfiniBand transport switch. The connection is made through a transport cable. When the endpoints of the transport cable are configured by using scconf, scinstall, or other tools, you are asked to specify a port name on the transport switch. You can provide any port name, or accept the default, as long as the name is unique for the switch. The default is to set the port name to the node ID that hosts the adapter at the other end of the cable. There are no user-configurable properties for cluster transport adapters of this type. SEE ALSO
Intro(1CL), clinterconnect(1CL), clnode(1CL), scconf(1M), scconf_transp_jct_ibswitch(1M), scinstall(1M), ibd(7D) Sun Cluster 3.2 4 May 2006 scconf_transp_adap_ibd(1M)
All times are GMT -4. The time now is 11:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy