linux shell script syntax error unexpected end of file

Tài liệu Cơ bản về Linux Shell Script pdf

Tài liệu Cơ bản về Linux Shell Script pdf

Ngày tải lên : 15/12/2013, 20:15
... for file in `ls -1 *` do echo "$count: $file& quot; >> $mnu0 count=`expr $count + 1` done #Vi du doc va ghi tu tep inputfile sang tep outputfile filelength=`wc -l $inputfile ... filelength=`expr $filelength + 0` while $filelength do line=`tail -$filelength $inputfile | head -1` words=`s_count_args $line` echo "$line = $words words" >> $outputfile ... hiện nay Linux là một hệ điều hành kế thừa của Unix. Linux cũng có những shell tơng tự và bạn có thể sử dụng những giới thiệu về shell ở đây với các hệ thống Linux. 3. Những loại shell hiện...
  • 15
  • 1.2K
  • 24
Tài liệu Cơ bản về Linux Shell Script ppt

Tài liệu Cơ bản về Linux Shell Script ppt

Ngày tải lên : 16/12/2013, 13:15
... for file in `ls -1 *` do echo "$count: $file& quot; >> $mnu0 count=`expr $count + 1` done #Vi du doc va ghi tu tep inputfile sang tep outputfile filelength=`wc -l $inputfile ... filelength=`expr $filelength + 0` while $filelength do line=`tail -$filelength $inputfile | head -1` words=`s_count_args $line` echo "$line = $words words" >> $outputfile ... hiện nay Linux là một hệ điều hành kế thừa của Unix. Linux cũng có những shell tơng tự và bạn có thể sử dụng những giới thiệu về shell ở đây với các hệ thống Linux. 3. Những loại shell hiện...
  • 15
  • 721
  • 3
End of the Tether

End of the Tether

Ngày tải lên : 06/11/2012, 17:32
... Nothing could rob him of this kind of fame. The piercing of the Isthmus of Suez, like the breaking of a dam, had let in upon the East a flood of new ships, new men, new methods of trade. It had ... arm-chair and a welcome in the private office, with a bit of business ready to be put in the way of an old friend, for the sake of bygone services. The husbands of the Gardner girls sat behind the ... days he had handled many thousands of pounds of his employers' money and of his own; he had attended faithfully, as by law a shipmaster is expected to End of the Tether Chapter 1 3 Chapter...
  • 11
  • 393
  • 0
The Linux Shell and BASH Scripting

The Linux Shell and BASH Scripting

Ngày tải lên : 24/06/2013, 01:25
... <condition> do #list of commands to do done The Saigon CTT  Shell Environment Customize Shell Environment Customize  bash config files : ã /etc/profile ã ~/.bash_profile, ~/.bash_login, ~/.profile, ... into script when executing the script ( interactive)  Commands : read select The Saigon CTT  The Linux Shell The Linux Shell  Shells : Bourne (sh), Bourne Again (bash), Korn (ksh), C shell ... | tee file_ name #ls –al /root | grep error > ;error_ file  Backround jobs : - Append with (&) or - Ctrl+Z and #bg %job_id The Saigon CTT  The The for for loop loop  Syntax...
  • 32
  • 396
  • 0
Shell Script Debugging

Shell Script Debugging

Ngày tải lên : 05/10/2013, 08:51
... example shell script Neither can I, Im just an example shell script The output is a verbose trace of the script s execution. Note that the lines without the plus sign are the output of the script ... (as it is being executed) to the standard error file handle (often abbreviated as stderr). More specifically, in the case of a shell script, each line of code that is encountered during exe- cution ... example shell script& quot; fi Neither can I; I'm just an example shell script The verbose (-v) option to the shell is more useful if you simply want to see the running code of the script...
  • 11
  • 281
  • 1
Linux Shell

Linux Shell

