• Important: We recently upgraded our forum software - please let us know if you run into any issues.

Search results

  1. Id10t

    Need help writing Scripts

    Once again I would appreciate some help writing scripts, I need 2 of them. The first: Write a script to remove any empty files (i.e., files with size 0) from directory that is specfied by the user on the command line. The name of the script should be cleanUp. This script should take either 0...
  2. Id10t

    How to write a bash script that takes user input

    I figured it out, Linux makes me want to pull my hair out sometimes, hopefully, as time goes on it will get easier. Here are the two solutions I came up with if anyone is interested. P.S. If anyone is wondering what the Error line is about on the Leapyear script, its because Leap Years were not...
  3. Id10t

    How to write a bash script that takes user input

    I need help writing 2 different Scripts the first is a Greeting Script based on the time of day. If the script is executed for example ./myscript 8 I should get a response of "Good Morning" if I execute ./myscript 14 I should get a response of "Good Afternoon'' and so on. I found some scripts...
  4. Id10t

    Need help with egrep command

    Thanks for the reply CptCharis but when i used your command it also highlighted lines with only 1 ;
  5. Id10t

    Need help with egrep command

    Update: I figured it out egrep '([^;]*;){2}' file F.Y.I. Smiley wink is semicolon right parenthesis, I couldn't figure out how to keep the post from automatically posting the emoji equivalent.
  6. Id10t

    Need help with egrep command

    Thank you
  7. Id10t

    Need help with egrep command

    Can anyone help me write an egrep command that will output all lines that contain 2 or more semi-colons. It seems simple but I've been stuck on this one for awhile now. Thanks
Top