Skip to content

hesamimany/linux-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

linux-shell

My own linux shell programmed in c

Description

A simple program for running linux and some of my own commands

Getting Started

Dependencies

  • readline library
  • linux

Installing

sudo apt-get install libreadline-dev

Executing program

gcc main.c -lreadline ./a.out

Help

My own commands

firstWord()

fw fileaddress

Prints first word of every line in the given file

highRepeat()

hr fileaddress

Prints the most repeated word in the given file

removeSpace()

rs fileaddress

Removes whitespase from file

nonComment()

nc fileaddress

Prints lines which do not start with # in the given file

lineCounter()

lc fileaddress

Counts number of lines in the given file

tenLine()

tl fileaddress

Prints first ten line in the given file

Use following command to close the programm because you can not use ctrl + c to terminate the bash (signal handling)

exit

You can see command instruction by using follosing command

help

Authors

  • Ghazale Chakane
  • Mohammad Hesam Imani

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages