9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know there are many questions and replies regarding grep command.
What I would like to do is a bit different.
hello world welcome to my page
this is my test site
how are you
I am fine, thank you
where have you been
I was in hospital
really hope you are fine now
Thanks,... (10 Replies)
Discussion started by: baris35
2. UNIX for Dummies Questions & Answers
I am trying to copy a line in vi editor and paste it with below commands but paste command is not working and instead of paste action prints the p character!!
I should also mention that the server is Solaris...
1) crontab -e
2) j to move down
3) yy to copy the line
4) o to... (4 Replies)
Discussion started by: Newman
3. Shell Programming and Scripting
I have one mainframe copy book where I want to copy n times depend on occurs which mention below.
Below highlighted row mention “occurs 2 times” so I need to copy 2 times till next label 10.
C14992 10 FILLER PIC X(2835).
01 ... (7 Replies)
Discussion started by: srivalli
4. Shell Programming and Scripting
I want to know how I can copy line 6th to 10th and paste it after 17th line in same file.
Biplab (19 Replies)
Discussion started by: Biplab
5. UNIX for Dummies Questions & Answers
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
6. UNIX for Dummies Questions & Answers
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
7. Shell Programming and Scripting
I want to grep for a line and copy and paste that line.
---- file abc.txt ----
host=atlx1 sid=atld1 email@example.com
host=atlx2 sid=atld2 firstname.lastname@example.org
host=atlx3 sid=atld3 email@example.com
host=atlx4 sid=atld4 firstname.lastname@example.org
--- end of file abc.txt ----
Now I... (16 Replies)
Discussion started by: upsrk
8. UNIX for Dummies Questions & Answers
How do I cut, copy and paste under unix??? (2 Replies)
Discussion started by: aitor314
9. UNIX Desktop Questions & Answers
One of the things that I have learned to take for granted in the Win32 world is the cut, copy and paste hotkeys of ^X, ^C and ^V.
I use these keys all the time under Win32 to copy and paste information from one GUI into another GUI.
My question is, does X have a similiar standard?
... (4 Replies)
Discussion started by: auswipe
PASTE(1) BSD General Commands Manual PASTE(1)
paste -- merge corresponding or subsequent lines of files
paste [-s] [-d list] file ...
The paste utility concatenates the corresponding lines of the given input files, replacing all but the last file's newline characters with a
single tab character, and writes the resulting lines to standard output. If end-of-file is reached on an input file while other input files
still contain data, the file is treated as if it were an endless source of empty lines.
The options are as follows:
-d list Use one or more of the provided characters to replace the newline characters instead of the default tab. The characters in list
are used circularly, i.e., when list is exhausted the first character from list is reused. This continues until a line from the
last input file (in default operation) or the last line in each file (using the -s option) is displayed, at which time paste
begins selecting characters from the beginning of list again.
The following special characters can also be used in list:
\ backslash character
Empty string (not a null character).
Any other character preceded by a backslash is equivalent to the character itself.
-s Concatenate all of the lines of each separate input file in command line order. The newline character of every line except the
last line in each input file is replaced with the tab character, unless otherwise specified by the -d option.
If '-' is specified for one or more of the input files, the standard input is used; standard input is read one line at a time, circularly,
for each instance of '-'.
The paste utility exits 0 on success, and >0 if an error occurs.
List the files in the current directory in three columns:
ls | paste - - -
Combine pairs of lines from a file into single lines:
paste -s -d '
Number the lines in a file, similar to nl(1):
sed = myfile | paste -s -d '
' - -
Create a colon-separated list of directories named bin, suitable for use in the PATH environment variable:
find / -name bin -type d | paste -s -d : -
The paste utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
A paste command appeared in Version 32V AT&T UNIX.
June 25, 2004 BSD