Search Results

Search: Posts Made By: er_zeeshan05
2,161
Posted By er_zeeshan05
e flag in echo
i just added -e in echo option in which helped to solve the problem
2,161
Posted By er_zeeshan05
it didn't work
it didn't work
2,161
Posted By er_zeeshan05
i use sun os so should i replace awk with...
i use sun os

so should i replace awk with nawk?
2,161
Posted By er_zeeshan05
created a zero byte file
the above statment doesn't work

it creates a zero byte file

:(

it a little bit urgent

can someone help
2,161
Posted By er_zeeshan05
one more issue last- sed
hi

i have following sed command




this replaces "** in filename1 with octal value 007 filename2

when i put it in script it wont work but it works from command line

my OS is sun OS
...
2,831
Posted By er_zeeshan05
System is
SYSTEM IS SUNOS SPARC

---------- Post updated at 05:15 PM ---------- Previous update was at 05:12 PM ----------

what if i get " in my data.

this wont work

my script use to take care of it...
2,831
Posted By er_zeeshan05
More details
i want to replace string ,", with octal value 007 (^G)

My file is in format .there are 5 column

"col1","col2","col3","col4","col5"

is should appear like this

col1^Gcol2^Gcol3^Gcol4^Gcol5....
2,831
Posted By er_zeeshan05
Awk sub command - Prod - Urgent
Hi

I have this check in file for replacing text in unix .This code use to work in linux but stopped working when we moved to unix.

cat xyz.dat | awk '/\x07/{sub(/\"/,"")};{print}'|awk...
10,945
Posted By er_zeeshan05
For loop with date
Hi

I have 1 question regarding using date in shell script.Can we use for loop with date

Req

1. I need to run the loop for certain date range
2. Check each date in loop that is Sunday or...
1,702
Posted By er_zeeshan05
business need
business need
1,702
Posted By er_zeeshan05
it team lead requirement
it team lead requirement
1,702
Posted By er_zeeshan05
awk based on filename
i need to use awk to replace string in file.

if suppose filename is abcd.dat i need to replace in file
california with CA

else

if file name name is cdef.dat i need to replace in file...
1,585
Posted By er_zeeshan05
count of sum of row60 files same patter
i have 60 files that have same pattern

tgt_abc1.dat
tgt_abc2.dat

i want to calculate sum of row count of these files and sum these up and populate that in third file.
how can i do that??
...
18,285
Posted By er_zeeshan05
mod on %RANDOM
I use %random to generate random number but i want to mod it so i get random number below 50 only in ksh script
how can i do it
x=random % 50
doesn't work

help is appreciated.


Is there...
7,491
Posted By er_zeeshan05
random number generation in ksh
i tried to use $random function in unix
i simply typed print $random at shell and it returnted no value
is there any function in korn shell that i can use to generate random number

help is...
7,156
Posted By er_zeeshan05
File Watcher
Hi

Please help me in this

I want to execute a shell script abc.ksh.
But I only want it to execute if file XYZ is not present.
If file XYZ is present than I want to unix to sleep for 5 Sec and...
0
db2
2,164
Posted By er_zeeshan05
db2
i want to run a db2 query though shell script
but i want my where condition element to chnage everytime like class_nm='abc' next time class_nm='def' next time
i want it to do by passing parameters...
1,418
Posted By er_zeeshan05
plz reply someoe
plz reply someoe
1,418
Posted By er_zeeshan05
..... ls -1 source_dir > list .....
.....
ls -1 source_dir > list
.....
1,418
Posted By er_zeeshan05
it wont work in script
it work if i run it at individual level on command task
but when i use it in script it wont work:mad::mad::mad::mad:
1,418
Posted By er_zeeshan05
using list only file
i use ls to list files in different directory
but it diplays it with directory path
i want only the file name

how is it possible
only file name?????????????????????????:mad::mad::mad::mad:
2,761
Posted By er_zeeshan05
just to add i need to create outpiut file name on...
just to add i need to create outpiut file name on fly
2,761
Posted By er_zeeshan05
yeah it work but i want to write output of each...
yeah it work but i want to write output of each file into another file as tgt_file

like input of file1 into tgt_file1
like input of file2 into tgt_file2
1,648
Posted By er_zeeshan05
i got it thank you very much
i got it thank you very much
1,648
Posted By er_zeeshan05
no i am not
sorry it not 1 it i.why it gives this problem
Showing results 1 to 25 of 41

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