How about
This has been tested under linux and FreeBSD; it may fail with other awk versions. Unfortunately you don't mention your OS, shell, tools' versions.
Hi
I need a small help
Cshell% more abc.txt
********
Cshell% cat abc.txt | cut -c1-3
***
Cshell%set test3=`cat abc.txt | cut -c1-3`
Cshell%echo $test3
a.txt b.txt.................
.....
It displays all the file in the current directory.
I want *** to be displayed.
Can any one of... (1 Reply)
Hi,
I am stuck assigning a value to a variable.
I am trying to assign a value to a variable but getting error....
IP_ADDR=grep 'I.P. Address' /install/cfgdist/`uname -n`.cfg | cut -d : -f 2| cut -d . -f 1-3| sed s/" "//g
I am using this script to grep first three octets of an IP address... (4 Replies)
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number:... (1 Reply)
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number: -1
... (1 Reply)
hi all
i have a shell script for connecting in sybase env what i need is i have around 10 servers , i need to connect to all servers and retrive the database inforamtion in the servers and display them
any one of u have it request to share it asap !
"QUERY TO Connect to all servers... (1 Reply)
Hello everybody!
I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see:
If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
Hi,
I have a requirement as below which needs to be done viz UNIX shell script
(1) I have to connect to an Oracle database
(2) Exexute "SELECT field_status from table 1" query on one of the tables.
(3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Hi Admins,
I was trying to list the failed logins as part of my daily checklist.
Here is my script
for i in `who -s /etc/security/failedlogins|tail -100|grep "$dt"|awk '{print $1" "$6}'`
do
a=`echo $i|wc -l`
if
then
echo $i
else
echo "There are no failed logins"
fi
done
but... (3 Replies)
Hi,
I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database.
For instance:
USER CITY
--------- ----------
A CITY_A
B CITY_B
C ... (2 Replies)
Please solve the below:
Use a pipeline and command substitution to set the length of a line in emp.lst to a variable. (1 Reply)
Discussion started by: ravisingh
1 Replies
LEARN ABOUT DEBIAN
openscad-testrun
OPENSCAD-TESTRUN(1) General Commands Manual OPENSCAD-TESTRUN(1)NAME
openscad-testrun - set up and run the OpenSCAD test suite
SYNOPSIS
openscad-testrun [options]
DESCRIPTION
This manual page documents briefly the openscad-testrun command.
openscad-testrun is a script that sets up a directory in which the OpenSCAD test suite (implemented in ctest) can be run by creating sym-
links to the system locations of the input data, and runs it. The created directory is not removed, but will contain the test results in
addition to the symlinks.
It is required as the test suite in its original form expects all the test input and output data in relative locations, and the typical
user has no write access to where the data resides. Future changes to the test suite might make it more flexible, removing the need for
this script.
OPTIONS -d directory, --directory directory
Set up the tests in a directory called directory. By default, this is generated from the current date and time like openscad-
test-2012-02-15_13:37.
-n, --dry-run
Do not run the test suite, just set it up.
All additional arguments are passed on to ctest.
AUTHOR
The OpenSCAD test suite was written by Clifford Wolf, Marius Kintel, and others. The openscad-testrun script was written by chrysn.
This manual page was written by chrysn <chrysn@fsfe.org>, for the Debian project (and may be used by others).
2012-02-16 OPENSCAD-TESTRUN(1)