Help needed - Script1


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Help needed - Script1

Write a script called big which takes a filepath as an argument. The script
should print "Big" if the file is more than 1000 bytes or "Small" if the file
is less than 1000 bytes. If exactly one argument was not given, print "Error"
to stderr.


University Of technology Sydney - Unix Systems Programming

Last edited by edujs7; 4 Weeks Ago at 08:05 AM..
# 2  
First please show your attempt(s)!
Also please include the school/course information with every new thread.
These 3 Users Gave Thanks to MadeInGermany For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Help needed
rose_flower
hello guys I was wondering if somebody can help me to write a script that use a ypcat comand to list a gruop of memebers and the passwrod file and I can arrange the output as a following 5 : fac 6 : office 6 : mkl 18 : system 20 : xsystems 21 : guest... Homework & Coursework Questions
1
Homework & Coursework Questions
Help needed
smartgupta
Hi, Can anyone please tell me where I can get the small projects with source code based on client-server programming using sockets in unix :confused::confused::confused: Thanks in advance...... IP Networking
1
IP Networking
help needed...
Prat007
Guys, There is a file where there are 1000s of records. In the file if some condition satisfies in a certain TAB record (TAB would be first 3 digits of a certain record) then move TAB and all the records (or lines) after TAB to new_file, until another TAB record is encountered in the same...... Shell Programming and Scripting
1
Shell Programming and Scripting
Help needed
ithirak17
Hello all, I am new to unix.i need the interview questions commonly asked for shell scripting and unix.if anyone had the useful link please tell me. Thanks in advance...... Shell Programming and Scripting
1
Shell Programming and Scripting
help needed
dsravan
I have a data file like this. I need to append N at the end for each and every record. How can i do that. My input filr lokks like this 6486597|327|3023|64|00001|DR|41417|T|00001|N My out put should look like this 6486597|327|3023|64|00001|DR|41417|T|00001|N|N This should be...... Shell Programming and Scripting
2
Shell Programming and Scripting
Ubuntu

Ubuntu is a free, open-source Linux distribution based on Debian Linux; and Ubuntu is named after the African philosophy of ubuntu, which Canonical translates as "humanity to others" or "I am what I am because of who we all are". Ubuntu is developed by Canonical and the community under a "meritocratic" governance model. Canonical provides security updates and support for each Ubuntu release, starting from the release date and until the release reaches its designated end-of-life (EOL) date. Canonical generates revenue through the sale of premium services associated with Ubuntu. Ubuntu is generally released to the public in three editions: Desktop, Server, and Core (for IoT devices and robots). Ubuntu is a popular operating system for cloud computing and supports OpenStack. Ubuntu is released every six months with long-term support (LTS) releases every two years.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.