Search Results

Search: Posts Made By: chandu123
4,184
Posted By chandu123
Checking data in csv file after headers
I had a requirement to check if data exists after headers (typically row 2 & so on) in csv file.
please help how we can check through shellscript in linux.

Thank you !!
14,004
Posted By chandu123
Check for long running process on AIX
I want to write a shellscript which determines if a particular process is long running than my specified threshold time.


Eg:
My process name is "prsd" and is expected to run for 15 mins and...
3,931
Posted By chandu123
Date formatting in AIX
Can you help in formating the date command in aix to get the following format
Oct 11 21:52


Fri Oct 11 21:52:01 PDT 2013

Required output:

Oct 11 21:52

Fri Oct 11 21:52:01 PDT 2013
1,625
Posted By chandu123
Thank you for the response. I am looking for...
Thank you for the response. I am looking for something in a shell rather than perl as we do not have perl installed in all the aix servers. Also, can you post a small snippet of code where my output...
1,625
Posted By chandu123
Current triggered time to epoch seconds
I have a requirement to find long running instances for notifying the stake holders based on the triggered time in AIX.
I am not sure how to convert the triggered time to epoch seconds.
For example...
1,157
Posted By chandu123
Appending a character(#) with string search at the start of the line
Hello,

I have been browsing through the forum, but unable to find a solution for my requirement.

I need to go through a file and search for /home/users and insert a # symbol at the start...
3,222
Posted By chandu123
Thank you DGPickett. This post is really helpful....
Thank you DGPickett. This post is really helpful. I will have my code embedded to the example. This thread can now be closed.
3,222
Posted By chandu123
When I tested command line , $? returned 1 for...
When I tested command line , $? returned 1 for the grep output while finding the closed file systems.
My requirement for this script is to find closed/syncd filesystems as non root user in all the...
3,222
Posted By chandu123
For Loop in shellscript - Printing Output for every iteration
for VGLIST in `lsvg -o`
do
CLOSED_OUT=`echo $VGLIST | lsvg -l $VGLIST | awk '{print $6 " " $7}' | grep closed`
if [[ $? = 0 ]]; then
echo "Filesystems $CLOSED_OUT in VG that are in Closed...
1,788
Posted By chandu123
[Solved] Decoding a base 64 string
Is it possible to decode a base 64 string in linux or unix. If so, related commands or reference notes would be really helpful.
8,852
Posted By chandu123
Thank you all for the response..I will keep this...
Thank you all for the response..I will keep this open for one more day...I will try in the script and will keep you guys posted.

Thank you!!
8,852
Posted By chandu123
Trying to parse a xml file for only one tag
I have a xml file in where I need to parse only a particular tag and print the output in the shell script.

Here is the tag info in the xml file

<dp:file> This is dp file output </dp:file>
...
9,641
Posted By chandu123
Thank you all..This thread can closed now!!
Thank you all..This thread can closed now!!
9,641
Posted By chandu123
Here is the output i am getting for the below...
Here is the output i am getting for the below command
df -k /tmp | tail -1
/dev/hd3 5767168 5557264 4% 811 1% /tmp

Please let me know wt are the expected parameters. i...
9,641
Posted By chandu123
Hello, I tried to run the below code and...
Hello,

I tried to run the below code and getting the following error. could you please help.

dd: bad arg -5211234
Usage: dd [if=InputFile] [of=OutputFile] [cbs=Number] [fskip=Number]
...
9,641
Posted By chandu123
Script to fill the file system mount with empty files to desired size
We are regularly using for our testing, where we are manually filling up the mount with desired size with following command

dd if=/dev/zero of=file_2GB bs=2048000 count=2000

We are planning to...
1,330
Posted By chandu123
Thank you..Code worked.. -Chandra..
Thank you..Code worked..

-Chandra..
1,330
Posted By chandu123
Old value in the file --->...
Old value in the file ---> "PADWD"\1\"LL9@99V@N=3M0O4I4;J43KH6"

New encrypted value taken as input - LL9@99V@N=34566666

Expected output- "PADWD"\1\"LL9@99V@N=34566666". Please help.
1,330
Posted By chandu123
Once the value is inserted i will be running a...
Once the value is inserted i will be running a related job for which I have tested command and is running fine. Please help me with insert code. Thank you.
1,330
Posted By chandu123
Replace a value in the file that start with quotes
I have to replace the specific encypted [LL9@99V@N=3M0O4I4;J43KH6] value in the file which is will be a taken as input from user always.PADWD appears two times in the document of which I need to...
1,052
Posted By chandu123
Thanks..It worked....
Thanks..It worked....
1,052
Posted By chandu123
Hi, I do agree with the Coroan688. But this...
Hi,

I do agree with the Coroan688. But this is how I am receiving the output when I tried above code.
while ENV="|" read name type prompt vval
do
echo " Do stuff with $name, $type, $prompt...
1,052
Posted By chandu123
Help needed reading the file
I am reading a pipe delimted file having the 4 columns. The file content looks like
APT|string|Application ID For App|value
for env in `cat $ConfigFile`
do

name=`echo $env | cut -d '|'...
10,566
Posted By chandu123
Thank you all for your response. This works for...
Thank you all for your response. This works for me.

-Chandra
10,566
Posted By chandu123
Thank you for the response. I did read the man...
Thank you for the response. I did read the man page for ps and tried to execute the following command.
ps -o user,pid,etime | grep dsap and this did not result in any output. But I do see the...
Showing results 1 to 25 of 30

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