Search Results

Search: Posts Made By: prashant43
1,095
Posted By prashant43
awk help
Input File
0:00 PoolA 2
0:00 PoolA 5
0:00 PoolB 8
0:00 PoolB 6
0:01 PoolA 2
0:01 PoolA 3
0:01 PoolB 6
0:01 PoolB 9
0:01 PoolB 1
0:01 PoolC 9
0:01 PoolC 2

Expecting output
0:00 PoolA 7...
11,299
Posted By prashant43
YES
Yes RDC.
But "id" command gives only user id and group id!.

I need name associated with the username/userid.
11,299
Posted By prashant43
Thanks Jim for response ,but no access
No Jim, NO Access to getent :eek:

FYI..

OMVS is a feature of MVS that allows applications conforming to POSIX standards to operate or access data on an MVS system.
11,299
Posted By prashant43
Thanks for solution, but iw wont work as I dont...
Thanks for solution, but iw wont work as I dont have access to /etc/passwd file.Pls update if you have other ways to get it.
11,299
Posted By prashant43
What is the command to get name associated with userid?
Hi,

1#what is the command to get name associated with userid?

2#I am using unix on Mainframes thru OMVS.
So any one know to to capture TSO command output to a variable on OMVS environment.
...
14,800
Posted By prashant43
How to redirect the output to multiple files without putting on console
How to redirect the output to multiple files without putting on console

I tried tee but it writes to STDOUT , which I do not want.

Test.sh
------------------
#!/bin/ksh
echo "Hello " tee -a...
4,635
Posted By prashant43
Thanks a lot for your reply, but this file is...
Thanks a lot for your reply, but this file is havin many different Mean* fields.
4,635
Posted By prashant43
This wont give the expected output: Your code...
This wont give the expected output:
Your code spits as below:
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager...
4,635
Posted By prashant43
Help me in counting records from file
Hi,

Please help me in counting the below records(1st field) from samplefile:

Expected output:
Count Descr
-------------------------------------------
7...
14,786
Posted By prashant43
How to schedule my script without crontab
I have a script which shoud run after every 30 minutes.Though I know abt crontab, unfortunately I dont have access/authorization to use crontab in my terminal.

Could any one pls let me know how to...
15,700
Posted By prashant43
Thanks otheus:)
Thanks otheus:)
15,700
Posted By prashant43
CENTER LEFT RIGHT are the members of the array. ...
CENTER LEFT RIGHT are the members of the array.

I want to search all these members in file
15,700
Posted By prashant43
How to use variables/array in grep command
Hi,

I have a reqmt as i have some values in array and I want to search each value in a file by grep command.
Here goes my scripting:

#!/bin/ksh
set -A ArrayA CENTER LEFT RIGHT
echo "ArrayA...
9,446
Posted By prashant43
Thanks a lot era!!
Thanks a lot era!!
9,446
Posted By prashant43
How to replace all entries of comma in text file by space or other character
Hi ,

How to replace all entries of comma in text file by space or other character.

cat temp.txt
A,B,C,D

I want this file to be like
A B C D

Please help!!!
5,593
Posted By prashant43
Thanks Niroj... ok matrixmadhan ,..going...
Thanks Niroj...


ok matrixmadhan ,..going forward, I ll take care of rules!
5,593
Posted By prashant43
Please help...Its urgent
Please help...Its urgent
5,593
Posted By prashant43
For loop in ksh..Please help..
Hi ALL,

I need to take some command line arguments for my script and then want to run a function for each argument.I thought of using for loop as below, but its not working , can some one please...
17,411
Posted By prashant43
How to compare two strings
Hi all,

I am trying to compare two strings/dates, but its throwing error::Syntax error at line 5:

Please help !!

Any alternate way to compare two dates is also fine....
logdate1=`date -u...
22,684
Posted By prashant43
Finally using the below for my...
Finally using the below for my query..........Thanks for all who ever replied and gave their valuable answers...

#!/bin/ksh
timehh=`date -u '+%H'`
timemm=`date -u '+%M'`
if...
22,684
Posted By prashant43
Thanks for reply.. but ......its not working...
Thanks for reply..
but
......its not working in my machine....

Any other solution ...?
22,684
Posted By prashant43
Yes,...It really helped me. i used a condition...
Yes,...It really helped me.
i used a condition for that.(when min=59)incrementing hour...etc..

Regards
P
67,340
Posted By prashant43
If he has lot of files, then he can go for a...
If he has lot of files, then he can go for a script,...i guess.
67,340
Posted By prashant43
Dear vidydhar, thanks for reminding.... ...
Dear vidydhar,

thanks for reminding....

If he want to keep original file, he can use
cp sample.F1.Test sample.csv

Regards
Prashant
22,684
Posted By prashant43
Thanks a lot palsevlohit_123 !!!! It helped...
Thanks a lot palsevlohit_123 !!!!

It helped me a lot..
Showing results 1 to 25 of 32

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