Utilities


Much of the power of Qshell lies in the utilities that come with it. Table 27.1 lists some of the tools that you can use under Qshell. Notice that many of these utilities have no CL counterparts.

Table 27.1: Some Common Qshell Utilities

Utility

Mnemonic

Description

cat

concatenate

Concatenate files

cmp

compare

Compare two files.

compress

 

Reduce the size of a file.

cut

 

Select portions of each input line.

find

 

Find files.

grep, egrep, fgrep

global regular expression print

Look for files that contain a string.

jar

java archive

Work with files in jar or zip format.

java

 

Run the Java interpreter.

javac

java compile

Compile a Java program.

od

 

Write the contents of one or more files in such formats as character, octal, and hexadecimal.

head

 

Copy the first part of files.

print

 

Write to a file.

read

 

Read from a file.

sed

stream editor

Apply editing commands to a file.

sort

 

Reorder the lines of a file.

split

 

Split files into smaller files.

tail

 

Copy the last part of files.

tr

translate

Convert characters to other characters.

uniq

unique

Eliminate adjacent duplicate lines from a file.

wc

word count

Count words, lines, or characters of a file.



IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 245

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net