Search Results

Search: Posts Made By: harshakusam
1,280
Posted By harshakusam
Problem.. can someone pls help..
Hi All,

My file contains data like below.

Key ~PILCSZY
First Name Szymon
Surname Pilch
User Code
Group ...
24,043
Posted By harshakusam
gsub is not there...
gsub is not there...
24,043
Posted By harshakusam
Hi rakesh this is differen one.. but looks...
Hi rakesh this is differen one.. but looks same....
24,043
Posted By harshakusam
cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
hi All,


cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

Can this be done by using sed or awk alone
12,256
Posted By harshakusam
$ nawk '/~/ {$1=sub(/~/,"",$1);...
$ nawk '/~/ {$1=sub(/~/,"",$1); $3=sub(/~/,"",$3); print $1","$3}' b
1,0
1,0
1,0
1,0
1,0
1,0
1,0
1,0
1,0
1,0
1,0


Iam getting above output
12,256
Posted By harshakusam
grep '\~' b | awk '{print $1","$3}' | sed -e 's/~//g'
Hi all,


grep '\~' b | awk '{print $1","$3}' | sed -e 's/~//g'


Iam using above command for some report...

can this be done using any one of them either sed or awk or grep...
3,507
Posted By harshakusam
hi shazin, When iam doing this iamgetting...
hi shazin,

When iam doing this iamgetting error



$ sed '1i\ USER_ID, LOGIN_ID' userdata.csv >newfile
sed: command garbled: 1i\ USER_ID, LOGIN_ID
3,507
Posted By harshakusam
hi shazin, When iam doing this iamgetting...
hi shazin,

When iam doing this iamgetting error

$ sed '1i\ USER_ID, LOGIN_ID' userdata.csv >newfile
sed: command garbled: 1i\ USER_ID, LOGIN_ID
3,507
Posted By harshakusam
Hi jim, Can same be done by using SED
Hi jim,

Can same be done by using SED
3,507
Posted By harshakusam
Insert Text On file
Hi All,

Can someone pls help me to insert some text on a file.

my file contains something like below..

AKBULBU,
BALUMIL,
BATCH,BATCH
BOARROB,
BOTAKAT,
C57896,
CAKIOZE,
CHECMER,...
1,977
Posted By harshakusam
How to reduce code.....
Hi All,

Could some one help me to reduce the code...

if [ $wordsize -eq 2 ]
then
./plist -m "$queuename" |grep $2|awk '{print $3}' >unlock.log
elif [ $wordsize -eq 3 ]
then
./plist -m...
Showing results 1 to 11 of 11

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