11-15-2017
Quote:
Originally Posted by
KK230689
Hi ,
It working fine. last character of double quotes are converted in to §. we need only double dollar are falling in value not at the end of the line. if double quotes falls first and last of every line . it should be ^.
We may have a language barrier here. What does "
double dollar are falling in value" mean?
Please show us which
awk command you are using, the sample input you are using, and the output you are getting. If you are trying to convert dollar signs (
$) as well as double-quotes (
") please explain under what circumstances that should happen. I didn't see anything about changing dollar signs in your earlier posts.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can someone help me again, I think with awk? I have a file with 4 columns (pipe-delimited):
I just want to convert the last field so that e1 is now 'message 1', e2 is 'message 2', e0 is 'message 3', etc. I don't want to change any other columns because the e0-e10 code may appear as part of a... (4 Replies)
Discussion started by: giannicello
4 Replies
2. Shell Programming and Scripting
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
Discussion started by: todd.cutting
2 Replies
3. Shell Programming and Scripting
Hi,
I have following samp.txt file in unix.
samp.txt
01Roy2D3M000000
02Rad2D3M222222
.
.
.
.
10Mik0A2M343443
Desired Output
01Roy2A3M000000
02Rad2A3M222222
.
. (5 Replies)
Discussion started by: techmoris
5 Replies
4. Shell Programming and Scripting
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Discussion started by: crownedzero
14 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I'm new to this forum and bash scripting. I have the following problem, I need to copy some files (from one dir. to another) whose first 5 numbers (subjects' ID) match the directory names. Here a shortened version of what I'm trying to do:
names=(32983_f 35416_f 43579_f) # these are... (6 Replies)
Discussion started by: ada1983
6 Replies
6. Shell Programming and Scripting
Hi I have one file which is containing about 5000 rows and 20 columns
I will just explain about my requirement here briefly with sample file, I have attached also, please help....me..
1 28.25 36.42
5 28.26 36.42
10 28.23 36.43
15 28.22 36.43
20 28.2 36.42
25... (6 Replies)
Discussion started by: nex_asp
6 Replies
7. Shell Programming and Scripting
Hi All, I will need an help with respect to replacing a range of columns on a non-delimited file using a particular string pattern.
Say file input is
MYNUMBERD000000-BAN CHUE INSNTS ** N+
MYAREDSDD000000+BAN CHUE INSNTS ** N+
MYDERFFFSD00000-GIR PENT - ACH ** ... (5 Replies)
Discussion started by: navojit dutta
5 Replies
8. UNIX for Dummies Questions & Answers
I have a file that looks like this:
14985 DPN verb PPa to spend.
12886 DPNDJN bay tree.
15686 DQ verb to observe
15656 KC ... (7 Replies)
Discussion started by: jvoot
7 Replies
9. Shell Programming and Scripting
I have been reading old posts and trying to come up with a solution for the below: Use a tab-delimited input file to assign
point to variables that are used to update a specific field, Rank. I really couldn't find too much in the way of assigning points
to variable, but made an attempt at an awk... (4 Replies)
Discussion started by: cmccabe
4 Replies
10. Shell Programming and Scripting
Hi Forum.
I tried searching for a solution using the internet search but I haven't been able to find any solution for what I'm trying to accomplish.
I have a fixed width column file where I need to search for any occurrences of "D0" in col pos.#1-2, 10-11, 20-21 and replaced it with "XD".
... (2 Replies)
Discussion started by: pchang
2 Replies
LEARN ABOUT HPUX
cfingerd.text
CFINGERD.TEXT(5) Configurable Finger Daemon CFINGERD.TEXT(5)
NAME
cfingerd.text - cfingerd text rules
EXPLANATION
cfingerd offers different commands that can be placed in text files to display corresponding information. Each command used with cfingerd
in text files begins with a dollar-sign (or a "$"). This usually indicates to cfingerd that when it's displaying a file, it issues the
command given directly after that character and inserts its output.
If you want to display a raw "$" sign, simply put two "$" signs together, or "$$".
Text commands are only parsed if ALLOW_LINE_PARSING is enabled in /etc/cfingerd/cfingerd.conf(5). If it is disabled the text files will be
sent as is, complete with any single or double dollar signs they may contain.
TEXT COMMANDS
The following is a list of text commands and what they do. They are checked case insensitively.
$CENTER will display the entire contents of the line. This command must start at the beginning of the line. This is a very common com-
mand.
$DATE displays the current system date in the format of MM/DD/YY.
$TIME displays the current system time in the format HH:MM A/PM (timezone).
$IDENT displays the identity of the current person fingering your system.
$COMPILE_DATETIME displays the date and time of which the current issue of cfingerd was compiled on your system.
$VERSION displays the current version of cfingerd.
$EXEC executes the rest of the line as a system command and send the output to the fingering user. Pipes, parameters etc. are available.
The $EXEC command must be on a line by itself in order to function properly. The command is executed as nobody.nogroup if used in a system
file. If used in a user file (e.g. .plan) the command is executed as that particular user. cfingerd will fork() before executing the new
command and will drop all priviledges so this is safe.
This feature is only available if ALLOW_EXECUTION is enabled in cfingerd.conf. The program may prodeuce a maximum of 10MB of output.
CONTACTING
If you like the software, and you want to learn more about the software, or want to see a feature added to it that isn't already here, then
please write to cfingerd@infodrom.north.de. The project's webpage is at http://www.infodrom.north.de/cfingerd/ .
SEE ALSO
cfingerd(8), cfingerd.conf(5), finger(1), userlist(1), any of the included docs with the standard cfingerd distribution.
1.4.2 7 Aug 1999 CFINGERD.TEXT(5)