Gawk and sed question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Gawk and sed question
# 1  
Old 05-07-2013
Gawk and sed question

Can anyone tell me what this script does?

Code:
sort file1.txt | awk -F, -f event.gawk

Thank you.

Last edited by radoulov; 05-07-2013 at 11:33 AM..
# 2  
Old 05-07-2013
sort a file
then perform 'some awk instructions' on the file which is delimited by a comma
where the awk instructions are in a file called event.gawk
This User Gave Thanks to joeyg For This Post:
# 3  
Old 05-07-2013
To decode all, you need to list the content of the file event.gawk.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

sed question

have some data and I'm attempting to manipulate with sed with not much success. Name John Davis Phone 5555555 Name Tim Watson Phone 1111111 would like to get that data to sort like this John Davis 5555555 Tim Watson 1111111 gotten sed to search for the value below 'Name'... (5 Replies)
Discussion started by: jimmyf
5 Replies

2. UNIX for Beginners Questions & Answers

sed question

Hi, :) I tried this to append a line with sed, e.g: cat -n "$CONFIG_FILE" |sed -n '7,100p' read -p "Please choice a line :" INPUT_LINE read -p "Please enter the path of file or directory that you want exclude :" INPUT_PATH_OPTS sed ''$INPUT_LINE's/$/ - OPTIONS:... (7 Replies)
Discussion started by: Arnaudh78
7 Replies

3. SCO

Gawk Question

I am trying to use gawk to search a file and put the second value of the string into a string. gawk -F: '$1~/CXFR/ {print $2}' go.dat go.dat ==================== HOME :/ CTMP :/tmp CUTL :/u/rdiiulio/bin CWRK :/u/work CXFR :/u/xfer ... (4 Replies)
Discussion started by: trolley
4 Replies

4. Windows & DOS: Issues & Discussions

Extracting variables between commas : GAWK or SED

Hello, I need some help, I got a CSV file called test.txt with this text in it : 08/02/2011;0,677;0,903;1,079;1,336;1,513;1,683 There's only a line and i need to copy theese numbers into variables : 0,677 0,903 1,079 1,336 1,513 1,683 The output file should look like this... (5 Replies)
Discussion started by: jujulips
5 Replies

5. Shell Programming and Scripting

Select ip and date using sed or gawk

1.56.253.48 - - "GET " 1.6.253.48 - - "GET " 1.65.253.48 - - "GET " 1.65.253.48 - - "GET " 1.63.53.48 - - "GET " 1.65.253.48 - - "GET " 1.16.23.48 - - "GET " 1.64.25.48 - - "GET " need command which give the output 1.6.253.48 - 09/Nov/2009:07:02:24 1.65.253.48 -... (7 Replies)
Discussion started by: sagar_evc
7 Replies

6. Shell Programming and Scripting

Sed question

I need to replace the numbers with a new string. How can I give a wildcard for the different # of numbers sed '/abcdef/s/abcdef=*/abcdef=999999/'<foo>foo1 From: To: abcdef=1234 abcdef=999999 abcdef=12345 abcdef=999999 abcdef=123456... (10 Replies)
Discussion started by: beppler
10 Replies

7. Shell Programming and Scripting

Sed question

I have following input: almantas 31949 1 0 00:00:08 ? /usr/bin/pulseaudio -D --log-target=syslog almantas 31979 12082 0 00:00:06 pts/2 bash almantas 31991 31949 0 00:00:00 ? /usr/lib/pulseaudio/pulse/gconf-helper almantas 32009 1 0 00:00:06 ? ... (3 Replies)
Discussion started by: eXPlosion
3 Replies

8. Shell Programming and Scripting

sed question

hi i have a file with this line: variable=/export/home/oracle I want to change the file so that the path is replaced with the value of another variable var2=/tmp/anything. how to do this in sed? thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

9. Shell Programming and Scripting

Sed Question 1. (Don't quite know how to use sed! Thanks)

Write a sed script to extract the year, rank, and stock for the most recent 10 years available in the file top10_mktval.csv, and output in the following format: ------------------------------ YEAR |RANK| STOCK ------------------------------ 2007 | 1 | Exxon... (1 Reply)
Discussion started by: beibeiatNY
1 Replies

10. Shell Programming and Scripting

sed question (again)

hello there, I have a sed question. I have a file (temp.srv), in it it has v1_host1 v2_host2 And I have another file (temp2.srv), in it is has v1_host3_date v1_host1 v2_host2 v2_host4_date v3_host5_date I had used a script to remove the name from temp2.srv base on the name inside... (3 Replies)
Discussion started by: ahtat99
3 Replies
Login or Register to Ask a Question