04-28-2006
Let me guess - you have to write your own shell for homework or a final project....
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
3. Shell Programming and Scripting
This is the script:
#!/bin/sh
if ; then rm -rf /usr/share/WallpaperChanger; fi
if ; then rm -rf /usr/bin/wallch; fi;
if ; then rm -rf /usr/share/applications/wallch.desktop; fi
if ; then rm -rf /usr/share/doc/wallch; fi
if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi
echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
6. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
SLABTOP(1) Linux User's Manual SLABTOP(1)
NAME
slabtop - display kernel slab cache information in real time
SYNOPSIS
slabtop [ options ]
DESCRIPTION
slabtop(1) displays detailed kernel slab cache information in real time. It displays a listing of the top caches sorted by one of the
listed sort criteria. It also displays a statistics header filled with slab layer information.
OPTIONS
Normal invocation of slabtop(1) does not require any options. The behavior, however, can be fine-tuned by specifying one or more of the
following flags:
--delay=n, -d n
Refresh the display every n seconds. By default, slabtop(1) refreshes the display every three seconds. To exit the program, hit q.
--sort=S, -s S
Sort by S, where S is one of the sort criteria.
--once, -o
Display the output once and then exit.
--version, -V
Display version information and exit.
--help Display usage information and exit.
SORT CRITERIA
The following are valid sort criteria used to sort the individual slab caches and thereby determine what are the "top" slab caches to dis-
play. The default sort criteria is to sort by the number of objects ("o").
The sort criteria can also be changed while slabtop is running by pressing the associated character.
a: sort by number of active objects
b: sort by objects per slab
c: sort by cache size
l: sort by number of slabs
v sort by number of active slabs
n: sort by name
o: sort by number of objects
p: sort by pages per slab
s: sort by object size
u: sort by cache utilization
COMMANDS
slabtop(1) accepts keyboard commands from the user during use. The following are supported. In the case of letters, both cases are
accepted.
Each of the valid sort characters are also accepted, to change the sort routine. See the section SORT CRITERIA.
<SPACEBAR>
Refresh the screen.
Q Quit the program.
FILES
/proc/slabinfo -- slab information
SEE ALSO
free(1), ps(1), top(1), vmstat(8)
NOTES
Currently, slabtop(1) requires a 2.4 or later kernel (specifically, a version 1.1 or later /proc/slabinfo). Kernel 2.2 should be supported
in the future.
The slabtop statistic header is tracking how many bytes of slabs are being used and it not a measure of physical memory. The 'Slab' field
in the /proc/meminfo file is tracking information about used slab physical memory.
AUTHORS
Written by Chris Rivera and Robert Love.
slabtop(1) was inspired by Martin Bligh's perl script, vmtop. The procps package is maintained by Albert Cahalan <albert@users.sf.net>.
Please send bug reports to <procps-feedback@lists.sf.net>.
Linux 13 Sep 2003 SLABTOP(1)