Functioning of 'cat' command

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Functioning of 'cat' command
# 1  
Old 12-03-2014
Functioning of 'cat' command

I need to display file, given on the command line to 'stdout' in Linux( not in red-hat )..Just like how 'cat' command is working! Basically I need to develop that command's coding part! Can somebody suggest some algorithm?

Last edited by rbatte1; 12-03-2014 at 07:32 AM.. Reason: Set appropriate capital letters
# 2  
Old 12-03-2014
I would recommend using cat

That might sound flippant, but why re-invent the wheel unless this is Homework - and there are specific forums for this with rules etc. so that we don't take courses for you.



Robin
# 3  
Old 12-03-2014
Quote:
Originally Posted by Mathew Antony
Basically I need to develop that command's coding part!
coreutils.git - GNU coreutils

Enjoy!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect not functioning

Hello, I plan on building an expect script and a ksh script to acquire some information and pass to the expect script. I'm very new with expect and figured I would start off slow. However, I use the spawn telnet command, run the script, and it prints out "spawn telnet" rather than doing... (3 Replies)
Discussion started by: Neqtor
3 Replies

2. Shell Programming and Scripting

cp command not functioning regularly

I have written a korn shell script . I copy a file from one mounted directory to other using cp command. This script runs daily at a time. But sporidally it fails to copy the files. So I have missing files at the destination directory for some days. Is my method a good one or is there some... (5 Replies)
Discussion started by: Golden Egg
5 Replies

3. Linux

Pacman not functioning in Arch

Currently in a fresh install of arch linux and I have been trying to install some stuff with pacman. Every operation returns multiple errors such as no address record when using -Sy and unable to retrieve file when trying to install something. I have tried so many different configurations of... (5 Replies)
Discussion started by: a sandwhich
5 Replies

4. AIX

cat command

Hi. How can i write a command on AIX like the one i did at linux that find string in a file and show me that string, and return 3 lines before and 4 lines after that string. my linux command is: /bin/cat <filename> | tail -150 | grep -B2 -A8 "<string to look for>" Example: /bin/cat ... (10 Replies)
Discussion started by: yechi_r
10 Replies

5. AIX

Advice - X11 not functioning

Hello Folks We have following software installed on our AIX box X11.vfb - Virtual Frame Buffer Software We also see its process running root 528406 1 0 06:27:18 - 0:00 /usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 Following is the o/p of 'lslpp' X11.vfb 5.3.0.50... (4 Replies)
Discussion started by: ak835
4 Replies

6. Shell Programming and Scripting

cat in the command line doesn't match cat in the script

Hello, So I sorted my file as I was supposed to: sort -n -r -k 2 -k 1 file1 | uniq > file2 and when I wrote > cat file2 in the command line, I got what I was expecting, but in the script itself ... sort -n -r -k 2 -k 1 averages | uniq > temp cat file2 It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies

7. UNIX for Advanced & Expert Users

cat command

Dear All I have two text files File1.txt and File2.txt . I am concatenating the two files and making it as single file Cat_File.txt. Now i need to keep joined file in two different path. that is I need to use cat command only once ,but store joined file in two different locations. Since... (3 Replies)
Discussion started by: tkbharani
3 Replies

8. UNIX for Dummies Questions & Answers

Difference between cat , cat > , cat >> and touch !!!

Hi Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

9. Shell Programming and Scripting

cat command

What does the below command means $cat <<% >abc.txt (3 Replies)
Discussion started by: surjyap
3 Replies

10. Shell Programming and Scripting

the CAT command

hi everybody, how do i open a txt file writen in unix on to a web page so when i want to view the txt file that was generated from a shell program, that file is open on a web page do i use the cat > filename.html command to do this, or is there another way many thanks :D (2 Replies)
Discussion started by: alexd
2 Replies
Login or Register to Ask a Question