I tried printing only filename from the path using
file tail command, but does not print the filename.
foreach fileName [glob -directory $basedir *.sv] {
puts $fileName
set F [file tail $filename]
puts "FILE $F\e"
}
Result:
/projects/unix/eng/ram/projects/Oxxx/fpga/xxx_fpga/sim/run/TEST/xxx/testcases/testI_EQUALS_1_NOWF_enc_ID.sv
FILE
/projects/unix/eng/ram/projects/Oxxx/fpga/xxx_fpga/sim/run/TEST/xxx/testcases/testI_EQUALS_1_NOWF_huge.sv
FILE
file tail command, but does not print the filename.
foreach fileName [glob -directory $basedir *.sv] {
puts $fileName
set F [file tail $filename]
puts "FILE $F\e"
}
Result:
/projects/unix/eng/ram/projects/Oxxx/fpga/xxx_fpga/sim/run/TEST/xxx/testcases/testI_EQUALS_1_NOWF_enc_ID.sv
FILE
/projects/unix/eng/ram/projects/Oxxx/fpga/xxx_fpga/sim/run/TEST/xxx/testcases/testI_EQUALS_1_NOWF_huge.sv
FILE