12-15-2009
Can you explain the command.
%s/\(.*\) .*/& \1/
Substitute
---------- Post updated at 12:56 PM ---------- Previous update was at 12:54 PM ----------
%s/\(.*\) .*/& \1/
s :substitute
.* means number of characters
\ means do not take other meaning
what does & mean?
Can you explain the command please?
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All,
I have a file containing 12 lines.
First 3 lines have 9 values and the remaining 9 lines with no values. I was trying to copy and paste these 9 values of the first 3 lines into last 9 lines simultaneously as A=1.491331, B=1.539000 ..... but I don't know how to cope with this... (9 Replies)
Discussion started by: sullah
9 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
HP-UX dev4 B.11.11 U 9000/800 3251073457
I need to copy huge data from windows text file to vi editor. when I tried copy huge data, the format of data is not preserverd and appered to scatterd through the vi, something like give below. Please let me know, how can I correct this?
... (18 Replies)
Discussion started by: alok.behria
18 Replies
3. Shell Programming and Scripting
How to copy the complete content from a file in vi Editor to windows ( notepad ).
I can use " select " and paste it to windows but this is restricted to current page. Not allowing me to scroll down or up when selecting the content.:confused: (1 Reply)
Discussion started by: frintocf
1 Replies
4. UNIX for Dummies Questions & Answers
Hello guys,
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
4 Replies
5. UNIX for Beginners Questions & Answers
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Discussion started by: dineshkumarsrk
26 Replies
LEARN ABOUT DEBIAN
bf-level-editor
BF-LEVEL-EDITOR(1) General Commands Manual BF-LEVEL-EDITOR(1)
NAME
bf-level-editor -- The level editor for the Bear Engine.
SYNOPSIS
bf-level-editor [-h] [--log-concise] [--log-file=file] [--log-level=string] [--log-uniq] [-c] [-u] file(s) ...
DESCRIPTION
This program is the level editor for the Bear Engine. This is a part of the Bear Factory.
OPTIONS
The following options can be passed to the program:
-c, --compile
Compile the files and exit.
-h, --help
Show summary of options.
--log-file=file
Write log output in "file".
--log-level=string
Output log messages up to a given level, among "error", "warning" and "verbose".
-u, --update
Open and save the level files.
-v, --version
Print the version of the editor and exit.
SEE ALSO
running-bear(6), bf-animation-editor(1), bf-model-editor(1)
AUTHOR
This manual page was written by Julien Jorge julien.jorge@gamned.org. Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
BF-LEVEL-EDITOR(1)