The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Moving Part of a field to another field using 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
:
Moving Part of a field to another field using AWK
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
08-04-2006
vish_indian
Registered User
Join Date: Jun 2006
Location: Delhi, India
Posts: 92
Quote:
what if the Field seperator is a " as opposed to a , ?????
echo "a\"b\"c" | awk -F'"' '{print $1,$2,$3}'
" enclosed in ' '
or
echo "a\"b\"c" | awk -F"\"" '{print $1,$2,$3}'
" enclosed in " ", preceeded by a \
vish_indian
View Public Profile
Find all posts by vish_indian
Find vish_indian's past nominations received
Find vish_indian's present nominations given