10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
on ksh
What does the following do?
grep -v "toolbox" $home_oracle/.profile >$home_oracle/.profile.$$ Thanks.
Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: big123456
3 Replies
2. Shell Programming and Scripting
Hi Gurus,
I have a file contains special character.
when using:
grep 'xxxxx' filename,
it returns whole line.
when using:
grep -evt 'xxxxx' filename
it returns whole line with special charactor.
when running command:
nl filename |grep 'xxxxxx'
the line break by the special... (1 Reply)
Discussion started by: ken6503
1 Replies
3. Shell Programming and Scripting
how do i egrep set of characters ?
egrep -iwF "id|the|*"
throws following excption
egrep can use only egrep pattern syntax
I want to egrep the string along with (*) special character (4 Replies)
Discussion started by: nikhil jain
4 Replies
4. Shell Programming and Scripting
Hi,
I have written a unix expect utility "ssh-login.exp" which connects (ssh) to remote host and execute some shell script. I am calling this "ssh-login.exp" utility from another shell script.
"ssh-login.exp" takes username, password, host and shell script path to execute on remote host. All... (1 Reply)
Discussion started by: Mahesh Desai
1 Replies
5. Shell Programming and Scripting
When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk? (7 Replies)
Discussion started by: dmesserly
7 Replies
6. Shell Programming and Scripting
I have below line in a unix file, I want to delete one character after "Â".
20091020.Non-Agency CMO Daily Trade Recap Â~V Hybrids
The result should be :
20091020.Non-Agency CMO Daily Trade Recap  Hybrids
i dont want to use "~V" anywhere in the sed command or any other command, just remove... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies
7. Shell Programming and Scripting
Hi,
In the shell script, i need to remove the special charater "\" with "\\". For example, i need to replace "D:\FXT\ABC.TXT" with "D:\\FXT\\ABC.TXT".
However, when trying to do something like , i get the below error :-
-->echo "D:\FXT\ABC.TXT" | sed -e 's#\#\\#g'
sed: 0602-404 Function... (7 Replies)
Discussion started by: amit_arora
7 Replies
8. Shell Programming and Scripting
Hi
I am comparing 2 files (using diff command) with numerical data in them. In the output file I want only the differences which are in file2 but not in file1. Although I am getting the diffences i am also getting special characters in the output file which i do not want. Can somebody help me
For... (3 Replies)
Discussion started by: ashu_r2001
3 Replies
9. Shell Programming and Scripting
Hi,
I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately.
a) What does this below character means?
b) How can i remove it,
I already have sed '/^$/d'
c) Will this effect the file by any means... (4 Replies)
Discussion started by: tostay2003
4 Replies
10. Programming
hey there
im a bit stuck on executing commands that include the special character '?'. can someone recommend a way on how i would be able to execute it?? i thought the glob function could be useful (still mite be) but upon entering the command
'ls pars?' it listed all the files in the... (1 Reply)
Discussion started by: mile1982
1 Replies
diffmk(1) General Commands Manual diffmk(1)
NAME
diffmk - Marks differences between files
SYNOPSIS
diffmk [-b] [-ab'mark'] [-ae'mark'] [-cb'mark'] [-ce'mark'] [-db'mark'] [-de'mark'] file1 file2
The diffmk command compares two versions of a file and creates a new file that marks the differences.
OPTIONS
Uses mark to mark where added lines begin. Uses mark to mark where added lines end. Ignores differences that are only changes in tabs or
spaces on a line. Uses mark to mark where changed lines begin. Uses mark to mark where changed lines end. Uses mark to mark where
deleted lines begin. Uses mark to mark where deleted lines end.
DESCRIPTION
The file1 and file2 variables are the old and new versions of the file, respectively. The diffmk command compares them and writes a new
version to standard output, which can be redirected to a file. This output contains the lines of file2 marked with nroff change mark
requests (.mc), or with the marks you specify with the -ab, -ae, -cb, -ce, -db, and -de options.
When output containing requests is formatted with nroff, changed or inserted lines are marked by a | (vertical bar) at the right margin of
each line. An * (asterisk) indicates that a line was deleted.
If the DIFFMARK environment variable is defined, it names a command string that diffmk uses to compare the files. (Normally, diffmk uses
the diff command.) For example, you might set DIFFMARK to diff -h in order to better handle extremely large files.
EXAMPLES
To mark the differences between two versions of a text file, enter: diffmk -ab'>I:' -ae'<I' -cb'>C' -ce'<C' -db'>D' -de'<D'
chap1.old chap1 >chap1.diffs
This causes diffmk to create a copy of chap1 called chap1.diffs, showing differences between chap1.old and chap1. Additions of one
or more lines are marked with >I and <I, changed lines are marked with >C and <C, and deletions are marked with >D and <D. To mark
differences with nroff requests, enter: diffmk chap1.old chap1 > chap1.nroff
This produces a copy of chap1 called chap1.nroff containing nroff change mark requests to identify text that was added to, changed,
or deleted from chap1.old. To use different nroff marking requests and ignore changes in white space, enter: diffmk -b -cb'.mc
%' chap1.old chap1 > chap1.nroff
This imbeds commands that mark changes with % (percent sign), additions with | (the default, because no -a option is specified), and
deletions with * (the default). It does not mark changes that only involve a different number of spaces or tabs between words (-b).
SEE ALSO
Commands: diff(1), nroff(1)
diffmk(1)