10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Bash script to subdivide a given subnet into a pre-defined number of smaller subnets. Show network/broadcast address, number of hosts and assign gateway.
For example:
Input:
./subnetter.sh 192.168.0.0/24 3 Output:
192.168.0.0/128 subnet 192.168.0.0 broadcast 192.168.0.127 gateway... (1 Reply)
Discussion started by: mail2rias
1 Replies
2. Shell Programming and Scripting
Bash script to subdivide a given subnet into a pre-defined number of smaller subnets. Show network/broadcast address, number of hosts and assign gateway.
For example:
Input:
./subnetter.sh 192.168.0.0/24 3 Output:
192.168.0.0/128 subnet 192.168.0.0 broadcast 192.168.0.127 gateway... (1 Reply)
Discussion started by: mail2rias
1 Replies
3. Shell Programming and Scripting
Hi experts,
I am facing a problem right now.I have to automate the pickup of files based on a priority.The scenario is as below:
1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so forth till Friday's file which... (1 Reply)
Discussion started by: vikramgk9
1 Replies
4. Shell Programming and Scripting
Hi,
I have two files to pick and excute these ones.
File1:DOLFIN.PRL_100.OIB.TLU.001.D20110510.T144948
File2:DOLFIN.PRM_100.OTU.001.D20100726.T050026
date '+%H:%M:%S'
SCRIPTS_PATH=/u/dolfin/bin
. ${SCRIPTS_PATH}/set_dolfin_env.sh
DATA_FILE_NAME=DATA_FILE
DATE_FORMAT=`date... (2 Replies)
Discussion started by: shyamu544
2 Replies
5. Shell Programming and Scripting
In my code, I know I can write...
if ( defined &test_sub ) {
test_sub();
} else {
print "Subroutine doesn't exist";
}
This tests the existence of the test_sub subroutine without actually calling it.
If, though, I replace test_sub with a package method...
if ( defined... (1 Reply)
Discussion started by: JerryHone
1 Replies
6. Shell Programming and Scripting
I have four files a,b,c,d which need to contain certain in the sequence a, b, c ,d , each file command which needs to be executed,
what i m in need is that to executed file and cmd in the defined order and if any of the command FAIL or throw ERROR, it script shud come out... (3 Replies)
Discussion started by: tarunn.dubeyy
3 Replies
7. UNIX for Dummies Questions & Answers
How can I pickup files with a specific date by "ls" command without options? (1 Reply)
Discussion started by: gd2003
1 Replies
8. Shell Programming and Scripting
Freinds,
I need help:
I need to process number of flat files on weekly basis. My source dir will receive flat files regulary at mid night
between 1:00am and 6:00am. When I run my weekly file process it should get only the files which are until last friday
(including friday)and move them in... (1 Reply)
Discussion started by: magi
1 Replies
9. Shell Programming and Scripting
Hi,
Can any body help me,How to pickup file from folder using shellscript.
FolderName:/test
FileinFolder: test.txt
MY req is:Shellscript pickup file from folder and pass file as parameter to java program..?
Thanks,
Rams (0 Replies)
Discussion started by: ram2s2001
0 Replies
10. Programming
Hi
First I want to explain the scenerio :
In my project I want to control the printing of some messages. Thats why I use
#ifdef MESSAGE
------------print message--------------
#endif
And when I compile the program with -DMESSAGE option, it shows all message and without -DMESSAGE option... (7 Replies)
Discussion started by: sumsin
7 Replies