Search Results

Search: Posts Made By: vamsi.coe
2,561
Posted By vamsi.coe
:-)
looks like he put the for loop from "C" :D
1,719
Posted By vamsi.coe
i ain't sure what exactly you are trying to...
i ain't sure what exactly you are trying to accomplish here.. but here is what i would suggest to do:


for file in `ls -1 art_bg_11*`
do
cut -c1-100 $file>temp
mv temp $file
done
2,158
Posted By vamsi.coe
nawk maximum limit
Hello Guys,

I wanted to know if there is a limit on number of records nawk can process at one time, as I've a process which may process upto 20-30k lines at once.
Also, are there any other...
7,496
Posted By vamsi.coe
:( $ nawk --re-interval '$0 ~ /[0-9]{9}/' data ...
:(
$ nawk --re-interval '$0 ~ /[0-9]{9}/' data
nawk: unknown option --re-interval ignored


:( it's not working..
working on SunOS 5.9.. any clues?
7,496
Posted By vamsi.coe
hmm
This is actually i am doing...

BEGIN {
errcount=0;
RC=0;
print "" > "output"
}
{

if( $0 ~ /^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$/)
{
print >>"output";
...
7,496
Posted By vamsi.coe
Help with NAWK regular expressions
I've a file
$ cat size
1234
5678
vamsi

I want to match the lines which has just 4 digits and nothing else.
So
$ cat size | nawk ' $0 ~ /[0-9][0-9][0-9][0-9]/ {print}'
1234
5678

But when...
3,428
Posted By vamsi.coe
wow..
awesome rubin...thanks for the Idea!:D
1,400
Posted By vamsi.coe
:-)
:eek: That was one hell of a solution! :D Thanks for the idea!!
2,398
Posted By vamsi.coe
Hmmm
May be if it suits you.. you can do the following while running script2 from script1
./script2.ksh 2>error.txt 1>output.txt
:rolleyes:
will create error.txt with stderr and output with stdout :b:
16,884
Posted By vamsi.coe
wOoT!
I was just browsing through.. nice solution!! :b: :D
3,427
Posted By vamsi.coe
Hmmmmm
I've written a nawk program for your problem..

BEGIN {
counter=0;
store[1]="";
}

{
if(match($0,"class"))
{
for(i=1;i<=counter;i++)
{
...
29,392
Posted By vamsi.coe
:-(
well.. this wont work in every case..
let's suppose 1.txt is like this:
$ cat 1.txt
aaaa

The output is :
$ tr '[a-z]' '[A-Z]' < 1.txt | tr -sc 'AEIOU' '[\012*]' | sort | uinq -c
1 AAAA
...
2,133
Posted By vamsi.coe
yay!
:D awesome dude.. thanks .. it works!!
49,905
Posted By vamsi.coe
hmm
control M characters are mess.. yes.. when copied from windows..
i have a simpler way to do this :D

dos2unix file1 >file2
mv file2 file1
:b:

tell me if it works for you
2,133
Posted By vamsi.coe
Weird Variable Evaluation problem
Hi Guys..

I have a script which is:

#!/bin/ksh
for file in `grep qtc $PIC_SHS/xback00.ksh |cut -d"=" -f2`
do
ls $file
cp $file ./
done


output of grep is
$ grep qtc...
3,680
Posted By vamsi.coe
Sort Old Style Key Definition
Hello guys,

I am quite confused with old style key definitions.

Below is the example:

sort -o $sortfile +0.75 -0.84 $input

According to the manual, the key field should start at 75th...
Showing results 1 to 16 of 16

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