Search Results

Search: Posts Made By: MrG-San
15,263
Posted By MrG-San
Puts command in a script
Hi,

I am trying to output a set of fields to a file:


set outFile "printHeader.tmp"
set dbFields "REPORT.TIMESTAMP.s,REPORT.CUSTOMER.s,REPORT.CODE.s"

puts $dbFields > $outFile


I...
9,938
Posted By MrG-San
OK, so what are you suggesting I do? - create...
OK, so what are you suggesting I do? - create this in tcl?
9,938
Posted By MrG-San
Sed Script in TCL
Hi,

I am trying to run the following in my tcl script---

set ul [exec /bin/cat $uploadFile | \
/bin/sed {/COUNT/d;/BS/d;/----/d;s/^[ \t]*//;s/[ \t]*$//;/^$/d;s/^/"20080401...
4,188
Posted By MrG-San
Sorry my mistake it is working.
Sorry my mistake it is working.
4,188
Posted By MrG-San
Thank you, this is good, however, two questions. ...
Thank you, this is good, however, two questions.

I have added this to my sed script but I get this error when I run sed -f (script) - "sed: command garbled: awk -F, '{print $1","$2","$3","$4}'"
...
4,188
Posted By MrG-San
Thanks for your reply - this will not work for me...
Thanks for your reply - this will not work for me as the values in the last two columns could differ.
4,188
Posted By MrG-San
Awk or Sed help
Hi,

I have a data file with 5 columns - like this:

"20080401 09:43:08.770798 +0100s","TEST 1","R 1","A TEST","Nov 27 2007","1"
"20080401 09:43:08.770798 +0100s","THIS IS A TEST","R 2","B...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 04:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy