05-12-2009
Your code has numerous problems. Maybe if you describe what you want to do it will be easier to help you than to try and guess by looking at your code.
You want to find all the files that match <*$tester*st*> (but where is $tester defined in your script?). Then what do you want to do? Print just the newest file or just the oldest file or what?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to assign the output of a command to a variable and then concat it with another string, however, it keeps overwriting the original string instead of adding on to the end of the string.
Contents of test.txt --> This is a test
var1="`head -n 1 test.txt`"
echo $var1 (This is a... (5 Replies)
Discussion started by: oma04
5 Replies
2. Shell Programming and Scripting
Hello friends,
I doing the follwing script , but found problem to store it to a shell variable.
#! /bin/sh
for temp in `find ./dat/vector/ -name '*.file'`
do
echo $temp
nawk -v temp=$temp 'BEGIN{ split(temp, a,"\/"); print a}'
done
output:
./dat/vector/drf_all_002.file... (6 Replies)
Discussion started by: user_prady
6 Replies
3. Shell Programming and Scripting
hi,
I want to assign find command result into some temporary variable:
jarPath= find /opt/lotus/notes/ -name $jarFile
cho "the jar path $jarPath"
where jarPath is temporary variable.
Can anybody help on this.
Thanks in advance
----Sankar (6 Replies)
Discussion started by: sankar reddy
6 Replies
4. Shell Programming and Scripting
I am new to unix shell scripting.
I was trying to convert each lines in a file to upper case.
I know how to convert the whole file.
But here i have to do line by line.
I am getting it in the below mentioned script
#!/bin/bash
#converting lower to upper in a file
#tr "" "" <file1... (3 Replies)
Discussion started by: jpmena
3 Replies
5. Shell Programming and Scripting
When I run time -p <command>, it outputs:
real X.XX
user X.XX
sys X.XXwhere X.XX is seconds. How I can take just that first number output, the seconds of real time, and assign that to a variable? (9 Replies)
Discussion started by: jeriryan87
9 Replies
6. Shell Programming and Scripting
i'm on a Mac running BSD unix.
i have a script in which i ask the user to input the name of a mounted volume. i then call SED to substitute backslashes and spaces in place of the spaces. that looks like this:
echo "Enter the name of the volume"
read Volume
echo "You've chosen \"$Volume\""... (7 Replies)
Discussion started by: hungryd
7 Replies
7. Shell Programming and Scripting
Hi.
I have a script like so:
#!/bin/bash
download='php /var/www/last.php'
echo $download
if $downloadHow do I pipe the output of the php file into a variable, as when i run the if statement, it just echos the file output to the screen and does not actually consider the output (it will be... (2 Replies)
Discussion started by: daydreamer
2 Replies
8. Shell Programming and Scripting
I have a script whose contents are as below
result= awk 's=100 END {print s }'
echo "The result is" $result
The desired output is
The result is 100
My script is running without exiting and i am also not getting the desired output.
Please help (5 Replies)
Discussion started by: bk_12345
5 Replies
9. Shell Programming and Scripting
Hello,
I was trying to split a string to characters by perl oneliner.
echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe:
echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq -ic 8
1 T
1... (6 Replies)
Discussion started by: yifangt
6 Replies
10. Shell Programming and Scripting
I'm converting decimal to integer with bc, and I'd like to assign the integer output from bc to a variable 'val'.
E.g. In the code below: If b is 5000.000, lines 6 and 8 will output:
5000
(5000.000+0.5)/1 | bc
I'd like val to take the value 5000 though, rather than 5000.000
Does someone... (3 Replies)
Discussion started by: pina
3 Replies
LEARN ABOUT DEBIAN
towitoko-tester
Towitoko Tester(1) General Commands Manual Towitoko Tester(1)
NAME
towitoko-tester -- Towitoko driver CT-API interface tester tool
SYNOPSIS
towitoko-tester
DESCRIPTION
towitoko-tester is a simple tool that allows executing some simple commands on a smartcard using a Towitoko smartcard reader. It can be
used to test that a smartcard can be properly recognized, and that it can be read and written.
The tool provides a text based menu interface. Commands that can be executed via the menu depends on the reader card insertion status and
the type of card inserted. For memory cards it permits reading and writing data bytes, checking and changing the PIN. For processor cards
it permits selecting, reading and updating binary card files.
Several readers on different ports can be used at a time. The text menu allows opening, closing and changing current port. The smartcard
can be inserted and removed from any initialized reader at any time. The tool will automatically detect when the card is inserted and
removed, and will update the information shown in the menu. However you must refresh the menu to see any change reflected.
If you have installed pcscd package, and have configured your reader to be used by pscsd, you'll need to stop the pcsc daemon before ini-
tializing the reader with towitoko-tester.
SEE ALSO
ctapi (3) and ctbcs (3). pcscd (8)
AUTHOR
This manual page was written by Carlos Prados <cprados@debian.org>.
Towitoko Tester(1)