Ngày tải lên : 19/10/2013, 22:15
... tăng . Linux Shell Trang 21 đặt trong một Shell chỉ có giá trị trong Shell đó . Giá trị đó không xuất hiện hoặc được đặt lại khi bạn thoát Shell đó . Giả sử bạn viết một Shell script tên ... khi đăng nhập (log on ) , hãy định nghĩa bí danh trong file .profile nếu bạn sử dụng Born shell , trong file .login nếu bạn sử dụng C shell. 5.21. clear : Xoá màn hình . 5.22. date : Hiển ... một file , xóa một file , hoặc thoát chương trình echo "Please choose either P, D or Q to : " echo "[P]rint a file " echo "[D]elete a file " Linux Shell...
  • 35
  • 673
  • 1
Sử dụng Linux Shell

Sử dụng Linux Shell

Ngày tải lên : 24/10/2013, 22:15
... việc với kịch bản Shell (Shell Script) : Shell script là một tập hợp của một hoặc nhiều lệnh shell trong một file . Để thi hành các lệnh đó , bạn đánh vào tên của file . Shell scipt đem lại ... stagiar 6 Apr 5 14:06 file1 $cat file1 $chgrp animator file1 $ls -l file1 $cat file1 Chương III : LẬP TRÌNH VỚI SHELL Để lập trình với Shell , bạn phải biết ... tên file , hiển thị dấu sao (*) nếu là file thi hành , dấu (@) nếu là file liên kết , dấu ( / ) nếu là thư mục con , dấu chấm ( . ) nếu là file ẩn . Linux Shell Trang 21 đặt trong một Shell...
  • 35
  • 371
  • 0
The end of the case

The end of the case

Ngày tải lên : 25/10/2013, 19:20
  • 13
  • 389
  • 0
The end of Angevin Brittany, 1186-1203

The end of Angevin Brittany, 1186-1203

