0
votes
1answer
166 views

How to write a script that does what less does?

Question: Create a script such that it is a command that has the same effect as the "less" command (implement the script by calling "less"). What I wrote: #! /bin/bash for index in "$@" do less ...
0
votes
1answer
437 views

Find duplicate file use cmp command

I would to write a bash script to find duplicate files but I don't want just use md5sum. It means, in addition to use md5sum I want to check my files with cmp command. I use the command below for ...
1
vote
3answers
2k views

Using egrep to find lines that have 5-6 Upper Case letters. (but not more than 6)

First off, this is homework and unfortunately I have to use egrep (and not with -w or anything of the like). I need my grep to return lines that have exactly 5 or 6 upper case letters. Doing ...
2
votes
4answers
1k views

(bash) Grep question - how to grep for a line that has the same number you both need and don't need

This isn't at all easy to explain but easy to just show. I have lines in a file such as: 100Dollars 3 IP 200Dollars 3 IP 300Dollars ...
0
votes
1answer
195 views

Where to place a script file so it runs on every startup [duplicate]

Possible Duplicate: how to run shell (bash) script automatically at startup? Hey there, I need to do some more homework ;-) The question is where do I have to place a script so it runs on ...
8
votes
2answers
6k views

Linux bash: when to use egrep instead of grep?

I am preparing for a Linux terminal assessment now, I tried to Google and found most resources are referring to the basic "grep" rather than the more powerful "egrep" -- well, that is at least what ...
0
votes
1answer
69 views

Ubuntu bash command

List in long form files in the directory /etc for the file "ETCDIR" and view them, while the monitor sequential manner. How can I do this with the commands tee and more?
1
vote
1answer
540 views

What is wrong in the Bash script about parameters and Wget?

Runnning the command gives wget_exam -h Usage: wget_exam2 <fileType> <source> exit // then immediately Terminal shut dows The code # example wget_exam2 java ...