09-11-2013
I think the best progress you can make in *nix scripting is playing around with it (did you try to install "busybox" on your personal laptop?) while reading man pages (fourth item on this forum's top menu) and solving/copying problem examples like in these fora.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all....
I was wondering if there is a lot of differences between /bash and ksh programming.
Im learning about bash programming, but all what I had read in this forum, points me to learn more about ksh over bash. Is that right and why?
Unfortunately, I can’t write ksh progs on my work,... (2 Replies)
Discussion started by: TARFU
2 Replies
2. Shell Programming and Scripting
how to i grep a keyword which ignore upper case or lower case.
for an example :
user enter CoUcH
and the grep also can grep couch which in text.txt although upper or loever case is different .. how to do that ?
any idea? (1 Reply)
Discussion started by: CheeSen
1 Replies
3. Shell Programming and Scripting
I have a file that is 20 - 80+ MB in size that is a certain type of log file.
It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example:
The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies
4. UNIX for Dummies Questions & Answers
Doubt #1
I have a program that I want the user to input date. When the user inputs the date, is it able to format it to system date dd-mm-yyy and then echo the value into a text file?
Doubt#2
If the above is not going to work, I tried to have the system date appear in the user input field and... (6 Replies)
Discussion started by: frossie
6 Replies
5. Shell Programming and Scripting
Write a Shell script to analyse the disk usage of students in a particular class.
The program should allow the user running the script to input the particular class name (group name) as an argument to the script.
The script should create a file called “logfile” in the home directory of the user... (2 Replies)
Discussion started by: bumdeal2
2 Replies
6. Shell Programming and Scripting
how do you allow a user to input a particular group name as an argument??
thnx for your time. (2 Replies)
Discussion started by: bumdeal2
2 Replies
7. Shell Programming and Scripting
Hello
I have a unique problem of needing to delete large files slowly off of an XSan.
I was wondering if there is a script I could use to delete 100gb chunks of files and folders that get placed in to a watch folder, slowly so as not to disrupt the other users. I would like to use Automator in... (0 Replies)
Discussion started by: ajsoto
0 Replies
8. Shell Programming and Scripting
Hello all;
I have little knowledge of bash programming, and I was wondering if you could help me out.
I would like to create a bash script, as detailed below.
process.sh is the bash script itself
list.dl is a text file. In this text file, the first line is the directory from... (1 Reply)
Discussion started by: tehalexf
1 Replies
9. Homework & Coursework Questions
Please take a look I am stuck on step 4
1. The problem statement, all variables and given/known data:
#!/bin/bash
### ULI101 - ASSIGNMENT #2 (PART A) - DUE DATE Wed, Aug 3, 2011, before 12 midnight.
###====================================================================================
###... (13 Replies)
Discussion started by: almirzaee
13 Replies
10. Linux
Hi! I'm new in bash programming and I need to make an script that reads a txt file line by line (every line is like "Name;FirstLastName;SecondLastName;Sex") and has to give every student 3 random marks, its average and add a counter if they are male/female and if they passed. I've been trying with... (4 Replies)
Discussion started by: HeartHacker
4 Replies
LEARN ABOUT REDHAT
item_index
mitem_current(3X) mitem_current(3X)
NAME
mitem_current - set and get current_menu_item
SYNOPSIS
#include <menu.h>
int set_current_item(MENU *menu, const ITEM *item);
ITEM *current_item(const MENU *menu);
int set_top_row(MENU *menu, int row);
int top_row(const MENU *menu);
int item_index(const ITEM *item);
DESCRIPTION
The function set_current_item sets the current item (the item on which the menu cursor is positioned). current_item returns a pointer to
the current item in the given menu.
The function set_top_row sets the top row of the menu to show the given row (the top row is initially 0, and is reset to this value when-
ever the O_ROWMAJOR option is toggled). The item leftmost on the given row becomes current. The function top_row returns the number of
the top menu row being displayed.
The function item_index returns the (zero-origin) index of item in the menu's item pointer list.
RETURN VALUE
current_item returns NULL on error.
top_row and item_index return ERR (the general curses error value) on error.
set_current_item and set_top_row return one of the following:
E_OK The routine succeeded.
E_SYSTEM_ERROR
System error occurred (see errno).
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_BAD_STATE
Routine was called from an initialization or termination function.
E_NOT_CONNECTED
No items are connected to the menu.
SEE ALSO
curses(3X), menu(3X).
NOTES
The header file <menu.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.
The SVr4 menu library documentation specifies the top_row and index_item error value as -1 (which is the value of ERR).
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
mitem_current(3X)