10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi. I'm new to shell script and i have a problem
My code
ssh $i df -h|grep -ve Use | awk '{ if ( substr( $5, 1, length($5) - 1) > 80 ) echo -n "-----\n"$5" "$6 ; else echo -n "------\nOK!" }' | sort -uThe problem is : for example, if the %Use is ( 78;81 ), the scripts will print both "78"... (3 Replies)
Discussion started by: bobochacha29
3 Replies
2. UNIX for Dummies Questions & Answers
Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
1. Logon to Linux.
2. Create a directory "Unix" under your home directory.
Command(s): ………………………………………….
3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies
3. HP-UX
I recently bought myself a HP Visualize c3750 specifically to try out HP-UX (which I have never really used), I got it with a CD set of HP-UX 11 that I boot the machine from to install.
I have no gfx adapter in the machine so I run an IBM InfoWindow II 3153 serial terminal attached to serial 1.... (4 Replies)
Discussion started by: dlundh
4 Replies
4. Shell Programming and Scripting
script is:
dirname= "$(date +%b%d)_$(date +%H%M)"
mkdir $dirname
should create a directory named Nov4_
Instead I get the following returned:
root@dchs-pint-001:/=>./test1
./test1: Nov04_0736: not found.
Usage: mkdir Directory ...
root@dchs-pint-001:/=>
TOO easy, but what am I... (2 Replies)
Discussion started by: gwfay
2 Replies
5. Programming
Hi all,
I am a newbie to unix programming using C..
So i would like to have a few simple C programs to start off with..
I wanted programs on learning ,
abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg
It would be really great if i can have... (1 Reply)
Discussion started by: wrapster
1 Replies
6. UNIX for Dummies Questions & Answers
How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty?
Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)
Discussion started by: doubleminus
5 Replies
7. Programming
Im new to gcc, vim etc... and I've been trying a simple hello world program and every time I try to compile any C program I get the following error message
test.c :1:19: error: stdio.h: No such file or directory
test.c : In function 'main':
test.c :5: warning: incompatible implicit... (5 Replies)
Discussion started by: blowFish@ubuntu
5 Replies
8. Shell Programming and Scripting
hi,
I want to clarify this matter for a long time so here I come,
I seen people use
if ]
or
if
or
if (( some condition ))
exactly what are the difference? Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies
9. Shell Programming and Scripting
Hi, I'm just new here, looks like there is alot to read.
I need some help on a simple script that i would like to make, and I honestly have zero experience with shell scripts or anything, so i have no idea what I am doing.
I want to have a script that I can upload to to my webhosting... (12 Replies)
Discussion started by: shizizzle
12 Replies
10. UNIX for Dummies Questions & Answers
I am running a sun enterpirse 420 r with solaris 7 on it . I have a mount that is at 100 percent. It is running oracle on it., not sure version. i cant seen to find what is taking up all the space. is there a ls comand that will tell me the size of a directory and all sub folders in it. or... (2 Replies)
Discussion started by: Thump
2 Replies