10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I'm totally new in sell script and working with a shell code. I want to extract the date and time from the filenames. The filenames are different but all of them begins with WI_ SCOPE_:
WI_SCOPE_DATA_CHANGE_2017-09-12_15-30-40.txt
WI_SCOPE_BACK_COMPLETE_QUEUE_2017-09-12_15-31-40.txt... (5 Replies)
Discussion started by: Home
5 Replies
2. Shell Programming and Scripting
Hii,
I am reading data from files by defining path as *.log etc,
Files names are like app1a_test2_heep.log , cdc2a_test3_heep.log etc
How to configure logstash so that the part of string that is string before underscore (app1a, cdc2a..) should be grepped and added to host field and... (7 Replies)
Discussion started by: Ravi Kishore
7 Replies
3. UNIX for Dummies Questions & Answers
I was wondering why does ssh store the fingerprints of remote host when connecting for the first time?
I will appreciate a detailed response, can't figure it out. (2 Replies)
Discussion started by: ChiefGandalf
2 Replies
4. Shell Programming and Scripting
How do i display in the below format without the brackets using shell script.
Tue Oct 1 13:32:40 2013
Please use CODE tags not only for all code segments, input samples, and output samples. (7 Replies)
Discussion started by: ghosh_tanmoy
7 Replies
5. IP Networking
Hi,
I have a weird problem.
when ever I do ping command like for example
ping unix.comI get the following message:
# ping unix.com
ping: unknown host unix.com
but when I use host the computer is able to know the host.
# host unix.com
unix.com has address 81.17.242.186
unix.com mail is... (2 Replies)
Discussion started by: programAngel
2 Replies
6. UNIX for Dummies Questions & Answers
hi guys
I have standalone Suse 10 SP3 that when I run
# hostname
webserver
but when I run host command
# host webserver
;; connection timed out; no servers could be reached
I would like to get the IP when I issue
host webserver
x.x.x.x
and the name when
host x.x.x.x... (1 Reply)
Discussion started by: karlochacon
1 Replies
7. Shell Programming and Scripting
Hi,
I have a file where there is a date and time field, the format for it is yyyy-mm-dd hours:mins:sec
the position of date field may vary anywhere in the line and it might be different and it is specified along with the variable AppTimeStamp
how do i extract date and time both from the... (5 Replies)
Discussion started by: prash_b
5 Replies
8. UNIX for Advanced & Expert Users
Hi, Can anyone please let me know, how to extract two lines at the same time. In specific,I have a file containing list of devices, such as router1 and switch2 below. I want to get all the lines which has "#" and all the lines which has "down"
router1#sh ip int br
Interface ... (6 Replies)
Discussion started by: Aejaz
6 Replies
9. UNIX for Dummies Questions & Answers
Hey guys.
How would I go about extracting the time from the system clock and inserting it into a variable?
Any thoughts? (4 Replies)
Discussion started by: ndoggy020
4 Replies
10. UNIX for Advanced & Expert Users
I will remote a connection to a Unix server and launch a command on this server. This commnand requires me to set a view in Clearcase to see the vob element. How do I set a view an run a command with ssh with the syntax: ssh host command? (3 Replies)
Discussion started by: majo
3 Replies