10 More Discussions You Might Find Interesting
1. Programming
Ahoy friends.
Currently i got a bash script running to manage my minecraft servers.
All of them are stored in /home/minecraft_servers directory.
Using my script im able to start a server (e.g. ./minecraft start ftb_continuum) because server name and server name are the same.(e.g.... (2 Replies)
Discussion started by: Knogle
2 Replies
2. UNIX for Beginners Questions & Answers
Hi,
I am trying to add few (say 3 days) to sysdate using -
date -d '+ 3 days' +%y%m%d
and it works as expected.
But how to add few (say 3 days) to a literal date value and how bash treats a literal value as a date. Can we say just like in ORACLE TO_DATE that my given literal date value... (2 Replies)
Discussion started by: pointers1234
2 Replies
3. Shell Programming and Scripting
Problem : we need a command that will give previous day date and previous day should be mon-fri only.
Example :if we are running a command on Monday , it will give Friday ‘s date not Sunday’s .
Few more restrictions :
Command should be working in NM n/w.
Hard coding of date should be avoided.... (11 Replies)
Discussion started by: Downsouth
11 Replies
4. UNIX for Dummies Questions & Answers
Hi Experts,
I have a date validation script in that i will validate the date for a given format and search in the logs for that date. The script logic is very simple like below.
Validate_Date()
{
is_valid=1
while
do
date_format=$(date "+$1")
echo -e "Please enter the $2 date like... (6 Replies)
Discussion started by: senthil.ak
6 Replies
5. Shell Programming and Scripting
Hi,
in my script, i take the last month by
a=$(date --date '1 month ago' +%Y%m)
i expect that it give me in this month "March" as result 201402,
but linux gave me 201403.
IMPe@ABC123:> ~/date --date '1 month ago' +%Y%m
201403
i'm reasonably confused. Any idea?
Thanks in advance,
... (2 Replies)
Discussion started by: IMPe
2 Replies
6. Shell Programming and Scripting
Hi, I am currently working on a Bash shell script that
- Downloads a webpage, in this case youtube.com
- Extracts Number of views, Extracts Title of video, Extracts User who made it, and lastly Duration. Then I have to Out put this into columns.
To me this sounds like crazyness. I'm very new... (6 Replies)
Discussion started by: Njzangel
6 Replies
7. Shell Programming and Scripting
hi
#!usr/bin/perl -w
local ($date) = `/sbin/date "+%D %X" ` ;
print $date
when i run this in ksh shell it is giving the below error
sh: /sbin/date: not found
but same code is working and displaying date and time in sh shell.
what could be the reason.
pls help (10 Replies)
Discussion started by: psthariharan
10 Replies
8. HP-UX
Why Bash is not working in HP-UX ?
What is similiar exe which is in HP_UX as Bash? (9 Replies)
Discussion started by: girija
9 Replies
9. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I have standard web server log file. It contains different columns (like IP address, request result code, request type etc) including a date column with the format .
I have developed a log analysis command line utility that displays... (1 Reply)
Discussion started by: TariqYousaf
1 Replies
10. Shell Programming and Scripting
I wan to convert any field having date in the file from the follwoing format 5/1/2003 to 2003-05-01. This file is tab delimited. Please help. (2 Replies)
Discussion started by: dsravan
2 Replies