Search Results

Search: Posts Made By: aajan
4,647
Posted By aajan
U can try this also!!!!!!!!!!! awk...
U can try this also!!!!!!!!!!!


awk '{print("###|",$0)}' filename > newfile

Cheers
6,763
Posted By aajan
HI, Check out this!!!!!!!!!!!!!! sed...
HI,
Check out this!!!!!!!!!!!!!!

sed 's/VAL=123,456/VAL=123,457/g' fielname


Cheers
15,051
Posted By aajan
TO Extract Last 10 Characters from a line
Hi Guys!!!!!!!!!!!

How do we extract last 13 characters from a line

I/p:

.R1/new/sv902a.01.per

O/p:
sv902a.01.per

And the no of characters differs in each line..

Kindly help me...
1,451
Posted By aajan
Script Needed Urgent!!!!!!!!!
Hi Guys,


Need a script!!!!!!!!!!!

Sample File:

./R1/new/svp920m02f.4gl
./R1/new/svp921m01.4gl
./R1/new/svp950m01.4gl
./R1/new/svp950m01d.4gl ...
1,872
Posted By aajan
Hi Rahul, Thanks for the reply..Have done...
Hi Rahul,
Thanks for the reply..Have done this part but i need to the generate dates periodically.plzz help me out in this
1,872
Posted By aajan
HI, I checked out but am not able to find...
HI,
I checked out but am not able to find the answer..Please guide me in this
1,872
Posted By aajan
Changing date regularly..
Hi Guys,
Plzz help me out in this!!!!!!!!!!!!!!!!

I have a file which runs in the back ground using crontab for every monday at5 P.M. The problem is inside the file ...

This is a...
15,689
Posted By aajan
HI, This Should Work!!!!!!!!!!!!!!!! ...
HI,
This Should Work!!!!!!!!!!!!!!!!

ESC :!chmod 777 %

where %-> represents the current file

Cheers,
aajan
10,357
Posted By aajan
Please provide us with the sample input and output
Please provide us with the sample input and output
1,352
Posted By aajan
THis should work!!!!!!!!!!!!!!!!! cat...
THis should work!!!!!!!!!!!!!!!!!


cat file | tr '\n' ' '


Regards,
aajan
1,834
Posted By aajan
Please provide us with a sample output and make...
Please provide us with a sample output and make it clear..

Regards,
aajan
1,959
Posted By aajan
This should work but u can find a better one ...
This should work but u can find a better one

cat file1 | while read line
do
var=`echo $line | cut -d"," -f2`
cat file2 | while read value
do
val=`echo $value | cut -d"," -f5`
val4=`echo...
1,266
Posted By aajan
HI, It works Perfectly for...
HI,
It works Perfectly for me!!!!!!!!!!!!!!!!!

I created a file called "test" and then i opened it using the command

"vi test"

and then u should save the file once and only then u can...
1,314
Posted By aajan
HI, Please provide us with a sample o/p ...
HI,
Please provide us with a sample o/p

Regards,
aajan
6,215
Posted By aajan
Hi, It work perfectly for me Regards, ...
Hi,
It work perfectly for me

Regards,
aajan
4,512
Posted By aajan
Hope This should work grep "Extn:" filename...
Hope This should work

grep "Extn:" filename | awk '{printf("%s%s\n",$1,$2);printf("%s%s\n",$3,$4)}'


Regards,
aajan
1,315
Posted By aajan
This Will work but am not sure whether it meets...
This Will work but am not sure whether it meets ur requirements...

awk -F"." '{printf("%sa%s.%s\n",$1,i++,$2)}' filename


Regards,
aajan
3,892
Posted By aajan
Hope this should work !!!!!!!!!!!!!!!!!!!!!!! ...
Hope this should work !!!!!!!!!!!!!!!!!!!!!!!

AWk:

cat filename | awk '{printf "%s|",$0}'

or more simpler one using tr command

cat filename | tr '\n' '|'


Regards,
aajan
1,569
Posted By aajan
generating data for 1 hour
Hi Folks,
The reqirement is that i need to generate 1 hr file with a time interval of five minutes..
For ex:
my i/p is
0000-0000
and desired o/p is
0000-0005
0005-0010
0010-0015...
18,859
Posted By aajan
That is fine..... but is there any possibility...
That is fine.....
but is there any possibility to achive it without using any of the functions or modules?
18,859
Posted By aajan
I have the script using these commands but i dont...
I have the script using these commands but i dont want to use any of the system commands..

is there any way to do it?

heers,
aajan
18,859
Posted By aajan
create a directory in perl
Hi Guys!!!!!!!!!!!!!!!!!!!!!

can we create or copy directories in perl without using system commands like "mkdir" and "cp"

script needed urgent !!!!!!!!!!!!!!!!!!!!!!!!!!!

cheers,
aajan
3,233
Posted By aajan
Hope this Should...
Hope this Should Work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#!/usr/bin/ksh

i=1
j=1
cat samp | while read line
do
val="END"
value="BEGIN"
if [ $j -le 7 ]
then
if [[ $line != $val && $line !=...
210,570
Posted By aajan
More SImpler one!!!!!!!!!!!!!!!!!!!!!! awk...
More SImpler one!!!!!!!!!!!!!!!!!!!!!!

awk '$4>=2{print}' filename

Regards,
aajan
3,272
Posted By aajan
Hope this should work!!!!!!!!!! ...
Hope this should work!!!!!!!!!!

#!/usr/bin/ksh
i=1
j=0
k=0
cat samp | while read line
do
if [ $line -lt 100 ]
then
arr[$i]=$line
if [ $j -le 5 ]
then
echo ${arr[$i]}
echo ${arr[$i]} >>...
Showing results 1 to 25 of 80

 

Featured Tech Videos

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