Dears,
i'm glad to be a member of this big UNIXer's group :( ,hoping to be one of'm.
my question:
how i get the subsrting ahmad "from" the string ".ahmad." for example ??
Thank you all. (5 Replies)
I want to change a line like
CPM_THRESHOLD 0.8 //
to a new value using sed
I am trying
sed -i "s/CPM_THRESHOLD/CPM_THRESHOLD\t$COH\t\t\/\//" $INPUT_4
but how can i substitute the whole line begining with CPM_THRESHOLD and substitute it? (2 Replies)
Hi, As I am new to filtering section of Unix I am facing a problem
I have following lines in text file :
Created RELEASE in dist/Apple_release_1_0_.zip
Created RELEASE in dist/Banana_release_1_0_.zip
Created RELEASE in dist/Mango_release_1_0_.zip
Created RELEASE in... (2 Replies)
Hi,
I would like to get a solution to this situation if possible. In a "for" loop how can I assign a value to a variable and then change the name of that variable depending on the loop iteration?
So what I am looking for is something like this in pseudo-code:
for i in 1 2 3 4
do
echo... (2 Replies)
Hi,
I have many scripts in particular directory. And few of the scripts have exit 0 in second line. Now i wanted to list out the scripts name which has the exit 0 in its second line
I tried many options , but i can not get the filename along with the nth line pattern match :mad:. Can anyone... (14 Replies)
Hi,
I am looking for any script which can do the following.
have to read a pattern from fileA and copy it to fileB.
fileA:
...
...
Header
...
...
..p1
...
...
fileB:
....
....
Header (3 Replies)
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Hi ,
I want to print the nth and n+1 lines from a file once it gets a pattern match.
For eg:
aaa
bbb
ccc
ddd
gh
jjjj
If I find a match for bbb then I need to print bbb as well as 3rd and 4th line from the match.. Please help..Is it possible to get a command using sed :) (6 Replies)
Hi,
I am getting crazy after days on looking at it:
Bash in Ubuntu 12.04.1
I want to do this:
pattern="system /path1/file1 file1"
new_pattern=" data /path2/file2 file2"
file to edit: data.db
- I need to search in the file data.db for the nth occurrence of pattern
- pattern must... (14 Replies)
Hi All,
I have sample of listing as following
Database 2 entry:
Database alias = PXRES
Database name = PXRES
Local database directory = /db2/data1/db2phnx
Database release level = d.00
Comment ... (3 Replies)
Discussion started by: ckwan
3 Replies
LEARN ABOUT HPUX
diffmk
diffmk(1) General Commands Manual diffmk(1)NAME
diffmk - mark changes between two different versions of a file
SYNOPSIS
prevfile currfile markfile
DESCRIPTION
compares the previous version of a file with the current version and creates a file that includes ``change mark'' commands. prevfile is
the name of the previous version of the file and currfile is the name of the current version of the file. generates markfile which con-
tains all the lines of the currfile plus inserted formatter ``change mark'' requests. When markfile is formatted, changed or inserted text
is shown by a character at the right margin of each line. The position of deleted text is shown by a single
If the characters and are inappropriate, a copy of can be edited to change them because is a shell script.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
A typical command line for comparing two versions of an file and generating a file with the changes marked is:
can also be used to produce listings of C (or other) programs with changes marked. A typical command line for such use is:
where the file contains:
The request can specify a different line length, depending on the nature of the program being printed. The request is probably needed only
for C programs.
WARNINGS
Aesthetic considerations may dictate manual adjustment of some output.
does not differentiate between changes in text and changes in formatter request coding. Thus, file differences involving only formatting
changes (such as replacing with in a text source file) with no change in actual text can produce change marks.
Although unlikely, certain combinations of formatting requests can cause change marks to either disappear or to mark too much. Manual
intervention may be required because the subtleties of various formatting macro packages and preprocessors is beyond the scope of cannot
tolerate commands in its input (see tbl(1)), so any request that would appear inside a range is silently deleted. The script can be
changed if this action is inappropriate, or can be run on two files that have both been run through the preprocessor before any comparisons
are made.
uses and thus has the same limitations on file size and performance that may impose (see diff(1)). In particular the performance is non-
linear with the size of the file, and very large files (well over 1000 lines) may take extremely long to process. Breaking the file into
smaller pieces may be advisable.
also uses the ed(1) editor. If the file is too large for error messages may be embedded in the file. Again, breaking the file into
smaller pieces may be advisable.
SEE ALSO diff(1), nroff(1).
diffmk(1)