I'm trying to make a small script to see if you say a specific word, in bash.
Here is my code so far :
It does not echo what it should, even if i type something along the lines of "random Device stuff"
Please help, i'm at a loss of what to do
Edit : Never mind, i've worked it out, sorry for the inconvienience
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
what will the cmd below do?
ls *.3
1 members mentions that to seek all permutations and combinations of the mp3 extension ill have to use curly braces, {} and not, .
what then will do? (13 Replies)
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Hi, I have this code to search all "cif" files using wildcard
for file in *.cif
do
grep "Uiso" $file | awk '{ print $3, $4, $5 }' > tet
done
I get this error
"grep: *.cif: No such file or directory"
Please where am I going wrong!!!
Thank you in advance (6 Replies)
Can someone please explain the wildcards in this. How is this recursive? When I put this in my terminal it recursively displayed everything.
ls .* * (6 Replies)
I'm trying to create a shell script that will check for new files and or folders and if it exist then copy them to a different directory.
Does anyone have a idea?
if ;
then
echo "Copying files from the Upgrade Server"
cp -Ruavp /home/upgrade/hex-code/*... (7 Replies)
Hi Experts,
I want to use ls in the below form:
ls -l *.{txt,TXT} (working fine)
but when i am declaring a variable,
VAR="*.{txt,TXT}"
ls -l $VAR is not working. Please help.
Thanks. (4 Replies)
CD_numb is AM017
this code:
set the_Firstcom_CD to (do shell script "ls -d '/volumes/audioNAS/Firstcom/Access Music/' ") & CD_numb
gives me this:
"/volumes/audioNAS/Firstcom/Access Music/AM017"
the item I am looking for is AM017Q.
I can get the "*" syntax right so it never finder... (7 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
LEARN ABOUT DEBIAN
device::usb::pcsensor::hidtemper::device
Device::USB::PCSensor::HidTEMPer::Device(3pm) User Contributed Perl Documentation Device::USB::PCSensor::HidTEMPer::Device(3pm)
Device::USB::PCSensor::HidTEMPer::Device - Generic device class
VERSION
Version 0.02
SYNOPSIS
None
DESCRIPTION
This module contains a generic class that all HidTEMPer devices should inherit from, thereby keeping the implemented methods consistent and
making it possible to use the same code to contact every supported device.
CONSTANTS
o CONNECTION_TIMEOUT
USB communication timeout, specified in milliseconds.
METHODS
o new( $usb_device )
Creates a new generic Device object.
o identifier()
This method is used to acquire the numerical value representing the device type identifier.
o internal()
Returns the corresponding Sensor object representing the internal sensor connected to the device. If the device does not have an
internal sensor undef is returned.
o external()
Returns the corresponding Sensor object representing the external sensor connected to the device. If the device does not have an
external sensor undef is returned.
o init()
Empty method that should be implemented in order to be able to initialize a object instance.
DEPENDENCIES
This module internally includes and takes use of the following packages:
use Carp;
use Device::USB;
use Device::USB::Device;
This module uses the strict and warning pragmas.
BUGS
Please report any bugs or missing features using the CPAN RT tool.
FOR MORE INFORMATION
None
AUTHOR
Magnus Sulland < msulland@cpan.org >
ACKNOWLEDGEMENTS
None
COPYRIGHT & LICENSE
Copyright (c) 2010 Magnus Sulland
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-07-24 Device::USB::PCSensor::HidTEMPer::Device(3pm)