Did you read and understand my quote from info sed?
Quote:
The '/' characters may be uniformly replaced by any other single character within any given 's' command.The '/' character (or whatever other character is used in its stead) can appear in the REGEXP or REPLACEMENT only if it is preceded by a '\' character.
So my command reads
as the / is part of both pattern and replacement. The delimiter or separator is #, the pattern is /, and the replacement is /bck1/.
Hi, excuse me for my poor english.
My problem is that:
I have a File
i want to add to each line of that file two strings: one at the beginning of the line, one at the ending.
string1="abcd"
string2="efgh"
i want $string1 content $string2 for each line.
Is that possible? (3 Replies)
Hi,
how could you go about removing words that begin with a certain character.
assuming that this character is '-' I currently have
echo "-hello" | sed s/-/""/
which replaces the leading dash with nothing but I want to remove the whole word, even if there are multiple words beginning... (3 Replies)
I am very new to scripting and I know this request is simple but I am having no luck with it.
I have a file a.dat with the following data in it.
aa
bb
cc
dd
I need to run a script that will take each line of a.dat and put dsjc/ubin/ in front of each record, so the output looks like
... (2 Replies)
hi I am trying to use SED to replace the line matching a pattern using the command
sed 'pattern c\
new line
' <file1 >file 2
I got two questions
1. how do I insert a blank space at the beginning of new line?
2. how do I use this command to execute multiple command using the -e... (5 Replies)
Hi
I've been trying to search but couldn't quite get the answer I was looking for.
I have a a file that's like this
Time, 9/1/12
0:00, 1033
0:10, 1044
...
23:50, 1050
How do I make it so the file will be like this?
9/1/12, 0:00, 1033
9/1/12, 0:10, 1044
...
9/1/12, 23:50, 1050
I... (4 Replies)
Hi all,
I have a file like this
Q8N302
21-84
Q8N157
15-45
Q99996
167-201
202-251
269-318
I want to insert a character or space if the line starts with a number and I used the command
sed 's/^/#/'
But in the output file, when it inserts this character, first digit in the number is... (2 Replies)
Hi,,
I have the line below in a file:
$!VarSet |LFDSFN1| = '"E:\APC\Trials\20140705_427_Prototype Trial\Data\T4_20140705_Trial_Cycle_Data_13_T_Norm.txt" "VERSION=100 FILEEXT=\"*.txt\" FILEDESC=\"General Text\" "+""+"TITLE{SEARCH=NONE NAME=\"New Dataset\" LINE=1I want to write a script to change... (2 Replies)
Hi, I have been trying to see how i can insert a column in the beginning to my html table
This is how it looks
Name Age
Sid 32
John 33
Mary 34
I want to insert a column Job before Name column, so it looks like
Job Name Age
IT Sid 32
Doctor... (3 Replies)
Discussion started by: sidnow
3 Replies
LEARN ABOUT DEBIAN
icmstart.rc
icmstart.rc(7) icmstart resource file icmstart.rc(7)NAME
icmstart.rc - The icmstart(1) resource file
DESCRIPTION
The icmstart.rc file defines the initial files of a program that are installed by icmstart(1).
By default icmstart.rc is found in /etc/icmake/icmstart.rc, but if a file $HOME/.icmake/icmstart.rc is found then the latter file is used
by icmstart(1). $HOME/.icmake/icmstart.rc in turn is overruled by specifying a -c option when invoking icmstart(1).
The default resource file contains the following specifications, preparing for the construction of a C++ program using icmbuild(1):
CLASSES
P main.cc
P main.ih
P usage.cc
P version.cc
P ? scanner
P ? parser
The icmstart.rc file may contain:
o empty lines, which are ignored;
o lines beginning with a hash-character (#), also ignored;
o Optionally: a P (don't install with icmstart xxx library) or an L (don't install with icmstart xxx program), followed by a blank;
see also icmstart(1).
o Optionall: a ? (followed by a blank) following the optional P or L in which case the installation of the element must be confirmed
by the user.
o Source path names. Relative path names are interpreted relative to the current working directory. Environment variables are not
expanded, the initial tilde character is interpreset as the user's home directory.
o Source path names followed by a destination (relative to the directory initialized by icmstart(1)). A source path may be either a
file or a directory. If a directory is specified then all files in and below that directory will be installed.
When specifying a destination a path may be specified as well. However, the destination path is always interpreted relative to the instal-
lation directory specified when calling icmstart(1).
If a destination is omitted, the source is installed as specified below icmstart(1)'s destination directory.
EXAMPLES
The following entries can be used in an icmstart.rc file:
o source
`Source' must be in the skeleton directory visited by icmstart(1) and is installed as source in the destination directory specified
when calling icmstart(1).
o source dest
`Source' must be in the skeleton directory visited by icmstart(1) and is installed as dest in the destination directory specified
when calling icmstart(1).
o ~/path
`~/path' is installed as ~/path in the destination directory specified when calling icmstart(1). The ~-character is expanded to the
user's home directory.
o ~/path dest
`~/path' is installed as dest in the destination directory specified when calling icmstart(1). The ~-characteris expanded to the
user's home directory.
o /path
`/path' is installed as ./path in the destination directory specified when calling icmstart(1).
o /path dest
`/path' is installed as dest in the destination directory
o ? source
The user must confirm the installation of source.
o ? source dest
The user must confirm the installation of source as dest in the destination directory specified when calling icmstart(1).
o # text
Interpreted as comment and ignored. The #-character must be the first character on the line.
o an empty line
Empty lines are skipped.
FILES
The mentioned paths are sugestive only and may be installation dependent:
o /usr/share/icmake/icmconf Example of an icmbuild configuration file;
o /usr/share/icmake/CLASSES Example of an icmbuild CLASSES file.
o /usr/share/icmake/icmstart.rc Default skeleton resource file.
SEE ALSO icmake(1), icmbuild(1), icmconf(7), icmstart(1)BUGS
None reported
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
icmake.7.18.00.tar.gz 1992-2012 icmstart.rc(7)