10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
2. Shell Programming and Scripting
Hello guys.
how can print the: 20140206
like Fri, Feb 6, 2015
Thank you. (4 Replies)
Discussion started by: Ymir
4 Replies
3. Shell Programming and Scripting
data:
hostcomment {
host_name=myhost01
entry_type=1
comment_id=1
source=0
persistent=1
entry_time=1415723753
expires=0
expire_time=0
author=hpsm
comment_data=IM0837437472
}
program {
modified_host_attributes=1
modified_service_attributes=1
enable_notifications=1... (20 Replies)
Discussion started by: SkySmart
20 Replies
4. Shell Programming and Scripting
Iam having one variable with a value
REPORT_MISSING=$(grep -i 'Unable to find an Entry*' cognos_env01_env13_2012-12-20-0111.log | sed 's|Unable to find an Entry for the report \(.*\) in the Security Matrix|\1|g')
This give me value as
Direct Authorization Error Listing.xml
Health... (4 Replies)
Discussion started by: Vikram_Tanwar12
4 Replies
5. Shell Programming and Scripting
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies
6. Shell Programming and Scripting
Hi Guys,
Please somebody give me a hand to show the Month & Year in assigning to a variable and with format "MMMYY" (i.e. Jul11). See below preferred output.
I tried using this but it is giving me the current month...
date = "`date +%b%y`"
Aug11
DESIRED OUTPUT:
Jul11
... (3 Replies)
Discussion started by: pinpe
3 Replies
7. Shell Programming and Scripting
Hi,
I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time:
tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Discussion started by: julugu
6 Replies
8. Shell Programming and Scripting
I've seen several examples of grep showing the filename the string was found in, but what I really need is grep to show the file details in long format (like ls -l would).
scenario is:
grep mobile_number todays_files
This will show me the string I'm after & which files they turn up in, but... (2 Replies)
Discussion started by: woodstock
2 Replies
9. Shell Programming and Scripting
Hello
is there any way build in by unix native commands to show timestamp instead of date when I do "ls -l" ?
if not is there any one liner script to do this?
thanks (1 Reply)
Discussion started by: umen
1 Replies
10. Shell Programming and Scripting
HI all,
i am a junior learner, can u teach me how to show yesterday time with unix command? thanks!
Cloud (1 Reply)
Discussion started by: wind_n_cloud
1 Replies