壮观的游行 发表于 2025-3-28 15:22:41
Accepting Command-Line Options, Switches, and Parametersng utility uses optional parameters. It creates archives and restores directory and file trees, but it can do so in different ways. The GNU version of tar has roughly 80 different options that can be used in various combinations to tailor the ways in which the utility performs. The major benefit of投票 发表于 2025-3-28 21:13:35
Testing Variables and Assigning Defaultses used for configuration purposes, which are initially set to default values. In this chapter we’ll look at various methods of testing variables and setting default values. The differences between many of these syntactical variants are subtle, but each is useful for working with undefined variables厌食症 发表于 2025-3-29 02:01:16
http://reply.papertrans.cn/33/3217/321627/321627_43.png辫子带来帮助 发表于 2025-3-29 06:40:05
http://reply.papertrans.cn/33/3217/321627/321627_44.png军火 发表于 2025-3-29 08:41:20
http://reply.papertrans.cn/33/3217/321627/321627_45.png正面 发表于 2025-3-29 14:30:18
cronule. Normally these tasks are performed on systems that run 24 hours a day, 7 days a week. Writing cron scripts to perform system maintenance, backups, monitors, or any other job that you would want to run on a schedule is a very common task. There are a few subtleties with cron however, that many uIrrigate 发表于 2025-3-29 16:55:50
Self-Linked Scriptsns all the code necessary to perform a number of tasks, but you may want to determine the specific task to be performed at runtime by calling the script by a specific name. This lets users invoke an individual task by name without having to learn specialized command-line switches for the options theexplicit 发表于 2025-3-29 21:05:46
Throttling Parallel Processeslarge environment. With relatively small environments, you could simply write a script that loops through a list of systems and performs the desired task serially on each machine. Another method would be to loop through the list of machines and submit your job to the background so the tasks are perf连累 发表于 2025-3-30 03:18:18
Command-Line Editing and Historyty to recall and modify previous commands quickly and efficiently is beneficial. In the old DOS days, a utility called . would keep your history in a buffer. You could go back or forth through the command history one command at a time by using the up and down arrow keys. Individual commands could beImpugn 发表于 2025-3-30 04:10:29
Scripting from the Command Lineth me; pretty much anything you can do in a shell script, you can also do from the command line. I’ve coded many ad hoc scripts right at the command line. I wouldn’t recommend writing anything significant that way, but for quickies it’s just the ticket.