Sponsored Content
Top Forums Shell Programming and Scripting Use sed/awk to do like copy and paste Post 302973632 by boobytrap on Thursday 19th of May 2016 01:56:30 PM
Old 05-19-2016
I have this after try to simulate

Code:
awk: xml.awk:3: fatal: cannot open file `-e' for reading (No such file or directory)

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

awk or sed or paste

i have a file and i need the text to line up currently the file looks like so job scheduled complete 12 12:00 wendsday 13 1:00 wednsday its a text file but not sure how to manipulate the file for it to line up (3 Replies)
Discussion started by: leprichaun
3 Replies

2. Shell Programming and Scripting

how to replace paste utility with sed/awk

hi I have two file that I would like to paste line by line. I use to use paste for this. But my current platform will not have paste utility. Could anyone please suggest how I it can be done using sed,awk or even simple bourne shell scripts? Thanks Sabina (1 Reply)
Discussion started by: ssayeed
1 Replies

3. Shell Programming and Scripting

awk/grep copy and paste and insert in between lines.

Hi all, I'm a unix newb andI'm trying to write a script that can copy some text paste it in a certian place and then add a number. It's not really clear but I'll show an example. what the file looks like right now: Linux 2.6.24-24-generic (abc) 07/15/09 23:25:01 CPU ... (6 Replies)
Discussion started by: the1hand3r
6 Replies

4. Shell Programming and Scripting

copy/paste with awk

Hi everybody, I have two XML files. I am working on a script that could copy and paste the contents of the first xml file to the desired location in the second xml file. Here is my first XML file. This is the second XML file. Finaly, I wnat to obtain something like that : ... (2 Replies)
Discussion started by: lsaas
2 Replies

5. Shell Programming and Scripting

sed copy paste

Hello, I have this path and file: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txt I want to end up with: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txtTHIS_SPOT Take the dir after the 10th slash, add a tab at the end and paste the dir it copied. Thanks (4 Replies)
Discussion started by: crowman
4 Replies

6. UNIX for Dummies Questions & Answers

vi copy/paste problem

I'm having a problem copy/pasting from a txt file in windows to vi. What happens is I copy a chunk of text, go to the putty terminal, go into insert mode, and right click, and it will stop pasting at a random point and freeze up. Nothing I do gets out of it. This only happens on my account... (1 Reply)
Discussion started by: solidarity
1 Replies

7. Shell Programming and Scripting

Copy and Paste to a new document

Hello, I am quite new to shell scripting so don't know all the tools available. What I'm trying to do is open a file optimal.txt search for objectiveValue and copy the number in quotes next to it. e.g. ... solutionName="incumbent" solutionIndex="-1" objectiveValue="13246" ... (6 Replies)
Discussion started by: StephanR
6 Replies

8. Shell Programming and Scripting

Using a combination of sort/cut/grep/awk/join/paste/sed

I have a file and need to only select users that have a shell of “/bin/bash” in the line using awk or sed please help (4 Replies)
Discussion started by: boyboy1212
4 Replies

9. Shell Programming and Scripting

sed help - search/copy from one file and search/paste to another

I am a newbie and would like some help with the following - Trying to search fileA for a string similar to - AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3 I then want to replace that string with a string from fileB - ... (5 Replies)
Discussion started by: ncwxpanther
5 Replies

10. Shell Programming and Scripting

Using SED to copy/paste with slashes and tabs.

I have: 2012/01_January/Kite/foldername/otherfoldername/placeholderBlue I want to end up with: /foldername/otherfoldername/2012/01_January/Kite/Blue Basically take everything before the first tab and put it in the place of the consistently named word placeholder and add a slash in place... (2 Replies)
Discussion started by: crowman
2 Replies
CTANH(3)						   BSD Library Functions Manual 						  CTANH(3)

NAME
ctanh -- complex hyperbolic tangent function SYNOPSIS
double complex ctanh(double complex z); long double complex ctanhl(long double complex z); float complex ctanhf(float complex z); DESCRIPTION
ctanh(z) computes the hyperbolic tangent of the complex floating-point number z. For all complex floating point numbers z, ctanh(conj(z)) = conj(ctanh(z)), ctanh(-z) = -ctanh(z). SPECIAL VALUES
The symmetries of ctanh() are used to abbreviate the specification of special values. ctanh(0 + 0i) returns 0 + 0i. ctanh(0 + inf i) returns NaN + NaN i, and raises the invalid flag. ctanh(0 + NaN i) returns NaN + NaN i. ctanh(x + inf i) returns NaN + NaN i, and raises the invalid flag, for finite nonzero x. ctanh(x + NaN i) returns NaN + NaN i, for finite nonzero x. ctanh(inf + 0i) returns 1 + 0i. ctanh(inf + yi) returns 1 +- 0i, for finite positive y, with the sign chosen to match the sign of sin(2y). ctanh(inf + inf i) returns 1 + 0i. ctanh(inf + NaN i) returns 1 + 0i. ctanh(NaN + 0i) returns NaN + 0i. ctanh(NaN + yi) returns NaN + NaN i, for nonzero numbers y. ctanh(NaN + NaN i) returns NaN + NaN i. NOTES
SEE ALSO
ctan(3) complex(3) STANDARDS
The ctanh() function conforms to ISO/IEC 9899:2011. 4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy