Also remember that for ".conf" files that are assigning values to environment variables, last assignment wins. So, sometimes I just use "echo" to append a new value to the file so that I can get the system up. (3270 copy and paste also helps input the line.) Then later on I use vi to remove the duplicate assignment.
On Tue, Sep 20, 2016 at 2:59 PM, Marcy Cortes <marcy.d.cor...@wellsfargo.com > wrote: > There's just mainly one sed command that i've needed in order to fix > enough to get the network up. > > sed -i -e 's/oldstring/newstring/' filename > > That's generally been enough to get me through say bad IP addresses or > gateway settings. > > > > -----Original Message----- > From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of > Mark Post > Sent: Tuesday, September 20, 2016 12:25 PM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: [LINUX-390] Best way to edit Linux files in z/VM 3270 > > >>> On 9/20/2016 at 03:01 PM, "Diep, David (OCTO-Contractor)" > >>> <david.d...@dc.gov> > wrote: > > Hi everyone, > > > > I've searched everywhere and I cannot find for editing Linux files > > while logged in with 3270. Vi will just get me stuck. I looked at > > 'ed', but I get stuck as well... any recommendations?? > > The ed command works fine, but you need to understand how to use it. It's > ... different. > > I frequently use sed, but if you're at the point where the root file > system is mounted, you should be able to use the terminal server access. > This allows you to SSH to the terminal server, then connect to the target > system and use the normal vi/vim editors. > > > Mark Post > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, send > email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit http://wiki.linuxvm.org/ > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > -- Bruce Hayden z/VM and Linux on z Systems ATS IBM, Endicott, NY ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/