10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
#include <iostream> int main() {
std::int foo = 34;
system("mkdir /home/linuxUser/fooDir");
system("vi fooFile")
system("write foo in fooFile")
foo = 43;
foo = read foo from fooFile;
std::cout << "foo = " << foo ; }
result should be
foo = 34
can... (3 Replies)
Discussion started by: linuxUser_
3 Replies
2. Shell Programming and Scripting
In order to use the shellcurses functions described at:
Shell Curses function library
I am learning about ksh, which has arrays. My trusty Kochan & Wood book says that for any Korn Shell array AR :
${AR
} expands to all the defined array elements, and
${#AR
} expands to the number... (3 Replies)
Discussion started by: Clovis_Sangrail
3 Replies
3. Shell Programming and Scripting
hello,
i have a variable which should have following content :
var="value1"
or
var="value2"
or
var="value2:*" # example: value2:22
how can i check :
- if the content is ok (value1 / value2* )
- the two options of "value2"
when content is example "value2:22" , i want to split... (3 Replies)
Discussion started by: bora99
3 Replies
4. Shell Programming and Scripting
Enclosed is comma separated text file. I need to write a korn shell program that will parse the text file and insert the values into Oracle database.
I need to write the korn shell program on Red Hat Enterprise Linux server.
Oracle database is 10g. (15 Replies)
Discussion started by: shellguy
15 Replies
5. Shell Programming and Scripting
Hi I'm not using Korn93 but want to use floating point variable.
Is there any solution to do that ?
thx for help.
---------- Post updated at 02:28 PM ---------- Previous update was at 12:38 PM ----------
I have the following peace of code:
for n in `cat log.January.1.array`
do
... (3 Replies)
Discussion started by: presul
3 Replies
6. Shell Programming and Scripting
Hi everybody, I have a string stored in a variable called record:
record="SNMPv2-SMI::ent.9.9.43.1.3.9.2 = Timeticks: (177330898) 20 days, 12:35:08.98"
I want to write some regular expressions good for Korn Shell to extract the number between parenthesis, in this case 177330898, and put it in... (3 Replies)
Discussion started by: omoyne
3 Replies
7. Shell Programming and Scripting
I'm working in korn shell and have a variable which contains a string like:
aa_yyyymmdd_bbb_ccc_ddd.abc. I want to treat the _ and . as delimiters and parse the string so I end up with 6 values in variables that I can manipulate. My original plan was to use
var1=`echo $sting1 | cut -c1-c2` but... (9 Replies)
Discussion started by: aquimby
9 Replies
8. UNIX for Advanced & Expert Users
Hello All,
I was just wondering if there is any direct way to access PL/SQL OUT variables from Korn Shell Script.
I could already figure out how to return a single value back from PL/SQL to Shell Script (using bind variable).
But, what if we want to return multiple values?
One option I... (4 Replies)
Discussion started by: bright_future
4 Replies
9. Shell Programming and Scripting
How do i use a config.txt to recursively pass a set of variables to a shell script
eg my config.txt looks like this :
path=c://dataset/set1
v1= a.bin
v2= b.bin
path=c://dataset/set2
v1= xy.bin
v2= abc.bin
..................
and so on .
and my testscript : (2 Replies)
Discussion started by: pradsh
2 Replies
10. Shell Programming and Scripting
Hi every body,
I want to know what is the different between the following:
$VAR1
${VAR2}
"${VAR3}"
Are they equivalent?
Thanks in advance (1 Reply)
Discussion started by: aldowsary
1 Replies
df(1) General Commands Manual df(1)
Name
df - display free and used disk space
Syntax
df [-i] [-l] [-n] [filesystem...] [file...]
Description
The command displays the amount of disk space available on the specified file system, for example, It also displays the amount of available
disk space on the file system in which the specified file is contained, for example, If a device is given that has no file systems mounted
on it, displays the information for the root file system. Without any arguments or options, displays shows all mounted filesystems,
including those manually mounted without use of the file. The numbers are reported in kilobytes.
Unless the -n option is specified, updates the statistics stored in memory for the file system specified, before it returns the informa-
tion.
Options
-i Also report the number of used and free inodes.
-l Reports on locally mounted disks only.
-n Do not update the file system statistics stored in memory. Instead, return whatever statistics are stored in memory. This prevents
from hanging in the event that a server containing the specified file system is down.
Restrictions
You cannot use the command to find free space on an unmounted file system using the block or character special device name. Instead, use
the command.
Examples
% df
Filesystem Total kbytes kbytes %
node kbytes used free used Mounted on
/dev/ra1a 7429 2085 4602 31% /tmp
/dev/ra0e 30519 14817 12651 54% /usr/spool
/dev/ra0h 313233 122858 159052 44% /usr/staff1
The total disk space is the total space that was created during the making of the file system. The addition of the used space, the free
space and a percentage of reserved space is the total space. The default value for the reserved space is 10%.
Files
List of mounted file systems
See Also
getmnt(2), fstab(5), dumpfs(8), icheck(8), mkfs(8), newfs(8), quot(8)
df(1)