<< UNIX >>> BY this file contains ELMER SOLVER (v 8.4) STARTED AT: 2020/03/18 13:04:22 ParCommInit: Initialize #PEs:...

90.2K

Verified Solution

Question

Programming

<< UNIX >>>

BY this file contains

ELMER SOLVER (v 8.4) STARTED AT: 2020/03/18 13:04:22
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN:=============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for ScienceLtd.
MAIN: Webpage http://www.csc.fi/elmer, Email [email protected]
MAIN: Version: 8.4 (Rev: unknown, Compiled: 2020-02-28)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: HYPRE library linked in.
MAIN: MUMPS library linked in.
MAIN:=============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: case.sif
LoadInputFile: Scanning input file: case.sif
LoadInputFile: Loading input file: case.sif
WARNING:: LoadInputFile: There are no BCs in the system!
LoadInputFile: Number of Body Forces: 1
LoadInputFile: Number of Initial Conditions: 0
LoadInputFile: Number of Materials: 1
LoadInputFile: Number of Equations: 1
LoadInputFile: Number of Solvers: 1
LoadInputFile: Number of Bodies: 1
Loading user function library:[HeatSolve]...[HeatSolver_Init0]
LoadMesh: Base mesh name: ./.
LoadMesh: Elapsed REAL time: 0.5294 (s)

Question: I want to create new file that justprint between \"==\" by sing Unix/Linx

this code isn't complete because the output is not correct

#!/bin/bash
while ISF= read line
do

if [[ $line = *\"=\"* ]]

then

echo $line >> Lines

fi

done < \"unix\"

I REALLY NEED HELP

THANKS,

Answer & Explanation Solved by verified expert
4.1 Ratings (449 Votes)
AnswerHere is the script you have to first find the start and endpoints so that the lines between them can be displayed To do thatfirst use grep pass the OP of grep tocut command which only gives you column The cutcommand would    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students