Search Results

Search: Posts Made By: shifahim
2,326
Posted By shifahim
Resolved !!
Resolved !!
2,326
Posted By shifahim
How to grep for a complex String?
Hi,

I have a file hello.log which has the below entry

./logs/mymac/myserver.log:####<Jun 7, 2015 12:56:54 PM EDT> <myserver.my.bank.com> <mymac> <[ACTIVE] ExecuteThread: '5' for queue:...
958
Posted By shifahim
Question around For Loop
Hi,

I have a variable called result that get the the below value i.e two lines assigned../logs/mymac/myserver.log:####<Jun 7, 2015 12:56:54 PM EDT> <myserver.my.bank.com> <mymac> <[ACTIVE]...
1,802
Posted By shifahim
Hey folks I worked out another way of helping...
Hey folks I worked out another way of helping myself so i do not need to figure this out .. Thank you for your attention !!
1,802
Posted By shifahim
How to compare dates in different formats?
Hi,

I have a log file that records date time stamp in this format <Jun 7, 2015 12:56:54 PM EDT>.

The date command give me the date in this format Mon Jun 8 08:40:58 EDT 2015

If the...
3,896
Posted By shifahim
So are you saying there is no way except having...
So are you saying there is no way except having two "." dots ?
3,896
Posted By shifahim
Export script to current session
Hi,

I have a script called


bash$> cat -ev setprofile.sh
alias rm='rm -i'$
$


The alias does not take effect unless i run the script as


bash$> . ./setprofile.sh


What do I...
4,491
Posted By shifahim
Hi, Can you reply with my server-names in...
Hi,

Can you reply with my server-names in mind to help me understand better.

I created keys using

wlsuser@server173> ssh-keygen -b 2048 -t rsa

it gave me two files

id_rsa
id_rsa.pub...
4,491
Posted By shifahim
scp command for file transfer
I am not able to throw a file from server173 to server067

i.e.


wlsuser@server173> scp /tmp/harsha.txt wlsuser@server067:/tmp


fails

However, I am able to pull a file from server173...
3,287
Posted By shifahim
How do we send hup signal inorder to end session....
How do we send hup signal inorder to end session.

My OS version is

SunOS mymachine 5.10 Generic_142900-14 sun4v sparc SUNW,T5240
3,287
Posted By shifahim
Yes, this connects real quick but wait long for...
Yes, this connects real quick but wait long for blocked remote ports.

How can this be addressed?
3,287
Posted By shifahim
My server is a production server and I can't...
My server is a production server and I can't installing anything, for I am not the admin and it requires approvals.

Would someone help me with the correct netstat script to figure which ports are...
3,287
Posted By shifahim
nmap bash: nmap: command not found I do...
nmap
bash: nmap: command not found


I do not have nmap nor do i know what is it for.

./testtelnet.sh destination-host 1000 1050

if I am able to connect on port 1010 to destination-host it...
3,287
Posted By shifahim
telnet script
Hi,

I need a script that take one parameter as destination hostname and two parameter as ranges and tries telnet and records the successful connections.

fo reg:

./testtelnet.sh...
15,521
Posted By shifahim
That's my requirement. Can you help me give me...
That's my requirement. Can you help me give me one example of JIL where i can pass any parameter to my "./clean" script like

./clean 3

or

./clean 5

One parameter for one execution at a...
15,521
Posted By shifahim
Autosys jobs
Hi,

I have a script that take one parameter as an input.

for example:

./clean.sh <foldername>

There are 7 different folder names that we can provide to my script and my script would...
1,041
Posted By shifahim
Not all files have the .txt extension. I tried...
Not all files have the .txt extension. I tried just * however it does not help.

Sorry for being naive.
1,041
Posted By shifahim
move all files
What is the quickest and easiest way of renaming all files in a folder with a prepend string.

For example:

hello.txt
yellow.txt
wow.txt

should become

myfile.hello.txt
myfile.yellow.txt...
2,210
Posted By shifahim
Wish to thank you again :)
Wish to thank you again :)
2,210
Posted By shifahim
yest_dat_day=`TZ=CST+24 date +%d | sed 's,^0,,g'`...
yest_dat_day=`TZ=CST+24 date +%d | sed 's,^0,,g'` return "5" for me. So what is the significance of "$yest_dat_day" -lt 10 ??

Can you please explain?

Also i do not see any difference in the if...
2,210
Posted By shifahim
Yes, thats what i am not sure, how to specify...
Yes, thats what i am not sure, how to specify find so that it filters logs of the previous day rather than 24 hrs.

SunOS mymachine 5.10 Generic_144488-07 sun4v sparc SUNW,SPARC-Enterprise-T5220
2,210
Posted By shifahim
ls -ltr total 55472 -rw-r--r-- 1 admin grp ...
ls -ltr
total 55472
-rw-r--r-- 1 admin grp 1684877 Sep 2 20:47 51.error_log_443.201109020000.gz
-rw-r--r-- 1 admin grp 26619984 Sep 2 20:48 51.access_log_443.201109020000.gz
-rw-r--r-- ...
2,210
Posted By shifahim
List and grep
Hi,

My requirement is to copy all yesterdays files which have "access" keyword in their filenames to a separate folder say "/tmp/moht".

Can you please let me know how?
2,079
Posted By shifahim
ls -ltr /etc/profile -rw-r--r-- 1 root ...
ls -ltr /etc/profile
-rw-r--r-- 1 root sys 965 Jul 13 2007 /etc/profile


whereas I am

id
uid=870(wlsadmin) gid=641(wlsgrp)

How can I get this done?
2,079
Posted By shifahim
Top of my head ... i am a dummy.. can you let me...
Top of my head ... i am a dummy.. can you let me know how-to ?
Showing results 1 to 25 of 64

 
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy