Search Results

Search: Posts Made By: ragu.selvaraj
1,665
Posted By ragu.selvaraj
Executing multiple commands in a file at same time
Hi

Am having file.ksh as below
wc -l file1.txt
wc -l file2.txt
wc -l file3.txt
wc -l file4.txt


i want all the commands in this file to execute in same time

please help

Thanks in...
1,209
Posted By ragu.selvaraj
thanks
thanks
673
Posted By ragu.selvaraj
Looping help to split the total
Hi Gurus,


Please help me in below requirement.

Instance =5 (it is user parameter)

total=52 (it is user parameter

i need to split this to 5 and reminder as 1 instances totally 6

for...
1,209
Posted By ragu.selvaraj
Looping concept please help
Hi Gurus,


Please help me in below requirement.

Instance =5 (it is user parameter)

total=52 (it is user parameter

i need to split this to 5 and reminder as 1 instances totally 6

for...
1,050
Posted By ragu.selvaraj
Deleting Line number from different file
file 1
abcde,dfgdfg,sdfds
sdfsd,sdfd,sdfg,sdfs
dwfds,sdfgdfg,sdfsdf

file2
1
3

i need to delete the line numbers file 1 based on file2



i have taken in loop file 1 and

i cant able...
1,031
Posted By ragu.selvaraj
Am having records as below file1 ---- abc ...
Am having records as below
file1
----
abc
12a
a2b

file2
-----
a
b
c
d
e


am trying to write a script to identify the character is present in the specified array


validchar=`cat...
1,031
Posted By ragu.selvaraj
"a" -o $var == "b" i want to change...
"a" -o $var == "b"

i want to change dynamically the array strings(validchar)
1,031
Posted By ragu.selvaraj
Script to search a string
Hi all


Am having records as below
file1
----
abc
12a
a2b


am trying to write a script to identify the character is present in the specified array


validchar=a b c d e 1
rec=`cat...
1,247
Posted By ragu.selvaraj
yes am writing a script to identify whether...
yes

am writing a script to identify whether the string is present or not

for example

consider a record
abcd,1234,xyz


i need to validate whether the first column delimeter as , abc
...
1,247
Posted By ragu.selvaraj
hi jote thank you i want to execute...
hi jote

thank you

i want to execute in loop i need the condition like

if a in (2nd file a b c d.....)

then
echo string is correct
else echo string in not in 2nd file

fi
1,247
Posted By ragu.selvaraj
i want to print he character which is not present...
i want to print he character which is not present in the 1st file
1,247
Posted By ragu.selvaraj
Array Help
Hi

Am having 2 files

1st file having

1 2 3 4 5 6 7 8 9

2nd file
1
2
b
3
c


i want to check eache character in 2nd file is present or not
need to check whether 1 is present...
943
Posted By ragu.selvaraj
again am getting the expression syntax error ...
again am getting the expression syntax error

---------- Post updated at 07:01 AM ---------- Previous update was at 06:57 AM ----------

thank you pravin it worked,,, thanks again
943
Posted By ragu.selvaraj
I cant able to hard code i need to execute from...
I cant able to hard code i need to execute from the user defined variable,

i tried but it is not working
943
Posted By ragu.selvaraj
Trying to execute a expression in a variable
Hi

i tried to execute a below script but it is giving execution error


rec=ABC,1234,55.00
Colno=2
coldel=,

fd='"'$coldel'"'
fprint="'"'{print$'$colno'}'"'"

colsyn=`echo "echo "$rec...
1,706
Posted By ragu.selvaraj
hi Pikk45 it is not working ... total...
hi Pikk45

it is not working ...

total number of records is 7 am splitting into 1 0r 2 0r 3 as passing parameter value

if it is 1 means
1,emp
1,dept
1,class
1,subclass
1,region...
1,706
Posted By ragu.selvaraj
hi balajesuri awk 'BEGIN{i=1} {print...
hi
balajesuri


awk 'BEGIN{i=1} {print i "," $0} NR%1==0 {i++}' t1

when i execute this it is coming as
1,emp
2,dept
3,class
4,subclass
5,region
6,country
7,division


i need to...
1,706
Posted By ragu.selvaraj
10/3=3.2 1,emp 1,dept 1,class ...
10/3=3.2

1,emp
1,dept
1,class
2,subclass
2,region
2,country
3,division
3,...
3,.....
4,....

---------- Post updated at 02:06 AM ---------- Previous update was at 01:57 AM ----------
...
1,706
Posted By ragu.selvaraj
help needed to put instance numbers
Hi All

I need help

am having a source file as below

emp
dept
class
subclass
region
country
division



first i need to get line count and i need to divide by 3 it is an parameter...
1,768
Posted By ragu.selvaraj
i tried like below for i in $detreccheck;do ...
i tried like below
for i in $detreccheck;do
commas=`echo $i |awk -F"$delimeter" '{print NF-1}'`

echo "count of commas $commas"
if [ $count -ne $commas ]
then
status=-5
...
1,768
Posted By ragu.selvaraj
Habcd145623 D1,2,3,4,567 D1,2,,34568 ...
Habcd145623
D1,2,3,4,567
D1,2,,34568
Dr,r,rr
D3,33,3
D1,2,34,5,67
D12,34,56,7,89,900
T12344343

i need the line numbers where the total commas the line is not equal to 4 by omiting H, D...
7,869
Posted By ragu.selvaraj
source file is Habcd145623 D1234567 ...
source file is
Habcd145623
D1234567
D1234568
Drrrr
D3333
D1234567
D123456789900
T12344343

i need the line numbers where the length of the line is not equal to 8 by omiting H, D starting...
1,768
Posted By ragu.selvaraj
thanks a lot working fine , :)cheers
thanks a lot working fine , :)cheers
1,768
Posted By ragu.selvaraj
Thank you Ranga its working ---------- Post...
Thank you Ranga its working

---------- Post updated at 08:47 AM ---------- Previous update was at 08:45 AM ----------

hi ranga

i need to put onle line /n

like below
...
1,768
Posted By ragu.selvaraj
Need Script plz help
hi please help

i need script to merger columns

input file

a,bb,1234345234
a,bb,sdfsdfsdf
a,bb,xxxxxxxx
b,cc,12335353
b,cc,fdgfdghht
b,cc,yyyyyyy
c,22,sdfgsdfg
.
.
.
.
output file...
Showing results 1 to 25 of 25

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