Search Results

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


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

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

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


Cheers
15,013
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,446
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,870
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,870
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,870
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,567
Posted By aajan
HI, This Should Work!!!!!!!!!!!!!!!! ...
HI,
This Should Work!!!!!!!!!!!!!!!!

ESC :!chmod 777 %

where %-> represents the current file

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


cat file | tr '\n' ' '


Regards,
aajan
1,828
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,949
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,259
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,312
Posted By aajan
HI, Please provide us with a sample o/p ...
HI,
Please provide us with a sample o/p

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

Regards,
aajan
4,504
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,310
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,876
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,566
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,813
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,813
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,813
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,215
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 !=...
208,797
Posted By aajan
More SImpler one!!!!!!!!!!!!!!!!!!!!!! awk...
More SImpler one!!!!!!!!!!!!!!!!!!!!!!

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

Regards,
aajan
3,253
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 10:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy