Sponsored Content
Top Forums Shell Programming and Scripting Text to column starting/ending with special character in each row Post 302957340 by baris35 on Friday 9th of October 2015 11:21:56 AM
Old 10-09-2015
Quote:
Originally Posted by Yoda
Code:
sed 's#.*\(www\)#\1#;s#<.*##' input

Thanks Yoda,
what if the last two connector domains are not including www ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing the column for a row in a text file and adding another row

Hi, I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value . For Eg . if the input file has a row : abc xyz lmn 89 lm nk o p I would like the script to create something like... (9 Replies)
Discussion started by: aYankeeFan
9 Replies

2. Shell Programming and Scripting

remove special character from a specific column

Hello , i have a text file like this : A123 c12AB c32DD aaaa B123 23DS 12QW bbbb C123 2GR 3RG cccccc i want to remove the numbers from second and third column only. i tried this : perl -pe 's///g' file.txt > newfile.txt but it will remove the number from... (7 Replies)
Discussion started by: shelladdict
7 Replies

3. UNIX for Dummies Questions & Answers

Sort text file starting at column X

Hello everyone! As the heading reads, I would like to sort the lines of a text file, starting at a specific column (i.e. skip the first X characters of each line). What I’m actually trying to sort is the md5 sums file of a directory. Every time I copy a new file to that directory, I perform... (3 Replies)
Discussion started by: iznogoud
3 Replies

4. Shell Programming and Scripting

if statement to check files with different ending but same starting name

I am trying to check if files staring with filename but ending with diffent dates e.g. filename.2011-10-25. The code I am using is below if It works find only if one file is present but returns binary operator expected when there are mulptiple files. Please help me correcting it. I... (5 Replies)
Discussion started by: ningy
5 Replies

5. UNIX for Advanced & Expert Users

Pring starting and ending numbers using UNIX

Hi all, I need to do scrip for printing starting and ending numbers along with count in given file.:wall: Input: a.txt 10000030 10000029 10000028 10000027 10000026 10000024 10000023 10000021 10000018 10000018 10000017 10000016 10000015 10000014 (2 Replies)
Discussion started by: jackbell2013
2 Replies

6. Shell Programming and Scripting

Extract specific line in an html file starting and ending with specific pattern to a text file

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

7. Shell Programming and Scripting

awk command to find total number of Special character in a column

How to find total number of special character in a column? I am using awk -f "," '$col_number "*$" {print $col_number}' file.csv|wc -l but its not giving correct output. It's giving output as 1 even though i give no special character? Please use code tags next time for your code and... (4 Replies)
Discussion started by: AjitKumar
4 Replies

8. UNIX for Beginners Questions & Answers

Search for words starting and ending with

im trying to search for a WORD in a file which begins with a number followed by a hypen follwed multiple words and end with a dot "." and pront the entire line which matches the above. Please note that there is a space at the begining of each line i/p file 19458 00000-CONTROL-PARA.... (5 Replies)
Discussion started by: anijan
5 Replies

9. Shell Programming and Scripting

Column to row and position data in a text file

Hi everyone.. I have a list of values in a file... a, b, c, 1, 2, 3, aaaa, bbbbb, I am interested in converting this column to a row.. "text",aaaa, bbbb a,1 (7 Replies)
Discussion started by: manihi
7 Replies

10. Shell Programming and Scripting

Print every alternate column in row in a text file

Hi, I have a comma separated file. I would like to print every alternate columns into a new row. Example input file: Name : John, Age : 30, DOB : 30-Oct-2018 Example output: Name,Age,DOB John,30,30-Oct-2018 (3 Replies)
Discussion started by: Lini
3 Replies
GENLIB_COPY_UP_CON_FACE.3(October 1, 1997)								GENLIB_COPY_UP_CON_FACE.3(October 1, 1997)

NAME
GENLIB_COPY_UP_CON_FACE - copy a physical connector from an instance in the current figure SYNOPSYS
#include <genlib.h> void GENLIB_COPY_UP_CON_FACE(face, conname, insname, newname) long index; char *insname; char *conname; char *newname; ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr PARAMETERS
face Connector face in the instance conname Name of the connector in the instance model insname Name of the instance the connector belongs to newname Name to be given to the connector in the current figure DESCRIPTION
COPY_UP_CON_FACE copies a instance connector into the current layout figure, and gives to the new connector the name newname. The face and conname arguments are not suffiscient for non ambiguiously identify a single connector. So, if more than one connector matches these argu- ments, the behaviour described below is applied on all of them. Two behaviour are expected, depending on the instance connector location regarding the abutment box of the current figure. Connector on the abutment box The figure connector is place right over the instance connector. The single connector is duplicated. Connector inside the abutment box The instance connector face is computed in the figure, and then, the connector is duplicated on the given face, at the right coordinates for this face. Then a wire is drawn between the instance connector and the figure connector in the connector layer. ERRORS
"GENLIB_COPY_UP_CON_FACE impossible : missing GENLIB_DEF_PHFIG" No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to place a connector inside it. you must call DEF_PHFIG before any other layout action. "*** genlib error *** GENLIB_COPY_UP_CON_FACE impossible : connector conname face face of instance insname, current figure doesn't exist" No connector matches both the conname and the face arguments. EXAMPLE
#include <genlib.h> main() { /* Create a figure to work on */ GENLIB_DEF_PHFIG("cell"); . . GENLIB_PLACE_LEFT("gaer0_f", "insN", SYMXY); . . GENLIB_DEF_AB(0L, 0L, 0L, 0L); /* Put a connector */ GENLIB_COPY_UP_CON_FACE("i0", 1, "insN", "inz0"); /* Save that on disk */ GENLIB_SAVE_PHFIG(); } SEE ALSO
genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_COPY_UP_ALL_CON(3), GENLIB_COPY_UP_CON(3), GENLIB_PHCON(3), GEN- LIB_THRU_CON_H(3), GENLIB_THRU_CON_V(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. PROCEDURAL GENERATION LANGUAGE
ASIM/LIP6 GENLIB_COPY_UP_CON_FACE.3(October 1, 1997)
All times are GMT -4. The time now is 02:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy