Search Results

Search: Posts Made By: sonu_pal
1,579
Posted By sonu_pal
Shell script to correct the data
Hi,

I have below data in my flat file.I would like to remove the quotes and comma necessary from the data.Below is the details I would like to have in my output.

Could anybody help me providing...
7,281
Posted By sonu_pal
Hi Carlo, I have updated the above record...
Hi Carlo,

I have updated the above record with ^M character in AIX.

Thanks
7,281
Posted By sonu_pal
Append Pipes at the end of each line
Hi ,

I have pipe delimited file containing 12 columns having below data in AIX

Input :

A|B|C|D|E|F|G|H|I|J|K|L^M
A1|B1|C1|D1|E1^M
A2|B2|C2^M
So in first row i have 11 pipes which is...
4,629
Posted By sonu_pal
Check for null values in columns
Hi ,

I have below data with fixed with of 52 bytes having three columns value data.

01930 MA GLOUCESTER
02033 ...
3,336
Posted By sonu_pal
Hi, Its a bash shell..
Hi,

Its a bash shell..
3,336
Posted By sonu_pal
Dereferencing variable in loop
Hi ,

I have below code



While running above code i am receiving error : bad substitution

I need to use the variable s RC_1, RC_2 and their value outside of the loop.

Can anybody help...
3,684
Posted By sonu_pal
Subject line missing while sending mail
Hi,

I have below script



PROJECT_NAME=UDL/UDL_Weekly
sub= echo ${PROJECT_NAME}|cut -d "/" -f2
cat pr.sh|mail -s "`hostname`: $sub failed" sonu.pal@xyz.com




While running the script...
6,011
Posted By sonu_pal
Hi Jim, I'm using below code to capture...
Hi Jim,

I'm using below code to capture return status of each pipe command in a file.

echo "${PIPESTATUS[1]} ${PIPESTATUS[2]} ${PIPESTATUS[3]} ${PIPESTATUS[4]} ${PIPESTATUS[5]} ${PIPESTATUS[6]}...
6,011
Posted By sonu_pal
Yes it need the pipeline ,because it is making...
Yes it need the pipeline ,because it is making our process faster,

We are basically looking for error exit status after each command . Actually when we are running the script our job is not...
6,011
Posted By sonu_pal
Hi, This is a bash shell . ...
Hi,

This is a bash shell .
$TS_BIN/tranfrmr is script and ${TS_SETTINGS}/tranfrmr_p6.stx is our setting file stored in setting directory where we describe the input and output file
and...
6,011
Posted By sonu_pal
Exit code from piping in unix shell script
Hi ,

I have following code in my shell script :

"$TS_BIN/tranfrmr" "${TS_SETTINGS}/tranfrmr_p1.stx" "${TS_LOGS}/tranfrmr_p1.err" | (
"$TS_BIN/cusparse" "${TS_SETTINGS}/cusparse_p2.stx"...
1,537
Posted By sonu_pal
sorting files in unix
Hi ,

I have following error files in /srv/trillium/Projects/SAS_AML/logs dir.

srtforpm_p3.err
tranfrmr_p1.err
tranfrmr_p9.err
winkey_p5.err
tranfrmr_p10.err
srtforrl_p15.err...
3,136
Posted By sonu_pal
Hi , I am using the below complete code: ...
Hi ,

I am using the below complete code:


INPUTFILE_1=ADDR3.ALL
INPUTFILE_2="PCPSWAB1.UNDELV.DWNL.TRILL(+1)"
FTP_FILE_1=NVS.DWG.P.GBRSWUDL.ADDR3...
3,136
Posted By sonu_pal
FTP script variable issue
Hi ,

I have a following code ,I need to send two files on FTP server using single code
UDL_FTIHOST_1=podftiapp02.com
UDL_FTIUSER_1=dbsunny
UDL_FTIPWD_1=sunny@11
UDL_FTIHOST_2=podftiapp01.com...
8,174
Posted By sonu_pal
Hi, I tried doing above steps but it is not...
Hi,

I tried doing above steps but it is not merging in sorted order.

For eg :it is merging the contents in below random order of file

p41_drtranfrmr_log.txt
p41_drtranfrmr_stats.txt
...
8,174
Posted By sonu_pal
Hi, I tried executing the above commands...
Hi,

I tried executing the above commands but I need a 1 line space after merging the each contents of each file,

Thanks
sonu
8,174
Posted By sonu_pal
Redirect all logs files contents into a single log file
Hi ,

I have a Data cleansing process which creates different log file for each step , when the process runs it creates following log files in below order:

p1_tranfrmr_log.txt...
1,826
Posted By sonu_pal
Messages
hi all,

If we do not want to be disturbed by messages from other users while we are working, what would we do ?
can anyone just help me..
8,934
Posted By sonu_pal
hi pravin27, It is showing the output like...
hi pravin27,

It is showing the output like this ...but the output of last two lines are zero which is incorrect...


vijay aggarwal:9897933006:akurdi:19/05/1987:20000
sonu...
8,934
Posted By sonu_pal
i have a input file naming lookup.txt and the...
i have a input file naming lookup.txt and the data is :

sonu pal:9897933005:pimpri:19/05/1988:15000
vijay aggarwal:9897933006:akurdi:19/05/1987:20000
ajay...
8,934
Posted By sonu_pal
sort the last names
hi all

i have a datafile consists of fields seperated by colons. the fields are as follows : a) First and last name
b) Phone number
c) Address
d) Birth date...
9,066
Posted By sonu_pal
abbreviation vi
hi all,

i want to write a script using vi editor ...the problem is given below...

Set the abbreviation for “Infosys Technologies Limited” as ITL and list it.

Type ITL in...
18,736
Posted By sonu_pal
find and delete files
hi all ,

i want to find and interactively delete all the files having size greater than 20 bytes using "find" and other commands.....
9,320
Posted By sonu_pal
Merge files and sort them
hi all,

i have three files naming file1 , file2, file3 .
i want to merge the content of these three files, sort them and display the sorted output on the screen page by page.
4,614
Posted By sonu_pal
list largest files
hi all,

i want to list the five largest files in current directory ...

.
Showing results 1 to 25 of 30

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