12-01-2014
Quote:
Originally Posted by
ainstin
Develop a program to display file given on the command line to STDOUT, please help me to write the program
In your class are you supposed to open a file for read, read every line and use echo to show the contents. If so you need to for loop. Of course cat works really well if your instructor only let you use cat...
This looks like a really simple assignment.
9 More Discussions You Might Find Interesting
1. Programming
Hello, I am a basic programer from back in the 80's/90's. I moved on to visual basic and now I want to learn C. I want to eventually program in Linux.
Now, before I get on this band wagon I want to ask a few questions to make sure I am getting started out right.
1. Is C a good language to... (2 Replies)
Discussion started by: wizkid
2 Replies
2. New to Unix. Which books should I read?
Hi Forum!
Is there anybody who can tell me where I can find some cool books on linux ( RH exclusively! if possible ) programming? :p (2 Replies)
Discussion started by: confusedoflife
2 Replies
3. Linux
hi
frnds i need help on linux programming as well as how to configure linux.
if u feel free than plz forward me the mail so that i can go through.
email removed
thanx
regards
:)
vishwa pratap singh (1 Reply)
Discussion started by: luckyvishwa
1 Replies
4. UNIX for Dummies Questions & Answers
is it advisible to do Linux Programming in JAVA.. If so, whats the advantage over C++ or C.. Cud anyone also help me out by providing some links in this regard.. Would be highly appreciated.. (1 Reply)
Discussion started by: srikumar_cs
1 Replies
5. Programming
can you guys please let me know what are some of the c programming environment program? you know the ones with checking syntax and auto indentation and such..
dont want to just use vi (although someone did mention to me that in vim, there are capabilities.. but not sure how)
thanks in advance. (6 Replies)
Discussion started by: convenientstore
6 Replies
6. Linux
Hi friends!
I am new be in Linux system programing. Can you help me to get running processes statistics (pid, uid, %cpu, %mem, pri, ni) without using any commands like TOP, PS.
Can you tell me any system call available to get %cpu only or %mem only?
Even i include... (2 Replies)
Discussion started by: venkatgopu
2 Replies
7. Linux
Hi friends
In my linux application, i want to update output in same place i.e..
I want to display my output in specific location in screen(console output)
ITERATION 1:
(e.g. start diplay from 5th ROW 5th COLOUMN)
if my message is "hi" then
first time
'h' should print in 5th ROW... (2 Replies)
Discussion started by: venkatgopu
2 Replies
8. Shell Programming and Scripting
Hi,
I have been working on Sun Solaris since a long time. Recently I got to work on RH Linux. My Linux version details are:
Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I have a simple command in my shell script:
export BKPTAG=`date... (3 Replies)
Discussion started by: sagarparadkar
3 Replies
9. UNIX for Dummies Questions & Answers
Hello.
I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations:
1. Linux and iOS are UNIX-like systems, POSIX compliant.
2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies
LEARN ABOUT CENTOS
grub-mklayout
GRUB-MKLAYOUT(1) User Commands GRUB-MKLAYOUT(1)
NAME
grub-mklayout - generate a GRUB keyboard layout file
SYNOPSIS
grub-mklayout [OPTION...] [OPTIONS]
DESCRIPTION
grub-mklayout processes a keyboard layout description in keymaps(5) format into a format that can be used by GRUB's keymap command.
Generate GRUB keyboard layout from Linux console one.
-i, --input=FILE
set input filename. Default is STDIN
-o, --output=FILE
set output filename. Default is STDOUT
-v, --verbose
print verbose messages.
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO
grub-mkconfig(8)
The full documentation for grub-mklayout is maintained as a Texinfo manual. If the info and grub-mklayout programs are properly installed
at your site, the command
info grub-mklayout
should give you access to the complete manual.
grub-mklayout (GRUB) 2.02-2ubuntu8.3 July 2018 GRUB-MKLAYOUT(1)