i have a file like this
1111_2222#$#$dudgfdk
11111111_343434#$#$334
1111_22222#43445667
i want to remove all those charachetrs from #
how can i do this
Thank in advance
Saravanan
i have a file like this
1111_2222#$#$dudgfdk
11111111_343434#$#$334
1111_22222#43445667
i want to remove all those charachetrs from #
how can i do this
Thank in advance
Saravanan
Is this a home work question?
What is the "real world problem"?
i am trying to retrieve all the function call from an obj file and each call ends with values like these so i need to remove them to get only the calls
Should be something like:
sed 's/\([^#]*\)#.*/\1/' file
or:
awk -F# '{print $1}' file
Another way,
cut -d'#' -f1 file
Regards,
Ranjith