I had this homework assignment:
- Create on the desktop a folder with your name.
- Copy from your account
[email protected]
two files,"plik1.pdp"
and"plik2.pdb"
. - Combine them to make a new file,
"plik3.pdb"
, but they have to be in special order. The second file should be first, and then the first one. - Write down from the connected/combined
"plik3.pdb"
lines with "CA
" to the new file"plik4.pdb"
. - In this new file, change the lines 1-240 from
"1.00"
to"0.00"
.
The following code is my solution:
cd Desktop
mkdir "name"
cd "name"
scp [email protected]:/home/XYZ plik[12].pdb
cat plik2.pdb plik1.pdb > plik3.pdb
grep 'CA' plik3 > plik4
sed -i -n 1,240p -e 's/1\.00/0\.00' plik4
Is it ok? Did I do anything wrong?
Is it ok?
Did you check whether it works as expected? \$\endgroup\$