11-10-2007
Thank you so much ipzig. I am a newer using the shell script and maybe I forgot it.
Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
My script prints a few varibales as each it reads each line of a text file and then prints them on screen, however iam having problem in aligning and sorting them.
what happens is this
Last First Number
Mark leo 87798798... (1 Reply)
Discussion started by: shackman66
1 Replies
2. UNIX for Advanced & Expert Users
Hello,
i want to display modified files in descending order. "ls -t" will display modified files in descending order.
pls help. (1 Reply)
Discussion started by: balareddy
1 Replies
3. Shell Programming and Scripting
I appreciate all the help that I've already received but am running into one problem. I can find how to add something before a file with ascending numbers but not like this. I basically have a file that looks like this:
100
101
102
103
104
I need to add the following before each line with... (5 Replies)
Discussion started by: kerpm
5 Replies
4. Shell Programming and Scripting
Hi,
I have created the hash.
%hash;
@arr1 = qw(Dealnum AdminStatus adminReason effFrom effTo);
@arr2 = qw(121212121 YES 1992-06-19T05:14:27 );
@hash{@arr1}=@arr2;
foreach(sort keys %hash){
print "$_ ---- $hash{$_}\n";
}
The output i got like this:
C:\strawberry\perl\bin>perl... (1 Reply)
Discussion started by: vanitham
1 Replies
5. UNIX for Advanced & Expert Users
Hi folks,
I am facing one problem with v$sql, i need to store updating sql query in temp table when one trigger get fired on some update sql statement.
but with "sql_text" , i am not getting correct update statement in temp table.
I am getting sql_text with this cursor statement.
select... (0 Replies)
Discussion started by: apskaushik
0 Replies
6. UNIX for Dummies Questions & Answers
Hello unix.com
I have a large text file in this format:
merali guzman 34 vernon st 304 hartford CT Connecticut 6106 012-233-232 Working 13/14 100$
Morgan Dvorak 5670 Echo Road Excelsior MN Minnesota 5331 000-000-123 Sleeping 15/17 220$
How can... (1 Reply)
Discussion started by: galford
1 Replies
7. UNIX for Dummies Questions & Answers
Hi Everyone,
Can someone possibly point me in the direction?
When I execute command echo "hello" | sendmail -v testacct@wyx.com
I recived an email as expected except the From: NAME is incorrect. The server name is correct. It should read "From: TESTBOX1 "
actual email:
From: app... (3 Replies)
Discussion started by: smckech1972
3 Replies
8. Shell Programming and Scripting
Hi,
while using following awk commend I’m getting confused,
The output is not like as the row present in input files, can anyone explain and tell me how to print in the order like in input.
value=$(awk 'FNR>1 && NR==FNR{a=$4;next} a{sum+=$4} END {for(i in sum){printf i"\t"sum/2"@@";}}'... (5 Replies)
Discussion started by: Shenbaga.d
5 Replies
9. Linux
Hi,
Is there any way to run chkconfig --list and to display all daemon processes in PRIORITY order, not in alphabetic order?
Thank you. (4 Replies)
Discussion started by: hce
4 Replies
10. Shell Programming and Scripting
Hi All,
I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.
Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname $(hostname)
echo Working in $(pwd)
echo Here is this month calender
echo $(cal)
$ sh first.sh... (7 Replies)
Discussion started by: chandrakanth
7 Replies
LEARN ABOUT FREEBSD
atf-sh
ATF-SH(1) BSD General Commands Manual ATF-SH(1)
NAME
atf-sh [-s shell] -- interpreter for shell-based test programs
SYNOPSIS
atf-sh script
DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library.
atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter-
preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not
use any non-standard extensions.
The following options are available:
-s shell Specifies the shell to use instead of the value provided by ATF_SHELL.
ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes.
ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes.
ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a
specific interpreter.
EXAMPLES
Scripts using atf-sh(3) should start with:
#! /usr/bin/env atf-sh
Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode
the path to atf-sh in the script and then use the -s option afterwards as a single parameter:
#! /path/to/bin/atf-sh -s/bin/bash
ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts.
SEE ALSO
atf-sh(3)
BSD
September 27, 2014 BSD