The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Escaping specific character in awk
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Escaping specific character in awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-28-2008
Tytalus
echo {1..9}^2\;|bc
Join Date: Jun 2003
Location: Scotland
Posts: 431
hmmm
hacky solution is:
Code:
tr "\"" "%" <file1 | nawk -F";" '{ print $1"~"$2"~"$3"~"$4"~"$5"~"$6"~"$7"~"$8; }' | tr "%" "\""
i.e. convert the "'s to %'s then map them back later....
EDIT: nope - ignore me - I'm talking rubbish ;-) too early on a monday morning - need more caffeine
Tytalus
View Public Profile
Find all posts by Tytalus
Find Tytalus's past nominations received
Find Tytalus's present nominations given