Re: awk command help
From: Kenny McCormack (gazelle_at_yin.interaccess.com)
Date: 10/27/04
- Next message: naniwadekar: "How does PWD##... construct work"
- Previous message: Jeremiah DeWitt Weiner: "Re: awk command help"
- In reply to: Vish grover: "awk command help"
- Next in thread: Ed Morton: "Re: awk command help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 20:43:48 GMT
In article <1cb54a8f.0410271159.176f1938@posting.google.com>,
Vish grover <vishal_stud@yahoo.com> wrote:
>Hi ,
>
>I wanted to write a awk/sed command to (literally)swap two paramaters
>of a functions .
>So for eg :
>func_foo(param1, param2 , param3 , param4, param5);
>should be func_foo(param1, param2, param4, param3 , param5);
>
>
>Here is my simple awk command file "mycmnd.awk":
>
>BEGIN { RS=";" ; FS ="," }
> /func_foo\(/{
> print $1 "," $2 "," $4 "," $3 "," $5 ";" }
BEGIN { RS=";" ; FS ="," }
/func_foo\(/{ $0 = $1 "," $2 "," $4 "," $3 "," $5 ";" }
13
- Next message: naniwadekar: "How does PWD##... construct work"
- Previous message: Jeremiah DeWitt Weiner: "Re: awk command help"
- In reply to: Vish grover: "awk command help"
- Next in thread: Ed Morton: "Re: awk command help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]