Prev | Current Page 339 | Next

Michael McCallister

"openSUSE Linux Unleashed"

Both the GNOME and KDE desktops include simple text editors that are excellent
for creating shell scripts.
The Kate editor is my favorite graphical editor for Linux. It is available in the openSUSE
KDE desktop under the Utilities menu area. Figure 8.3 shows an example of a Kate
session.
Kate allows you to cut and paste text using the mouse, as well as handle multiple versions
of a text file. Kate was designed for programmers. It incorporates easy editing features
with extra features such as highlighting programming elements within the text.
Using the Shell in openSUSE 143
8
CHAPTER 8 Shaking Hands with Your Shell 144
FIGURE 8.3 The Kate text editor.
When creating a shell script file, you must specify the shell you are using in the first line
of the file. The format for this is:
#!/bin/bash
In a normal shell script line, the pound sign (#) is used as a comment??”the line isn??™t
processed by the shell. However, the first line is a special case, and the pound sign
followed by the exclamation point tells the shell what shell to run the script under (yes,
you can be using a bash shell and run your script using another shell).


Pages:
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
ławki ogrodowe news news news news