User Tools

Site Tools


notes:unix:fall2023:projects:tpb1

Table of Contents

TPB1

Begin by going to /var/public/fall2023/unix/gfo0/. You should go into your directory and copy the file/s that are there to your home directory. Make sure to also grab the README file.

HINTS

It can prove to be helpful to use piping and redirection in this project

TOOLBOX

  • file(1)
  • sed(1)
  • basenc(1)
  • cat(1) - Used to view the contents of a file.
  • cut(1) - Outputs part the specified amount of a file. Can use the `-c` modifier to specify how many columns across you would like to output.
  • grep(1) -
  • head(1) - Outputs specified amount of a file. Can use the `-n` modifier to specify which rows starting from the top, to include.
  • paste(1) - Outputs the contents of two files next to each other horizontally. Can specify paste -d “” file1 file2 to output the files without any spaces seperating them.
  • sort(1) -
  • tail(1) - Similar to head but outputs rows of file from the bottom up. You can use the `-n` modifier to specify the number of lines from the bottom up you would like to be included.
  • tr(1) -
  • uudecode(1) -
  • uniq(1) -
  • Cat - Can use to merge 2 files vertically for example “cat AEIOU aeiou > test” so basically opposite of paste -d
  • sed - can be used to remove gap in line example : sed -i '/^$/d' file.txt

VERIFICATION

MD5SUM

notes/unix/fall2023/projects/tpb1.txt · Last modified: 2023/09/28 01:16 by jmerri10