As an exercise, I'm trying to re-write this code without the compound square brackets, using grep and test. Need to know what to do about the "equal-tilde".
Okay, well this is more or less my first attempt at writing a shell script.
Anyways, here's my code:
cd ${PATH}
if
then
rm ${FILE}
./anotherScript
else
exit 1
fi
exit 1
Anyways, it's a pretty simple script that is supposed to search for the... (4 Replies)
Hello, i have a script which checks if the user entered 8 numeric characters in the form of YYYYMMDD (birth date). If the user entered any non numeric characters, an error will be displayed:
# Check to see if the 8 characters are all numbers
# If not show error essage
# And prompt user... (4 Replies)
Hi,
I want to use grep inside a test statement, but I am getting an error message.
Two variables
testvarNum=5
testvarNonNum=x
echo $testvarNum | grep *
The result of this is as follows:
5
However, when I try the following (i.e. to test if the variable is numeric or non-numeric):... (3 Replies)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hello ...again.
I am stuck on this part, I have a loop with processes an operations file.
and calls different functions depending on what is in loop, which processes a database file...
#so far my add function works as intended
add()
{
...blah blah;
}
# delete is kinda working... (13 Replies)
Hello,
I have a problem. I will search files on fileextentions (suffix). It can with the command find, but I will do it with the commands grep and/or test. When i start the script I will see all files with that extention (suffix).
Can anyone help me, please?
Thanks!
Regards,
Arjan... (4 Replies)
Hi all. I am trying to compare and filter two files. I have a bigfile.txt of names and ids and a smallfile.txt of ids only. What I am trying to do is use a while read loop to read the ids in the bigfile and then echo the name and id only if the id exists in the small file. Basically, I'm trying to... (5 Replies)
read a
if test grep EOF $a
then echo yes file
else
echo no
fi (1 Reply)
Discussion started by: iamsumibisht
1 Replies
LEARN ABOUT DEBIAN
robocut
ROBOCUT(1) User Commands ROBOCUT(1)NAME
Robocut - is used with cutting plotters.
DESCRIPTION
The `Robocut' program plots or cuts SVG files on a Craft Robo or Silhouette SD or most likely any other customer grade Graphtec cutting
plotter.
Usage:
robocut [OPTIONS...] [File]
Help Options:
--help Show summary of options.
--version
Show version information and copyright details.
--show Show all the parameters entered and the defaults.
Application Options:
-s, --no-sort
Stop sort the objects from the SVG before plotting.
-t, --bb-sort
Sort the objects by bounding box, good for letters. This will cut out the inside first and than the outside.
--cut Shows the cutting dialogue after start.
--media INT
Select the media. See drop down box.
-g, --speed INT
The speed between 1 and 33.
-p, --pressure INT
The pressure between 1 and 10.
--track-enhancing
Move three times back and forward to create a track.
--margin-top DOUBLE
Define the margin on top in mm.
--margin-right DOUBLE
Define the margin right in mm.
Registration Mark Options:
-r, --reg-mark-auto
Use registration marks and find the marks automatically.
--reg-mark
Use registration marks but set the knife manually on top the round mark.
-a, --reg-dimension-width DOUBLE
Specify the length in mm between the the two horizontal marks.
-b, --reg-dimension-height DOUBLE
Specify the length in mm between the the two vertical marks.
-c, --reg-origin-width DOUBLE
Specify the length in mm between the the edge of the paper and the first horizontal mark.
-d, --reg-origin-height DOUBLE
Specify the length in mm between the the edge of the paper and the first vertical mark.
Device Options:
--usb-vendor-id INT
Try this program with other usb hardware on your own risk. You need to convert hex to dec.
--usb-product-id INT
May also work with other hardware, try usb-devices program to scan your computer.
ENVIRONMENT
QT SVG only supports the SVG 1.2 Tiny standard and this has a limited SVG support. For example multiline text is something that is no sup-
ported by Robocut, however you can export your text to a path or just create each line separate.
AUTHOR
Written by Tim Hutt and Markus Schulz <schulz@alpharesearch.de>
REPORTING BUGS
Report bugs to https://bugs.launchpad.net/robocut/+filebug.
COPYRIGHT
Copyright (C) 2010
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Robocut V1.0.8 August 2011 ROBOCUT(1)