Search Results

Search: Posts Made By: mvignesh
1,386
Posted By mvignesh
Thanks a lot for quick reply. now how can i...
Thanks a lot for quick reply.

now how can i assign it to a variable

var1 = grep -n "look at the moon" file | cut -d":" -f1

above stmt gives me error.

Please suggest.

Thanks in...
1,386
Posted By mvignesh
finding the line number of a particular line in a file
Hi Frnds,

I need to find the line number of a particular line in a file and store that line number to a variable.

if a file named myfile contains following

look at the sun
look at the...
Showing results 1 to 2 of 2

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