Ngày tải lên : 01/11/2013, 07:20
... the creation of the of ce of `seneschal of Media', perhaps to avoid confusion with the more routine of ce of seneschal of Nantes. The importance of the bearer of this title, Geoffrey de Cha à teaubriant, ... equally within a day's journey of Fouge Á res. 47 Charters,R6. The end of Angevin Brittany, 1186±1203 159 6 THE END OF ANGEVIN BRITTANY, 1186±1203 The death of Duke Geoffrey brought yet another ... act of Ranulf's made in the capacity of duke of Brittany and earl of Richmond, a letter to the bishop of London requesting him to enforce grants made by dukes of Brittany to the abbey of...
  • 30
  • 522
  • 0
Sincerity and the end of theodicy - three remarks on Levinas and Kant

Sincerity and the end of theodicy - three remarks on Levinas and Kant

Ngày tải lên : 01/11/2013, 10:20
... an exposition of a subject called to critique. Thinkof that exposition as the description of suf- fering and that critique as the critique of theodicy, the announcing of the end of theodicy. We ... endorse any discourse of ends or the end, will speakunapologetically of the end of theodicy. ‘For an ethical sensibility the justification of the neighbour’s pain is the source of all immorality’ ... sincerely. Given the description of sincerity, the reflection on morality and virtue must now proceed by way of language, that is, by way of a description both of what we say and of that to which our speech...
  • 27
  • 423
  • 0
Linux Shell Basic

Linux Shell Basic

Ngày tải lên : 09/11/2013, 02:15
... từ một file. Shell thì không phải là phần của kernel, nhưng sử dụng kernel thc thi chng trỡnh, to cỏc file, ã Mt vài shellLinux chứa: o BASH (Bourne-Again Shell) o CSH (C Shell) o ... gọi là Shell. Shell chấp nhận các chỉ dẫn hoặc các lệnh bằng tiếng Anh (hầu hết) và nếu như lệnh có giá trị thì nó chuyển đến kernel. Shell là chương trình giao tiếp với ngườ i dùng. Shell là ... Linux Shell Basic Kernel Kernel là trái tim của hệ điều hành Linux. Nó quản lý tài nguyên - các tiện ích có sẵn trong Linux. Tiện ích lưu dữ liệu, in dữ...
  • 2
  • 333
  • 0
Tài liệu Linux Shell Basic pptx

Tài liệu Linux Shell Basic pptx

Ngày tải lên : 22/12/2013, 13:17
... text file và bảo shell thực thi text file này thay vì nhập vào các lệnh. Điều này gọi là shell script. Định nghĩa: Shell script là một chuỗi các lệnh được viết trong plain text file. Shell script ... text file. Shell script thì giống như batch file trong MS-DOS nhng mnh hn. Ti sao phi vit shell script: ã Shell script có thể nhận input từ user, file hoặc output từ mn hỡnh. ã Tin li to nhúm ... lệnh sau: $ echo $SHELL Làm thế nào để sử dụng Shell: đơn giản gõ các lệnh. Shell script là gì: Bình thường thì shell là trình giao tiếp. Có nghĩa là shell chấp nhận các lệnh từ bạn (keyboard) và...
  • 2
  • 422
  • 0
Tài liệu Linux Device Drivers-Chapter 7 : Getting Hold of Memory doc

Tài liệu Linux Device Drivers-Chapter 7 : Getting Hold of Memory doc

Ngày tải lên : 24/12/2013, 01:17
... Lookaside Caches A device driver often ends up allocating many objects of the same size, over and over. Given that the kernel already maintains a set of memory pools of objects that are all the ... } Chapter 7 : Getting Hold of Memory Thus far, we have used kmalloc and kfree for the allocation and freeing of memory. The Linux kernel offers a richer set of memory allocation primitives, ... set to the name of the type of structure that will be cached. The maximum length for the name is 20 characters, including the trailing terminator. The offset is the offset of the first object...
  • 36
  • 318
  • 1
Tài liệu Linux Device Drivers-Chapter 10 :Judicious Use of Data Types doc

Tài liệu Linux Device Drivers-Chapter 10 :Judicious Use of Data Types doc

Ngày tải lên : 24/12/2013, 01:17
... whether __BIG_ENDIAN or __LITTLE_ENDIAN is defined by the header. You could code a bunch of #ifdef __LITTLE_ENDIAN conditionals, but there is a better way. The Linux kernel defines a set of macros ... power of two, independent of PAGE_SIZE. Byte Order Be careful not to make assumptions about byte ordering. Whereas the PC stores multibyte values low-byte first (little end first, thus little-endian), ... nature of Linux, drivers intended for serious use should be portable as well. But a core issue with kernel code is being able both to access data items of known length (for example, filesystem...
  • 23
  • 360
  • 0
Tài liệu Bài 4: Shell script, hệ thống log, quản lý tiến trình, dịch vụ cron_Âu Bửu Long ppt

Tài liệu Bài 4: Shell script, hệ thống log, quản lý tiến trình, dịch vụ cron_Âu Bửu Long ppt

Ngày tải lên : 24/12/2013, 10:19
... P<#M//B  Q#0:##  K##0:R;<  N  K##% K##+%  K##K% Mng trong shell script ã Mng: ã Tp hp cỏc giỏ tr d liu c lu tr qua mt tờn chung ã Ging nh bin: khụng cn khai ... log trong linux  q/D9BrSsH0@BAA:  LH0@BA/`M7  LH/heA:7  LG@?)H@7  LHtSBH777 Tỡm kim A. ã Tỡm mt file trong ... '!()* $!"+ &!"(   ,!" Hệ thống log trong linux  LH.//V=cVu=#2S2/2  #0  M  B7/  #00  S  7/ ...
  • 18
  • 629
  • 3
Tài liệu Linux Device Drivers-Chapter 16 :Physical Layout of the Kernel Source ppt

Tài liệu Linux Device Drivers-Chapter 16 :Physical Layout of the Kernel Source ppt

Ngày tải lên : 21/01/2014, 07:20
... how to link the kernel image (the vmlinux file) by means of an ldscript file; the file is called vmlinux.lds in the source tree of each platform. Use of ld scripts is described in the standard ... implementation in Linux is based on the same file operations that act on device files. This is natural, because network connections (sockets) are described by normal file descriptors. The file socket.c ... the system runs out of memory. Interestingly, the uClinux port of the Linux kernel to MMU-less processors introduces a separate mmnommu directory. It closely replicates the official mm while...
  • 34
  • 402
  • 0