Search Results

Search: Posts Made By: akshu.agni
1,516
Posted By akshu.agni
Hi, I noticed it was logging into korn...
Hi,

I noticed it was logging into korn shell, that is why .bash_profile wasn't working.

Now new command in .bash_profile is


PS1="${HOSTNAME}:\${PWD##*/} \$ "



Now working as...
1,516
Posted By akshu.agni
Thanks for your reply. Yup, done that, but...
Thanks for your reply.

Yup, done that, but no luck
1,516
Posted By akshu.agni
Command prompt
Hi All,

Even changing .bash_profile, i am getting only $ as command prompt.

My bash profile looks like this.



PS1="[\d \t \u@\h:\w ] $ "

stty columns 200
set -o vi



if i run...
4,085
Posted By akshu.agni
Hi All, I used below code working according...
Hi All,

I used below code working according to my requirement, thanks for guiding me.


ps axo pcpu,pid,ppid,user,state,vsz,etime,args | grep DSD.RUN | grep -v grep
4,085
Posted By akshu.agni
I tried below option. ==>ps -eo...
I tried below option.


==>ps -eo pid,ppid,user,state,vsz,etime,args | grep DSD.RUN | grep -v grep
13300 13290 dscmr S 186288 04:26:44 phantom DSD.RUN Seq_To_Check_Script. 0/50/0/0/0/0/0/
...
4,085
Posted By akshu.agni
Regarding ps command
Recently we have migrated our server from HP UX to LINUX, unfortunately one of our admin script is not working in new LINUX machine

ps -eflxA -o pcpu,pid,ppid,user,state,vsz,etime,args | grep...
945
Posted By akshu.agni
Execution problems for listing files between two dates
Hi,

I have a requirement as mentioned below.

I have a file Start.log which is present in a directory called logs. the file is pipe delimitted as shown below

e.g.
file content
01 |...
2,167
Posted By akshu.agni
Thanks!! it is removing non ascii characters but,...
Thanks!! it is removing non ascii characters but, it it is removing pound(£) character which is there in other filed of the file. I want to retain pound character,

aim is to remove remove non...
2,167
Posted By akshu.agni
Help with bash shell script
Hi,

I have a file in which records contains non ascii characters. The records are comma delimited and quoted.

The non ascii characters are found in a particular column.

Example records
...
1,895
Posted By akshu.agni
2011-01-01 00:00:00 is just a string..
2011-01-01 00:00:00 is just a string..
1,895
Posted By akshu.agni
Execute a unix command
Hi,

Please suggest me to execute unix command.

Input : 2011-01-01 00:00:00

[YYYY-MM-DD HH24:MI:SS]

Required output : 20110101000000

YYYYMMDDHH24MISS

Regards
Akshu
20,339
Posted By akshu.agni
Append string to first line of a file
Hi,

Please suggest me to write unix command, HEADER20110101 string append to first line of a file..

Regards
Akshu
2,360
Posted By akshu.agni
How to find out list of all proccess which are running on unix servers from last two days.
Hi All,

I have a requirment, i need to get the list of all the process which are running from last two days on my unix server and also to put this list into an another file.

i am giving you a...
2,133
Posted By akshu.agni
Thanks It works fine!!
Thanks It works fine!!
2,133
Posted By akshu.agni
Problem in executing sed command
Hi,

Input: XX = to_date ('9999-12-31 23:59:59', 'YYYY-MM-DD HH24:MI:SS')

Required output: XX=to_date (\'9999-12-31 23:59:59\', \'YYYY-MM-DD HH24:MI:SS\')


Regards
Akshu
727
Posted By akshu.agni
Here is the file format 01|2011-05-13...
Here is the file format

01|2011-05-13 02:00:00|3|6|2 <--Header
XXXX | XXXX | XXXX XXXXX | <--Detail record
99|2011-05-13 02:00:00|3|6|2|25131 <--Trailer


The...
727
Posted By akshu.agni
Need help in shell scripting
Hi,

I have one file where the records are delimited by |. What i did is i took one field which is delimited by | and i incremented by one. The task is to i need to put it back in the same...
1,096
Posted By akshu.agni
Thanks :) ---------- Post updated at 08:32...
Thanks :)

---------- Post updated at 08:32 AM ---------- Previous update was at 08:31 AM ----------




Thanks
1,096
Posted By akshu.agni
Need help
Please help me to execute grep command to search for the pattern which begins with D or H.
956
Posted By akshu.agni
Need help in Shell scripting
file_dt=`head -1 nnnn_mi_claim_ext.dat | cut -c5-12`
file_val_dt=`cat cat dateval.txt`


if [ $file_dt -le $file_val_dt ]
then
exit 2
else
echo $str1 > dateval.txt
recnt1=`grep "^D" $1...
1,019
Posted By akshu.agni
Need help to execute command
HI,

I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file...
841
Posted By akshu.agni
Thanks. This code working fine. I have tried cut...
Thanks. This code working fine. I have tried cut command to this problem.
841
Posted By akshu.agni
Need help in Shell scripting
HI,

I have a file(file name:NGC_DATA_(date)_(header).txt)
where (date) is in YYYYMMDD format and (header) is a integer with length 3

The content of first line of this file is...
Showing results 1 to 23 of 23

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