0
votes
2answers
285 views

sed + how to remove the last string after specific character

how to remove the last string after "." character include the "." character itself implementation can be with sed under Linux/Solaris operation system example of IP address before change ...
0
votes
1answer
187 views

perl + sed + remove lines that start with “#”

please advice I have linux and solaris machines, and I need command that work on both OS I use the following perl line in order to remove all lines that start with "#" why perl command not work , ...
-3
votes
2answers
269 views

linux + solaris + delete all characters in file except numbers and dot char [closed]

please advice how to delete all characters in file except numbers and "." Should be implemented by sed or awk or perl ( one line ) or any other idea , so I will add the syntax in my ksh script ...
3
votes
1answer
421 views

sed + delete line only if line ended with specific character

need help - how to delete the line from the file if the last char is - ":" with sed , on Solaris machine for example sed will remove the following line (include the black line) ...
0
votes
1answer
360 views

sed + not work on solaris

I run the following sed syntax on Solaris machine and on Linux machine on Linux machine sed do the JOB its remove all characters until the first number. but why this sed syntax not work on Solaris ? ...