10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
2. Programming
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies
3. Shell Programming and Scripting
Hi,
I developed one shell script where it will sync the files using perforce,
#!/bin/bash
TERM=linux
export TERM
clear
echo ""
$PATH
echo ""
cd /u/userk/p4/p4_client/TES_DATE
echo ""
echo "Sync p4 "
p4 sync
echo "Executing for second time "
p4 -u userk -p p4net:161 -c... (8 Replies)
Discussion started by: asak
8 Replies
4. Shell Programming and Scripting
Hello all. This may seem like a dumb/easy question but right now I have a little script I made that uses rsync to sync a directory that has files in it that may or may not be complete files. I want to come up with a better solution for this. What it is is I have a directory lets say /incomplete... (4 Replies)
Discussion started by: linuxn00b
4 Replies
5. Shell Programming and Scripting
i need to multiplay a number with 1.00.. so that the output should contain two decimal places at end..
for example...
236 * 1.00 = 236.00
245.8 * 1.00 = 245.80
but when i perform multiplication it shows output as.
236
245.8
can anyone help me to get the actual output of... (11 Replies)
Discussion started by: arunmanas
11 Replies
6. Shell Programming and Scripting
TO THE ALMIGHTY FORUM ,
though i have already posted the same question on hex to binary thread , i am posting here also for other beginners who may benefit from this thread...
I have a 32 bit binary containing a series of 1' and 0's , and i am stuck... (2 Replies)
Discussion started by: venu
2 Replies
7. Shell Programming and Scripting
Hi all,
I am trying to create a simple password script but it seems not working well.
What I'm trying to do is to sync the yppasswd and smbpasswd. So I created this:
#!/bin/csh
echo ""
echo "Please enter old password: "
set OLDPASSWD = $<
echo "Please enter new password: "
set NEWPASSWD... (2 Replies)
Discussion started by: saiful
2 Replies
8. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting, and I have a file which quite large which I would like to delete lines at certain places. I want to search for a keyword which is recurring in the file. When matched I would like to delete the line. And when the file was so huge I thought I ought to learn... (3 Replies)
Discussion started by: mr_andrew
3 Replies
9. Solaris
Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas?
... (0 Replies)
Discussion started by: psantinello
0 Replies
10. UNIX for Dummies Questions & Answers
Hi all, first time here, but I figured you'd be the ones to ask...
I want to write a scrip which starts in shell ' $ ' and give it a command, then change to superuser and give it more commands. Then exit su, and give it more commands at '$' Is this possible?
Ex:
... (1 Reply)
Discussion started by: Jijalicious
1 Replies