How can I get sed to include backslash and 'f' in the output
Both of these fail. One has two form feeds, the second form leaves all the backslashes.
Obviously, I'm trying to change texi markup into man page markup, but it isn't working.
What should be output? I can't understand your sed command.
Of course not. "sed" is a write-only language. Actually, there was a hidden layer of filtering that I couldn't see. Since everything else was working and that was not a assumed that the "\f" were processed by sed. Nope. There was another layer I didn't know about doing the "\f" -> ^L translation that was avoided by doubling the backslashes. Sorry.
Anyway, to be clear, the desired outcome is from the first expression:
The "@code{}" being a texi-ism and "\fBfoo\fP" being man page text.
---------- Post updated at 06:26 AM ---------- Previous update was at 06:21 AM ----------
editing isn't working.
on that last post. This should be easier to read.
---------- Post updated at 06:26 AM ---------- Previous update was at 06:26 AM ----------
editing isn't working.
on that last post. This should be easier to read.
---------- Post updated at 06:28 AM ---------- Previous update was at 06:26 AM ----------
Hmmm. This posting software needs some fixes!!!
---------- Post updated at 06:28 AM ---------- Previous update was at 06:28 AM ----------
I am running an awk to verify all the memory settings for tomcat, and need to include path or directory in output ....
I am running:
awk '{ print $3 }' /opt/dir1/dir2/*/tomcat/bin/setenv.sh
Output results:
-Xms1024m
-Xmx1536m
-Xmx1536m
-Xmx1024m
-Xms1024m
-Xms1024m
-Xms512m
-Xms1024m... (3 Replies)
I'm trying to convert this line:
to
\ with sed.
This is what I have so far:
sed -e 's/\]*\)\]/\\\\\/'
but this still gives me .
Any suggestions? (15 Replies)
I have text file which is a tab delimited one. Sample data from the file is shown below:
unix is\ great\ os
linux\ is superb
I want to replace that backslash with empty string preserving the tab delimiter. Output should be
unix is great os
linux is ... (3 Replies)
hyper link- abc:8081/xyz/2.5.6/rtyp-2.5.6.jar
Needs to get "rtyp-2.5.6.jar" i.e character after last backslash "/"
how to do this using sed/awk??
help is highly appreciated. (7 Replies)
I have a shell script that I have written to be a kind of to-do/notepad that's quickly executable from the command line. However, special characters tend to break it pretty well.
Ie: "notes -a This is an entry." works fine.
"notes -a This is (my) entry." will toss back a bash syntax error on... (5 Replies)
I am trying to write a bash shell script, which extracts a sentence from a dynamically created dynamic file and passes it as a variable to sed and uses that sentence as a starting point to pull the content from a log file.
the key part of the script is this
key=`cat /tmp/dynamic`
sed -n... (3 Replies)
Dear all,
I am using Mac OSX, have been successfully written an awk script during the last days. I use the script to convert parts of a .dot-file into graphml code.
First question: Backslash
My .dot-code includes repeatedly the sign "\n".
I would like to search for this sign and substitute... (4 Replies)
I have a line that contains backslashes in which I want sed to substitute text with variables.
The line;
\\s008\2033330user$
I want to change this in \\s008.ourschool.com\2033330user$
I now use this script:
USER=2033330user
sed 's/\\'"$USER"'/.ourschool.com\\'"$USER/"
This doesn't... (3 Replies)
Hi,
I have a variable read from user input:
PROFILESROOTDIR="\\194.185.82.188\CMSRepository\EncodingProfiles"
awk -F"=" -v gr=$PROFILESROOTDIR '/ProfilesRootDirectoryFromXOEMachine/{$2=gr;}1' OFS="=" $CFGFILE > "${CFGFILE}_new"
For this awk to work properly I need to replace in the... (7 Replies)