0
votes
1answer
1k views

solaris 10 + display 2 lines after match by grep?

how to match string , and display the two line under the string for example ( I want to match the "manufacture" string and display the two lines after cat ima.conf # the manufacturer or driver ...
2
votes
2answers
1k views

perl - translate sed to perl

The following command work fine on Solaris ( delete line only if last character is ":" ) sed -e '/:$/d' < foo > foo.new how to do the same in perl ? ( the reason for that because I not want ...
2
votes
3answers
1k views

awk/sed + replace only the second char with one space

please advice how to remove only the second "." character from the version number with awk I need to fit the syntax for Linux & Solaris I write the sed "s'/\./ /g'" - but this syntax ...
0
votes
1answer
264 views

awk + sed + match complex string

I need useful command to match the string "/pci.../pci.../pci..../scsi..../disk..." with awk or sed? ( I need to put this command in my ksh script ) remark 1 [...] can be any string , and “pci pci ...
0
votes
1answer
575 views

sed + does not work on solaris

I try to use a sed line with a + on a Solaris machine and on a Linux machine. on Solaris sed does not remove the strings until the first number like I want: solaris:/ ROOT > echo ...
0
votes
1answer
764 views

Solaris bash script / search and append field to end of line in /etc/group

I need a bash script that will modify /etc/group to append and delete NIS users to specific local groups on a Solaris 10u8 system. Preferable one or two functions with uid and groupname as varibles. ...
3
votes
2answers
1k views

How can I use sed to alter the results of find and pass the results to cp?

In solaris, I'd like to copy all files found by the find command to a slightly different path. The following script basically executes cp for each file found by find. For example: cp ...