8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I just have started learning shell scripting (sh). Why do i only get the date?
while read dt
do
echo "Date : ${dt}
sed -n '/${dt}/,/${dt}/p' file1.log | grep -w ERROR
done < date1.dat
INPUT - date1.dat
2019-04-05 04:58:25
2019-04-05 04:58:26
2019-04-05 05:00:56... (3 Replies)
Discussion started by: margel
3 Replies
2. Shell Programming and Scripting
Hi Team,
I have for loop in my shell script. Which basically loop through all files in the directory, When some files are in the directory it works just fine.
But if there are no files at all..still the for loop try to execute. Please help. Below is the code.
#!/bin/ksh
echo "Program... (5 Replies)
Discussion started by: bharath561989
5 Replies
3. Shell Programming and Scripting
Hi,
I have prepared a script to search for backup file information on the Linux server. Script works fine for the most part except the echo statement inside an IF conditional block displays the message ''snapshot directory not found on xxxxx" even though the .snapshot directory is found a... (11 Replies)
Discussion started by: svajhala
11 Replies
4. Linux
I tried to print out external memo in LINUX system,
however, each time in the print out also print out
M--.
M--.
in front of the external memo,
my question is
HOW CAN I PRINT OUT THE MEMO ONLY?
THANKS (0 Replies)
Discussion started by: scottblee
0 Replies
5. Homework & Coursework Questions
Hi
just doin' this here for the naval school, back here in Pportugal, and needed some help, especially with the shared memo i want to use for the 10 airport gate, and the maximum of 4 planes preparing to leave; canīt figure out how the gate can be id by the same PID. WELL, if someone wants to... (2 Replies)
Discussion started by: Turbo
2 Replies
6. Programming
Hi
just doin' this here for the naval school, back here in Pportugal, and needed some help, especially with the shared memo i want to use for the 10 airport gate, and the maximum of 4 planes preparing to leave; canīt figure out how the gate can be id by the same PID. WELL, if someone wants to... (1 Reply)
Discussion started by: Turbo
1 Replies
7. Shell Programming and Scripting
Hi All,
Please help me with for loop!!!!
I have to put the limit with for loop like
For I in 1..30
Do
Echo $i
Done
I want my output to be like 1
2
3
4
5
6
7
8
9 till 30 (6 Replies)
Discussion started by: kumarmani
6 Replies
8. Shell Programming and Scripting
I have 2 files one of them has all the all mac addresses and the other one has all the ip addresses. Basically, I want to loop thru those 2 files and generate a configuration like below:
host www184.domain.com {
hardware ethernet 00:13:72:3B:B4:3A;
fixed-address 192.168.0.184;
}... (4 Replies)
Discussion started by: kkkk
4 Replies