DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ f

⟦8de9274ea⟧

    Length: 2752 (0xac0)
    Names: »fls.man«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/stat-5.3/eu/stat/doc/fls.man« 

Hex Dump

0x000…020 46 4c 53 28 31 57 49 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 4e 49 58   ┆FLS(1WI)                    UNIX┆
0x020…040 20 55 73 65 72 27 73 20 4d 61 6e 75 61 6c 20 20 20 20 43 72 65 61 74 65 64 3a 20 36 20 53 65 70   ┆ User's Manual    Created: 6 Sep┆
0x040…060 74 65 6d 62 65 72 20 31 39 38 35 0a 0a 4e 41 4d 45 0a 20 20 20 20 20 66 6c 73 20 2d 20 66 6f 72   ┆tember 1985  NAME      fls - for┆
0x060…080 6d 61 74 74 65 64 20 6c 69 73 74 69 6e 67 20 6f 66 20 66 69 6c 65 20 73 74 61 74 69 73 74 69 63   ┆matted listing of file statistic┆
0x080…0a0 73 0a 0a 55 53 41 47 45 0a 20 20 20 20 20 5f 08 66 5f 08 6c 5f 08 73 20 66 6f 72 6d 61 74 20 5b   ┆s  USAGE      _ f_ l_ s format [┆
0x0a0…0c0 66 69 6c 65 73 5d 0a 0a 46 4f 52 4d 41 54 53 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69   ┆files]  FORMATS      The followi┆
0x0c0…0e0 6e 67 20 69 73 20 74 68 65 20 73 75 6d 6d 61 72 79 20 74 68 61 74 20 69 73 20 70 72 69 6e 74 65   ┆ng is the summary that is printe┆
0x0e0…100 64 20 62 79 20 5f 08 66 5f 08 6c 5f 08 73 20 77 68 65 6e 20 74 68 65 20 25 3f 20 66 6f 72 6d 61   ┆d by _ f_ l_ s when the %? forma┆
0x100…120 74 0a 20 20 20 20 20 69 73 20 75 73 65 64 2e 0a 0a 20 20 20 20 20 53 75 6d 6d 61 72 79 20 6f 66   ┆t      is used.       Summary of┆
0x120…140 20 25 20 66 6f 72 6d 61 74 73 3a 0a 20 20 20 20 20 78 58 20 20 20 6d 65 61 6e 73 20 74 68 61 74   ┆ % formats:      xX   means that┆
0x140…160 20 62 6f 74 68 20 69 6e 74 65 67 65 72 20 28 78 29 20 26 20 73 74 72 69 6e 67 20 28 58 29 20 66   ┆ both integer (x) & string (X) f┆
0x160…180 6f 72 6d 61 74 73 20 73 75 70 70 6f 72 74 65 64 0a 20 20 20 20 20 41 6c 6c 20 66 6f 72 6d 61 74   ┆ormats supported      All format┆
0x180…1a0 73 20 73 75 70 70 6f 72 74 20 25 2d 70 2e 77 58 20 77 68 65 72 65 3a 0a 20 20 20 20 20 20 20 20   ┆s support %-p.wX where:         ┆
0x1a0…1c0 20 20 2d 20 69 73 20 61 6e 20 6f 70 74 69 6f 6e 61 6c 20 73 69 67 6e 20 74 6f 20 6c 65 66 74 2d   ┆  - is an optional sign to left-┆
0x1c0…1e0 6a 75 73 74 69 66 79 20 58 0a 20 20 20 20 20 20 20 20 20 20 70 20 69 73 20 61 6e 20 6f 70 74 69   ┆justify X           p is an opti┆
0x1e0…200 6f 6e 61 6c 20 70 61 64 20 6f 66 20 77 68 69 74 65 20 73 70 61 63 65 73 0a 20 20 20 20 20 20 20   ┆onal pad of white spaces        ┆
0x200…220 20 20 20 77 20 69 73 20 61 6e 20 6f 70 74 69 6f 6e 61 6c 20 6d 61 78 69 6d 75 6d 20 77 69 64 74   ┆   w is an optional maximum widt┆
0x220…240 68 20 6f 66 20 58 0a 20 20 20 20 20 5f 08 43 5f 08 68 5f 08 61 5f 08 72 20 5f 08 4d 5f 08 65 5f   ┆h of X      _ C_ h_ a_ r _ M_ e_┆
0x240…260 08 61 5f 08 6e 5f 08 69 5f 08 6e 5f 08 67 3a 0a 20 20 20 20 20 3f 20 20 20 20 70 72 69 6e 74 20   ┆ a_ n_ i_ n_ g:      ?    print ┆
0x260…280 74 68 69 73 20 6c 69 73 74 20 6f 66 20 66 6f 72 6d 61 74 73 0a 20 20 20 20 20 25 20 20 20 20 69   ┆this list of formats      %    i┆
0x280…2a0 6e 73 65 72 74 20 25 0a 20 20 20 20 20 61 41 20 20 20 61 63 63 65 73 73 20 74 69 6d 65 0a 20 20   ┆nsert %      aA   access time   ┆
0x2a0…2c0 20 20 20 63 43 20 20 20 63 68 61 6e 67 65 20 74 69 6d 65 0a 20 20 20 20 20 67 47 20 20 20 67 72   ┆   cC   change time      gG   gr┆
0x2c0…2e0 6f 75 70 20 69 64 0a 20 20 20 20 20 69 20 20 20 20 69 6e 6f 64 65 20 6e 75 6d 62 65 72 0a 20 20   ┆oup id      i    inode number   ┆
0x2e0…300 20 20 20 6c 20 20 20 20 6e 75 6d 62 65 72 20 6f 66 20 6c 69 6e 6b 73 0a 20 20 20 20 20 6d 4d 20   ┆   l    number of links      mM ┆
0x300…320 20 20 6d 6f 64 69 66 69 63 61 74 69 6f 6e 20 74 69 6d 65 0a 20 20 20 20 20 6e 20 20 20 20 69 6e   ┆  modification time      n    in┆
0x320…340 73 65 72 74 20 61 20 6e 65 77 6c 69 6e 65 0a 20 20 20 20 20 4e 20 20 20 20 66 69 6c 65 20 6e 61   ┆sert a newline      N    file na┆
0x340…360 6d 65 0a 20 20 20 20 20 70 50 20 20 20 70 72 6f 74 65 63 74 69 6f 6e 20 6d 6f 64 65 73 0a 20 20   ┆me      pP   protection modes   ┆
0x360…380 20 20 20 73 20 20 20 20 73 69 7a 65 0a 20 20 20 20 20 74 20 20 20 20 69 6e 73 65 72 74 20 61 20   ┆   s    size      t    insert a ┆
0x380…3a0 74 61 62 0a 20 20 20 20 20 54 20 20 20 20 66 69 6c 65 20 74 79 70 65 0a 20 20 20 20 20 75 55 20   ┆tab      T    file type      uU ┆
0x3a0…3c0 20 20 75 73 65 72 20 69 64 0a 0a 44 45 53 43 52 49 50 54 49 4f 4e 0a 20 20 20 20 20 5f 08 66 5f   ┆  user id  DESCRIPTION      _ f_┆
0x3c0…3e0 08 6c 5f 08 73 20 67 65 74 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 74 20 74 68 65   ┆ l_ s gets information about the┆
0x3e0…400 20 6e 61 6d 65 64 20 66 69 6c 65 73 20 61 6e 64 20 61 6c 6c 6f 77 73 20 69 74 73 20 64 69 73 70   ┆ named files and allows its disp┆
0x400…420 6c 61 79 20 69 6e 20 61 0a 20 20 20 20 20 76 61 72 69 65 74 79 20 6f 66 20 66 6f 72 6d 61 74 73   ┆lay in a      variety of formats┆
0x420…440 2e 20 20 54 68 65 20 66 6f 72 6d 61 74 73 20 61 72 65 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20   ┆.  The formats are based on the ┆
0x440…460 66 6f 72 6d 61 74 74 65 64 20 70 72 69 6e 74 69 6e 67 0a 20 20 20 20 20 72 6f 75 74 69 6e 65 73   ┆formatted printing      routines┆
0x460…480 20 75 73 65 64 20 69 6e 20 43 20 70 72 6f 67 72 61 6d 6d 69 6e 67 2c 20 6c 69 6b 65 20 74 68 65   ┆ used in C programming, like the┆
0x480…4a0 20 6e 65 77 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 5f 08 64 5f 08 61 5f 08 74   ┆ newer versions of the _ d_ a_ t┆
0x4a0…4c0 5f 08 65 0a 20 20 20 20 20 70 72 6f 67 72 61 6d 2e 20 20 54 68 65 20 70 72 6f 67 72 61 6d 20 69   ┆_ e      program.  The program i┆
0x4c0…4e0 73 20 64 65 73 69 67 6e 20 74 6f 20 62 65 20 75 73 65 64 20 69 6e 20 73 68 65 6c 6c 20 73 63 72   ┆s design to be used in shell scr┆
0x4e0…500 69 70 74 73 2e 0a 0a 45 58 41 4d 50 4c 45 53 0a 20 20 20 20 20 23 20 63 68 65 63 6b 20 75 73 65   ┆ipts.  EXAMPLES      # check use┆
0x500…520 72 27 73 20 6d 61 69 6c 20 66 69 6c 65 3a 20 63 6d 0a 20 20 20 20 20 73 65 74 20 2d 2d 20 60 66   ┆r's mail file: cm      set -- `f┆
0x520…540 6c 73 20 22 25 6d 20 25 61 20 25 73 20 25 41 22 20 24 4d 41 49 4c 60 0a 20 20 20 20 20 6d 6f 64   ┆ls "%m %a %s %A" $MAIL`      mod┆
0x540…560 69 66 79 74 69 6d 65 3d 24 31 0a 20 20 20 20 20 61 63 63 65 73 73 74 69 6d 65 3d 24 32 0a 20 20   ┆ifytime=$1      accesstime=$2   ┆
0x560…580 20 20 20 73 69 7a 65 3d 24 33 0a 20 20 20 20 20 73 68 69 66 74 20 33 0a 20 20 20 20 20 69 66 20   ┆   size=$3      shift 3      if ┆
0x580…5a0 5b 20 22 24 73 69 7a 65 22 20 21 3d 20 30 20 5d 0a 20 20 20 20 20 74 68 65 6e 0a 20 20 20 20 20   ┆[ "$size" != 0 ]      then      ┆
0x5a0…5c0 20 20 20 20 20 69 66 20 74 65 73 74 20 24 6d 6f 64 69 66 79 74 69 6d 65 20 2d 67 74 20 24 61 63   ┆     if test $modifytime -gt $ac┆
0x5c0…5e0 63 65 73 73 74 69 6d 65 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 6e 0a 20 20 20 20 20 20 20 20   ┆cesstime           then         ┆
0x5e0…600 20 20 20 20 20 20 20 65 63 68 6f 20 22 59 6f 75 20 68 61 76 65 20 6e 65 77 20 6d 61 69 6c 20 28   ┆       echo "You have new mail (┆
0x600…620 24 73 69 7a 65 20 62 79 74 65 73 29 20 4c 61 73 74 20 72 65 61 64 20 24 2a 22 0a 20 20 20 20 20   ┆$size bytes) Last read $*"      ┆
0x620…640 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 63 68 6f 20 22 59   ┆     else                echo "Y┆
0x640…660 6f 75 20 68 61 76 65 20 6f 6c 64 20 6d 61 69 6c 20 28 24 73 69 7a 65 20 62 79 74 65 73 29 20 4c   ┆ou have old mail ($size bytes) L┆
0x660…680 61 73 74 20 72 65 61 64 20 24 2a 22 0a 20 20 20 20 20 20 20 20 20 20 66 69 0a 20 20 20 20 20 65   ┆ast read $*"           fi      e┆
0x680…6a0 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 65 63 68 6f 20 22 59 6f 75 20 68 61 76 65 20 6e 6f 20   ┆lse           echo "You have no ┆
0x6a0…6c0 6d 61 69 6c 2e 20 20 4c 61 73 74 20 72 65 61 64 20 24 2a 22 0a 0a 20 20 20 20 20 41 20 66 61 73   ┆mail.  Last read $*"       A fas┆
0x6c0…6e0 74 20 6c 6f 6e 67 20 5f 08 6c 5f 08 73 20 66 6f 72 6d 61 74 20 77 69 74 68 20 6e 75 6d 62 65 72   ┆t long _ l_ s format with number┆
0x6e0…700 73 2c 20 61 6e 64 20 6f 6e 65 20 77 69 74 68 20 73 74 72 69 6e 67 73 3a 0a 20 20 20 20 20 66 6c   ┆s, and one with strings:      fl┆
0x700…720 73 20 22 25 2e 31 54 25 39 50 20 25 32 6c 20 25 2d 31 30 55 20 25 2d 31 30 47 20 25 37 73 20 25   ┆s "%.1T%9P %2l %-10U %-10G %7s %┆
0x720…740 2d 2e 31 30 4d 20 25 4e 22 0a 20 20 20 20 20 66 6c 73 20 22 25 2e 31 54 25 33 70 20 25 32 6c 20   ┆-.10M %N"      fls "%.1T%3p %2l ┆
0x740…760 25 31 30 75 20 25 31 30 67 20 25 37 73 20 25 2d 2e 31 30 4d 20 25 4e 22 0a 0a 20 20 20 20 20 41   ┆%10u %10g %7s %-.10M %N"       A┆
0x760…780 20 64 65 74 61 69 6c 65 64 20 74 61 62 75 6c 61 72 20 66 6f 72 6d 61 74 3a 0a 20 20 20 20 20 66   ┆ detailed tabular format:      f┆
0x780…7a0 6c 73 20 22 25 6e 25 4e 3a 0a 20 20 20 20 20 20 20 20 20 20 4c 61 73 74 20 41 63 63 65 73 73 65   ┆ls "%n%N:           Last Accesse┆
0x7a0…7c0 64 3a 20 25 2e 32 34 41 0a 20 20 20 20 20 20 20 20 20 20 4c 61 73 74 20 4d 6f 64 69 66 69 65 64   ┆d: %.24A           Last Modified┆
0x7c0…7e0 3a 20 25 2e 32 34 4d 0a 20 20 20 20 20 20 20 20 20 20 4f 77 6e 65 72 2f 47 72 6f 75 70 3a 20 20   ┆: %.24M           Owner/Group:  ┆
0x7e0…800 20 25 2d 31 30 55 20 25 47 0a 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 20 54 79 70 65 3a 20 20   ┆ %-10U %G           File Type:  ┆
0x800…820 20 20 20 25 54 0a 20 20 20 20 20 20 20 20 20 20 50 72 6f 74 65 63 74 69 6f 6e 73 3a 20 20 20 25   ┆   %T           Protections:   %┆
0x820…840 50 20 25 70 0a 20 20 20 20 20 20 20 20 20 20 53 69 7a 65 3a 20 20 20 20 20 20 20 20 20 20 25 73   ┆P %p           Size:          %s┆
0x840…860 0a 20 20 20 20 20 20 20 20 20 20 49 6e 6f 64 65 3a 20 20 20 20 20 20 20 20 20 25 69 0a 20 20 20   ┆           Inode:         %i    ┆
0x860…880 20 20 20 20 20 20 20 4c 69 6e 6b 73 3a 20 20 20 20 20 20 20 20 20 25 6c 22 0a 0a 20 20 20 20 20   ┆       Links:         %l"       ┆
0x880…8a0 53 61 76 65 20 74 68 65 20 66 69 6c 65 20 70 72 6f 74 65 63 74 69 6f 6e 73 2c 20 63 68 61 6e 67   ┆Save the file protections, chang┆
0x8a0…8c0 65 20 74 68 65 6d 2c 20 61 6e 64 20 72 65 73 65 74 3a 0a 20 20 20 20 20 6f 6c 64 6d 6f 64 65 3d   ┆e them, and reset:      oldmode=┆
0x8c0…8e0 60 66 6c 73 20 25 70 20 24 66 69 6c 65 60 0a 20 20 20 20 20 63 68 6d 6f 64 20 37 37 37 20 24 66   ┆`fls %p $file`      chmod 777 $f┆
0x8e0…900 69 6c 65 0a 20 20 20 20 20 64 6f 5f 73 6f 6d 65 74 68 69 6e 67 5f 74 6f 20 24 66 69 6c 65 0a 20   ┆ile      do_something_to $file  ┆
0x900…920 20 20 20 20 63 68 6d 6f 64 20 24 6f 6c 64 6d 6f 64 65 20 24 66 69 6c 65 0a 0a 53 45 45 20 41 4c   ┆    chmod $oldmode $file  SEE AL┆
0x920…940 53 4f 0a 20 20 20 20 20 73 68 28 31 29 2c 20 6c 73 28 31 29 2c 20 73 74 61 74 28 32 29 2c 20 70   ┆SO      sh(1), ls(1), stat(2), p┆
0x940…960 72 69 6e 74 66 28 33 29 0a 0a 53 59 4e 54 41 58 20 46 4f 52 20 50 52 4f 47 52 41 4d 4d 45 52 53   ┆rintf(3)  SYNTAX FOR PROGRAMMERS┆
0x960…980 0a 20 20 20 20 20 54 68 65 20 70 72 6f 67 72 61 6d 20 73 6f 75 72 63 65 20 63 6f 6e 74 61 69 6e   ┆      The program source contain┆
0x980…9a0 73 20 61 20 66 75 6e 63 74 69 6f 6e 20 74 68 61 74 20 63 61 6e 20 62 65 20 63 61 6c 6c 65 64 20   ┆s a function that can be called ┆
0x9a0…9c0 64 69 72 65 63 74 6c 79 2e 20 20 41 0a 20 20 20 20 20 6e 75 6c 6c 20 66 69 6c 65 20 6e 61 6d 65   ┆directly.  A      null file name┆
0x9c0…9e0 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 74 65 73 74 20 74 68 65 20 66 6f 72 6d 61 74 20   ┆ can be used to test the format ┆
0x9e0…a00 73 74 72 69 6e 67 2e 0a 0a 20 20 20 20 20 66 6c 73 20 28 66 69 6c 65 2c 20 66 6f 72 6d 61 74 2c   ┆string.       fls (file, format,┆
0xa00…a20 20 62 75 66 66 65 72 29 0a 20 20 20 20 20 63 68 61 72 20 2a 66 69 6c 65 3b 20 20 20 20 2f 2a 20   ┆ buffer)      char *file;    /* ┆
0xa20…a40 6e 61 6d 65 20 6f 66 20 74 68 65 20 66 69 6c 65 20 74 6f 20 62 65 20 6c 69 73 74 65 64 20 2a 2f   ┆name of the file to be listed */┆
0xa40…a60 0a 20 20 20 20 20 63 68 61 72 20 2a 66 6f 72 6d 61 74 3b 20 20 2f 2a 20 66 6f 72 6d 61 74 20 73   ┆      char *format;  /* format s┆
0xa60…a80 74 72 69 6e 67 20 2a 2f 0a 20 20 20 20 20 63 68 61 72 20 62 75 66 66 65 72 5b 5d 3b 20 2f 2a 20   ┆tring */      char buffer[]; /* ┆
0xa80…aa0 62 75 66 66 65 72 20 6c 61 72 67 65 20 65 6e 6f 75 67 68 20 74 6f 20 68 6f 6c 64 20 61 6e 73 77   ┆buffer large enough to hold answ┆
0xaa0…ac0 65 72 20 2a 2f 0a 0a 41 55 54 48 4f 52 0a 20 20 20 20 20 47 61 72 79 20 50 65 72 6c 6d 61 6e 0a   ┆er */  AUTHOR      Gary Perlman ┆