Search Results

Search: Posts Made By: xyz123
40,985
Posted By xyz123
hi the actuall requirement are as such ...
hi
the actuall requirement are as such


grep -n "end" $FILE | cut -f1 -d":"

here $FILE is variable which contains the path of the file which
need to be grepped.

i am performing this...
45,943
Posted By xyz123
thanks for all your help it worked fine
thanks for all your help

it worked fine
45,943
Posted By xyz123
thanks for all your help can you tell me how...
thanks for all your help

can you tell me how to cut the last two character of a variable
if the varaible is not of fix length.

right now i am performing this operation through taking size of...
40,985
Posted By xyz123
thanks, i tried it out but it gives error...
thanks,

i tried it out but it gives error cannot open file.
i have checked for permission ever thing is ok.

if i perform this operation at command line it works fine.but as i am
doing this in...
45,943
Posted By xyz123
cut through variable
hi,

can some one put more light.

i want to perform cut operation on a variable, but i am not
able to do so as the variable contain special character.

e.g var="adc|cfr\\df|{dff}|df}}"
...
40,985
Posted By xyz123
grep and assign it to variable
Hi ,

Help required

i want to grep a pattern from a file using "grep -n" command
then cut the field (i.e line number return by cut command) and
assign it to a variable

e.g

var=grep -n...
Showing results 1 to 6 of 6

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