Indentfizierung eines Dateinnames und Speicherung in einer Variablen

Dieses Thema im Forum "Shell-Skripte" wurde erstellt von muemmi, 28.06.2006.

  1. muemmi

    muemmi Eroberer

    Dabei seit:
    14.12.2005
    Beiträge:
    65
    Zustimmungen:
    0
    Hi

    Ich arbeite auf einer UNIX Shell unter Windows, d.h. das eigentliche Programm was ich nutze läuft auf UNIX unter Windows.

    ich hab schon eineige Scripte zusammengebastelt, bin aber noch nicht so fit darin

    mein Problem:

    ich habe eine Ordner, da landen dateien drin

    z.b.

    ANA_123457_01012006.lis
    ANA_222222_01022006.lis
    usw.

    ich muß

    diese dateien zum packen bekommen damit ich sie weiterverarbeiten kann

    z.b umbenennen (einzeln) oder verschieben

    d.h der name der datei muß irgendwie in eine variable rein

    würde mich über eine tip freuen

    grüße

    frank
     
  2. Anzeige

    Schau dir mal diese Kategorie an. Dort findest du bestimmt etwas.
    Registrieren bzw. einloggen, um diese und auch andere Anzeigen zu deaktivieren
  3. #2 Wolfgang, 28.06.2006
    Wolfgang

    Wolfgang Foren Gott

    Dabei seit:
    24.04.2005
    Beiträge:
    3.978
    Zustimmungen:
    0
    Ort:
    Erfurt
    Hallo
    Nur mal so als Hinweis: cygwin != UNIX
    Desweiteren ist die verwendete Shell für Shellscripte ausschlaggebend!

    Da wir hier in einem Unixboard sind, ist es schon nötig zu sagen welche Shellsyntax dein Pseudounix versteht. Meine Hinweise beziehen sich ergo auf die Bash.
    Ich weiss nicht genau was du willst, bzw. wo dein Problem liegt.

    Um z.B. alle Dateien eines Ordners zu bekommen, hilft dir find.
    man find
    oder ls
    man ls
    Ein Beispiel:
    Code:
     for I in $(find /pfad/ -type f -name "ANA_*"); do 
    echo $I 
    #mach sonst was damit
    done
    
    Gruß Wolfgang
     
  4. muemmi

    muemmi Eroberer

    Dabei seit:
    14.12.2005
    Beiträge:
    65
    Zustimmungen:
    0
    also das pseudo heißt MKS Toolkit

    undas mit der bash mußt dur mir erklären

    soll ich mal ein script einfügen ?


    hier die befehle die das teil kann !

    Commands in MKS Toolkit for Developers

    The various MKS Toolkit products include different subsets of commands and utilities. Click the product link on the right to view the product-specific command lists.
    * denotes a Shell built-in
    † denotes a groff command
    ‡ denotes a command which requires an X Server
    § denotes a command that applies only to NuTCRACKER Platform applications
    ¥ denotes a command whose binary and source code can be found in the Samples directory of the CD distribution or in the Resource Kit and is an example of porting UNIX source code with MKS Toolkit for Enterprise Developers

    . * — execute KornShell script in current environment
    : * — expand arguments and do nothing, successfully
    [ * — test for condition
    [[ * — test for condition
    64decode.exe — decode a file using base64
    64encode.exe — encode a file using base64
    a2p.exe — awk to perl translator
    addftinfo.exe †¥ — add information to troff font files for use with groff
    afmtodit.exe †¥ — create font files fo ruse with groff -Tps
    alias * — display or create command aliases
    appc.ksh — arbitrary precision programmable calculator
    appres.exe ‡ — list X application resource database
    ar.exe — create and maintain library archives
    asa.exe — interpret ASA/FORTRAN carriage control
    assoc.ksh — set file extension association
    at.exe — execute commands at a later time
    atobm.exe ‡ — bitmap editor and converter for the X Window System
    autoload * — display or modify Shell functions
    autorun.ksh — specify programs to run on bootup or login under Win32
    awk.exe — data transformation, report generation language
    awkc.exe — compile AWK programs into executables
    banner.exe — display text in large font
    basename * — display file name component of path name
    basename.exe — display file name component of path name
    bash.exe — Bourne Again shell and command interpreter
    batch.exe — execute commands at a later time
    bc.exe — arbitrary-precision arithmetic calculation language
    bdiff.exe — compare two text files and show differences
    bindres.exe — encode resources and insert them into a specified text file
    bitmap.exe ‡ — bitmap editor and converter for the X Window System
    bmtoa.exe ‡ — bitmap editor and converter for the X Window System
    break * — exit from loop in a KornShell script
    builtin * — execute a simple command
    bunzip2.exe — compress or decompress files using block-sorting
    bz2cat.exe — compress or decompress files using block-sorting
    bzcmp.sh — compare bzip2 compressed files
    bzdiff.sh — compare bzip2 compressed files
    bzegrep.sh — search possibly bzip2 compressed files for a regular expression
    bzfgrep.sh — search possibly bzip2 compressed files for a regular expression
    bzgrep.sh — search possibly bzip2 compressed files for a regular expression
    bzip2.exe — compress or decompress files using block-sorting
    bzip2recover.exe — compress or decompress files using block-sorting
    bzless.sh — display bzip2 compressed files on a page-by-page basis
    bzmore.sh — display bzip2 compressed files on a page-by-page basis
    c.exe — produce multi-column output
    cal.exe — display a calendar for a month or year
    calendar.exe — appointment reminder system
    cat.exe — concatenate and display text files
    cc.exe — interface to Microsoft C compiler (MKS Toolkit UNIX APIs)
    cd * — change working directory
    cdate.exe — converts a date and time in traditional format and displays it as seconds since midnight on January 1, 1970
    chacl.exe — change the access control list on Windows NT/2000 objects
    chgrp.exe — change the group ownership of files and/or directories
    chmod * — change access permissions of a file
    chmod.exe — change access permissions of a file
    chown.exe — change the ownership of files and/or directories
    cksum.exe — compute checksum and byte count for file
    clear.exe — clear screen
    cmp.exe — compare two files
    col.exe — remove reverse line-feeds
    color.exe — set default foreground and background colors for console window
    comm.exe — compare sorted files and show differences
    command * — execute a simple command
    compress.exe — Lempel-Ziv compression of a file; no longer supported
    connrlogin.ksh — launch a remote login session
    connrsh.ksh — launch a remote shell session
    connssh.ksh — launch a secure shell session
    continue * — skip to next iteration of loop in shell script
    cp.exe — copy files
    cpio.exe — archiver to copy and back up files
    cpp.exe — C preprocessor
    cppstdin.ksh — run a C preprocessor on the standard input stream
    crontab.exe — schedule regular background jobs
    crypt.exe — encryption/decryption filter
    csh.exe — C shell, a shell (command interpreter) with C-like syntax
    csplit.exe — split a text file according to criteria
    ctags.exe — produce tags file for ex, more and vi
    ctime.exe — formats and displays dates
    cut.exe — selectively display fields or characters from input lines
    date * — set and display date and time
    date.exe — set and display date and time
    db.exe — send SQL queries to a database via ODBC
    dc.exe — arbitrary precision desk calculator
    dd.exe — copy and convert input blocks
    dde.exe — perform DDE client operations
    declare * — assign attributes and values to Shell variables
    deroff.exe — remove nroff/troff formatter commands, prepare word list
    desktop.exe — simple command line desktop manipulation
    dev.exe — display device driver information
    df.exe — display amount of free space remaining on disk
    dgstsum — create and check message digests
    diff.exe — compare two text files and show differences
    diff3.exe — compare three text files
    diffb.exe — compare binary files and show differences
    diffh.exe — compare two text files and show differences
    dircmp.exe — compare directories
    dirname * — display directory components of path name
    dirname.exe — display directory components of path name
    dirs * — display all elements in the directory stack
    dlg * — load and manage Windows dialog boxes
    domain.exe — display Windows NT/2000 domain information
    dosname.exe — display the short name (8.3) or long name equivalent of file names
    du.exe — summarize file space usage
    echo * — display arguments
    echo.exe — display arguments
    ed.exe — line-oriented text editor
    editres.exe ‡ — a dynamic resource editor for X applications
    egrep.exe — match patterns in a file
    encode_keychange.exe — Internal SSH command
    env.exe — display environment, set environment for process
    eqn.exe ¥ — format equations for troff
    eval * — evaluate arguments in the KornShell
    eventlog.exe — read, write, backup, enumerate, count, clear, and display an event log
    ex.exe — text editor
    exec * — execute a command in place of the current shell
    exit * — exit from the KornShell
    expand.exe — expand tabs to spaces
    export * — mark names for export
    expr.exe — evaluate expression
    false * — fail, quietly
    false.exe — fail, quietly
    fc * — display, fix, edit and re-enter previous KornShell commands
    fgrep.exe — match patterns in a file
    file.exe — determine file type
    filebox.exe — display an open or save dialog box
    filever.exe — display file version information
    find.exe — find files within file tree
    flip.exe — convert text files between UNIX style and PC style
    fmt.exe — simple text formatter
    fold.exe — break lines into shorter lines
    fping.exe — send ICMP ECHO_REQUEST packets to network hosts
    fsinfo.exe ‡ — X font server information utility
    fslsfonts.exe ‡ — list fonts served by X font server
    fstobdf.exe ‡ — generate BDF font from X font server
    ftype.ksh — set file type association
    functions * — display or modify KornShell functions
    gawk.exe ¥ — pattern scanning and processing language
    gdf.ksh — graphically display the amount of free space remaining on a disk
    gdir * — graphically display and manage the current directory stack
    gencat.exe — generate formatted message catalog
    getconf.exe — display POSIX configuration information
    getopt.exe — external command to parse shell file options
    getopts * — parse options from shell script command line
    ghist * — display and manage command history from a scrollable dialog box
    gmake.exe ¥ — GNU make utility to maintain groups of programs
    gman.exe ¥ — display both standard and groff reference pages
    gps.ksh — display and manage process statuses in a scrollable dialog box
    grconfig.ksh — graphically configures the rshd and rexecd services
    grep.exe — match patterns in a file
    gres.exe — substitute for a pattern in a file
    grodvi.exe †¥ — convert groff output to TeX dvi format
    groff.exe †¥ — front end for the groff document formatting system
    grog.exe †¥ — guess options for groff command
    grohtml.exe †¥ — HTML driver for groff
    grolj4.exe †¥ — groff driver for HP Laserjet 4 family
    grops.exe †¥ — PostScript driver for groff
    grotty.exe †¥ — groff driver for typewriter-like devices
    groupinfo.exe — manipulate Windows NT/2000 group information
    gset * — graphically define KornShell settings
    gunzip.exe ¥ — compress or expand files
    gvar * — graphically view or define KornShell variables, parameters, functions, and aliases
    gzcat.exe ¥ — compress or expand files
    gzip.exe ¥ — compress or expand files
    halt.exe — shut down the system
    hash * — create a tracked alias
    hd.exe — formatted file dump
    head.exe — display first part of file
    help.exe — display brief command explanations
    hist * — display, fix, edit and re-enter previous KornShell commands
    history * — display shell command history
    hostinfo.exe — display name, IP address, and aliases of host
    hpftodit.exe †¥ — create font description files for use with groff -Tlj4
    htdiff.exe — compare two HTML files and display differences
    htsplit.exe — split an HTML file into tokens
    htstrip.pl — strip tags from HTML file
    iceauth.exe ‡ — ICE authority file utility
    iconv.exe — convert characters from one code set to another
    id.exe — display user and group names
    igawk.ksh ¥ — gawk with include files
    imapmail.exe — retrieve, delete, and display mail messages from IMAP format mailboxes
    indxbib.exe †¥ — make inverted index for bibliographic databases
    infocmp.exe — compare or print out terminfo descriptions infocmp - compare or print out terminfo descriptions
    install.exe ¥ — copy files and set attributes
    integer * — declare an integer variable
    ipcrm.exe § — remove message queue, semaphore, or shared memory identifiers
    ipcs.exe § — display information about active IPC facilities
    jobs * — display the status of jobs in the current session
    join.exe — join two sorted, textual relational databases
    kill * — terminate process
    kill.exe — terminate process
    ksh.exe — POSIX-compliant (Korn) shell and command interpreter
    kterm.exe — multi-lingual terminal emulator for X
    launch_xterm.ksh — launch an xterm session
    lc.exe — list file system elements in categories
    ld.exe — interface to system linker
    let * — evaluate arithmetic expressions
    line.exe — copy one line of standard input
    lkbib.exe †¥ — search bibliographic databases
    ln.exe — create a link to a file
    local * — assign attributes and values to Shell variables
    logname.exe — display user name
    look.exe — find lines in a sorted file which begin with string
    lookbib.exe †¥ — search bibliographic databases
    ls.exe — list file and directory names and attributes
    lsacl.exe — list access control lists for object
    lsshare.exe — list details of shares, computers, and network resources
    m4.exe — macro processing language
    mailx.exe — read electronic mail
    make.exe — maintain program-generated and interdependent files
    makedepend.exe — create dependency lists for C/C++ source
    makeg.sh — run make with options necessary to make a debuggable executable
    man.exe — display online reference pages
    manstrip.exe — strip the unprintable sequences out of online reference pages
    mapimail.sh — send mail on a Win32 system using the MSMapi32 ActiveX COM object
    md2sum — create and check message digests
    md4sum — create and check message digests
    md5sum — create and check message digests
    mdc2sum — create and check message digests
    member.exe — manipulate Windows NT/2000 group membership
    mergelib.sh — merge one library into another
    miniperl.exe — practical extraction and report language
    mkcatdefs.exe — preprocess a message file
    mkdir * — create a new directory
    mkdir.exe — create a new directory
    mkdirhier.sh — make a directory hierarchy
    mkfifo.exe § — create FIFO special files
    mks_env* — save, restore, and delete shell environments
    mksauth.exe — password authentication service
    mkscgi.exe — run scripts on HTTP server through Common Gateway Interface
    mksdiag.exe — check MKS Toolkit configuration
    mkshare.exe — create share
    mksinfo.exe — display product serial number and other MKS information
    mksrv — run program or script as service
    mkszip.exe — compress a file
    mktemp — create unique temporary file
    mkurl.exe — create or modify a URL based on its component parts
    more.exe — display files on a page-by-page basis
    mount.exe — mounts file systems
    msgbox.exe — display a message box and get response from user
    mt.exe — magnetic tape control
    mv.exe — rename and move files and directories
    ncenv.cmd — configure NuTCRACKER Platform development environment
    ncoeenv.exe — NuTCRACKER Workstation environment
    netnews.exe — send and receive network news messages
    nl.exe — number lines
    nm.exe — display symbol table of object, library, or executable file
    nroff.exe †¥ — emulate nroff command with groff
    ntps.exe — display process status
    oclock.exe ‡ — round X clock
    od.exe — formatted file dump
    openssl.exe — OpenSSL command line tool
    pack.exe — compress files by Huffman encoding
    passwd.exe — change a password
    paste.exe — horizontally concatenate lines
    patch.exe — change file using diff output
    pathchk.exe — check path names
    pax.exe — archiver for data interchange and file backup
    pcat.exe — display Huffman packed files on standard output
    pending.sh — display file operations due to occur at reboot
    perl.exe — practical extraction and report language
    perror.exe — print error message for NuTCRACKER Platform error code
    pfbtops.exe †¥ — translate a PostScript font in .pfb format to ASCII
    pg.exe — interactively display files
    pic.exe †¥ — compile pictures for troff or TeX
    pop3mail.exe — retrieve, delete, and display mail messages from POP3 format mailboxes
    popd * — remove an element from the directory stack
    portcheck.exe — scan ports to verify if they are in use and whether HTTP, FTP, SMTP, or telnet sessions exist on those ports
    pr.exe — display and format files
    print * — display arguments from the KornShell
    printenv.exe — display environment variables and their values
    printf * — display a formatted string
    printf.exe — display a formatted string
    priv.exe — manipulate rights/privileges lists
    process.exe § — report NuTCRACKER Platform process information
    proxymngr.exe ‡ — proxy manager service
    ps.exe — display process status
    psbb.exe †¥ — extract bounding box from PostScript document
    pscript.dll — active perl scripting engine
    pushd * — push a directory onto a directory stack
    pwd * — display working directory
    pwd.exe — display working directory
    pwrmgr — list and change power schemes
    r * — edit and re-execute previous command
    ranlib.exe — convert archives to random libraries
    rconfig.sh — configures the rshd and rexecd services
    rcp.exe — remote file copy
    read * — input a line to the KornShell
    readonly * — mark KornShell variable as read-only
    red.exe — line-oriented text editor
    refer.exe †¥ — preprocess bibliographic references for groff
    registry.exe — display and modify the Windows Registry Database
    regps.ksh — register PScript for IIS and ASP
    resh.exe — POSIX-compliant restricted shell and command interpreter
    resize.exe — set TERMCAP and terminal settings to current xterm window size
    return* * — return from a shell function or . (dot) script
    rev.exe — reverse character order of input lines
    rexec.exe — remote execution
    rexecd.exe — remote execution service
    ripemd160sum — create and check message digests
    rlogin.exe — remote login
    rlogind.exe — remote login service
    rm * — remove files
    rm.exe — remove files
    rmdir * — remove directory
    rmdir.exe — remove directory
    rmshare.exe — remove share
    rsetup.exe — set up Windows NT LSA database entries
    rsh.exe — remote shell
    rshd.exe — remote shell service
    scp.exe — secure copy (remote file copy program)
    secsh-add.exe — adds RSA or DSA identities for the authentication agent
    secsh-agent.exe — authentication agent
    secsh-askpass.exe — Internal SSH command
    secsh-keygen.exe — authentication key generation, management and conversion
    secsh-keyscan.exe — gather ssh public keys
    secsh.exe — OpenSSH SSH client (remote login program)
    secshd.exe — OpenSSH Secure Shell service
    sed.exe — stream editor (non-interactive)
    sendevent.exe — send events to the current window such as keystrokes, mouse movemovement, and clicks
    service.exe — manage Windows NT/2000 services
    set * — set KornShell flags and positional parameters
    sftp-server.exe — SFTP server subsystem
    sftp.exe — secure file transfer program
    sh.exe — POSIX-compliant shell and command interpreter
    sha1sum — create and check message digests
    shasum — create and check message digests
    shexec — perform Windows operation on an application, document, or folder
    shift * — shift KornShell positional parameters
    shopt* * — control optional shell behaviour
    shortcut.exe — create an explorer shortcut file
    showrgb.exe ‡ — uncompile an rgb color-name database
    shutdown.exe — shut down the system with warning
    sid.exe — display user's security identifier
    size.exe — display object file sizes
    sleep.exe — suspend execution for a specified time
    smproxy.exe ‡ — session manager proxy
    smtpmail.exe — send mail using SMTP
    snetnews.exe — send and receive encrypted network news messages
    snmpbulkget.exe — communicate with a network entity using SNMP BULK GET requests
    snmpbulkwalk.exe — communicate with a network entity using SNMP BULK WALK requests
    snmpdelta.exe — monitor deltas of integer valued SNMP variables
    snmpdf.exe — get a listing of disk space usage on a remote machine via SNMP
    snmpget.exe — communicate with a network entity using SNMP GET requests
    snmpgetnext.exe — communicate with a network entity using SNMP GET NEXT requests
    snmpinform.exe — send an SNMP TRAP message to a host
    snmpnetstat.exe — show network status using SNMP
    snmpset.exe — communicate with a network entity using SNMP SET requests
    snmpstatus.exe — retrieve important information from a netowrk entity
    snmptable.exe — obtain and print an SNMP table
    snmptest.exe — communicate with a network entity using SNMP GET requests
    snmptranslate.exe — translate SNMP OID values into more useful information
    snmptrap.exe — send an SNMP TRAP message to a host
    snmptrapd.exe — service to receive and log SNMP trap messages
    snmpusm.exe — create and maintain SNMPv3 users on a remote entity
    snmpvacm.exe —
    snmpwalk.exe — communicate with a network entity using SNMP GET NEXT requests
    soelim.exe †¥ — interpret .so requests in groff input
    sort.exe — sort/merge utility
    source * — execute Shell script in current environment
    spell.exe — detect spelling errors
    split.exe — split a file into manageable pieces
    ssh-add.exe — adds RSA or DSA identities for the authentication agent
    ssh-agent.exe — authentication agent
    ssh-askpass.exe — Internal SSH command
    ssh-keygen.exe — authentication key generation, management and conversion
    ssh-keyscan.exe — gather ssh public keys
    ssh.exe — OpenSSH SSH client (remote login program)
    start.exe — start a new program in another window
    stat.exe — retrieve and display file information in a similar manner as the stat() function
    strerror.exe — display a system error message
    strings.exe — display printable strings in binary files
    strip.exe — remove debug information from executable files
    stty.exe — set or display terminal options
    su.exe — substitute user
    sum.exe — compute checksum and block count for file
    sync.exe — update the disk
    sysinf.exe — display technical system information
    tail.exe — display last lines of a file
    tar.exe — USTAR-compatible tape archiver to copy and back up files
    taskrun.exe — set up standard input for command, run command, and save output
    tb * — modify KornShell Windows toolbar on Windows 95/98.
    tbl.exe †¥ — format tables for troff
    tclsh.exe — simple shell containing Tcl interpreter
    tee.exe — clone output stream
    teln.cmd — launch a telnet client
    telnetd.exe — DARPA TELNET protocol service
    test * — test for condition
    test.exe — test for condition
    tfmtodit.exe †¥ — create font files for use with groff -Tdvi
    tic.exe — the terminfo entry-description compiler tic - the terminfo entry-description compiler
    time * — display CPU and elapsed times for commands
    time.exe — display CPU and elapsed times for commands
    times * — display user and system times used by the KornShell and its children
    tksched.exe — MKS Toolkit Scheduler
    touch * — change file modification date
    touch.exe — change file modification date
    tput.exe — initialize a terminal or query terminfo database tput - initialize a terminal or query terminfo database
    tr.exe — translation filter
    trap * — intercept abnormal conditions and interrupts
    true — format documents
    true.exe * — do nothing, successfully
    truss.exe § — trace command
    tset.exe — terminal initialization tset, reset - terminal initialization
    tsort.exe — topological sort
    tty.exe — display terminal name
    twm.exe ‡ — Tab Window Manager for the X Window System
    type * — identify how KornShell interprets name
    typeset * — assign attributes and values to KornShell variables
    ugrep.ksh — search for regular expressions from a dialog box
    uil.exe ‡ —
    umask * — get or set the file mode creation mask
    umount.exe — unmount file systems
    unalias * — remove alias definitions
    uname * — display system name information
    uname.exe — display system name information
    uncname.exe — return the UNC name for a specified file
    uncompre.exe — undo compression of a file
    uncompress.exe — undo compression of a file
    unexpand.exe — compress spaces into tabs
    uniq.exe — display unique lines of sorted file
    units.exe — units conversion utility
    unpack.exe — decode Huffman packed files
    unset * — remove KornShell variable or function
    unzip.exe — list, test, and extract compressed files in a ZIP archive
    uptime.exe — display how long system has been running
    url.exe — parse Uniform Resource Locators (URLs)
    userinfo.exe — manage Windows NT/2000 user information
    uudecode.exe — decode file encoded with uuencode
    uuencode.exe — encode a file in 7-bit characters
    vdiff32.exe — compare two text files and show differences
    vi.exe — display-oriented interactive text editor
    view.exe — read only version of VI
    VisualSFTP — Windows Explorer extension for secure remote file manipulation through SSH protocol
    viw.exe — Windows version of VI
    vpax.exe — (Visual Pax) graphical interface to pax, cpio, and tar archives
    wait * — wait for process to complete
    wc.exe — count of newlines, words, bytes, and characters
    wcopy.exe — copy from a specified file or standard input to the Windows clipboard
    web.exe — transfer files to or from a web server
    whence * — identify how KornShell interprets command name
    whereis.exe — display full path name for executable command
    which.exe — display full path name for executable command
    who.exe — display information about current users
    whoami.exe — display username
    winctrl.exe — resize, close, change focus, and otherwise manipulate windows and dialog boxes
    windir.exe — display names and paths of Windows directories
    wml.exe ‡ —
    wpaste.exe — write clipboard text to standard output or a specified file
    ws.exe — display the name of the current workstation or desktop
    wstart.exe — start a new program in another window
    wts.exe — execute commands at a later time
    x11perf.exe ‡ — X11 server performance test program
    xargs.exe — construct and execute command lines
    xauth.exe ‡ — X authority file utility
    xclipboard.exe ‡ — X clipboard client
    xclock.exe ‡ — analog / digital clock for X
    xcmsdb.exe ‡ — device colour characterization utility for X color management system
    xcutsel.exe ‡ — interchange between cut buffer and selection
    xd.exe — formatted file dump
    xdpyinfo.exe ‡ — display information utility for X
    xfd.exe ‡ — display all the characters in an X font
    xfindproxy.exe ‡ — locate proxy services
    xhost.exe ‡ — server access control program for X
    xkill.exe ‡ — kill a client by its X resource
    xlogo.exe ‡ — X Window System logo
    xlsatoms.exe ‡ — list interned atoms defined on server
    xlsclients.exe ‡ — list client applications running on a display
    xlsfonts.exe ‡ — server font list displayer for X
    xmag.exe ‡ — magnify parts of the screen
    xmbind.exe ‡ — configure virtual key bindings
    xmkmf.sh ‡ — make a Makefile from an Imakefile from inside or outside the sources
    xmodmap.exe ‡ — utility for modifying keymaps (and pointer buttons) in X
    xprop.exe ‡ — property displayer for X
    xrdb.exe ‡ — X server resource database utility
    xrefresh.exe ‡ — refresh all or part of an X screen
    xset.exe ‡ — user preference utility for X
    xsetroot.exe ‡ — root window parameter setting utility for X
    xsm.exe ‡ — X Session Manager
    xstdcmap.exe ‡ — X standard color map utility
    xterm.exe — terminal emulator for X
    xwd.exe ‡ — dump an image of an X window
    xwininfo.exe ‡ — window information utility for X
    xwud.exe ‡ — image displayer for X
    zcat.exe — uncompress and display data
    zip.exe — package and compress (archive) files
    zipinfo.exe — list detailed information about a zip archive
    * denotes a Shell built-in
    † denotes a groff command
    ‡ denotes a command which requires an X Server
    § denotes a command that applies only to NuTCRACKER Platform applications
    ¥ denotes a command whose binary and source code can be found in the Samples directory of the CD distribution or in the Resource Kit and is an example of porting UNIX source code with MKS Toolkit for Enterprise Developers

    Managed with Integrity [ Site Map | Products | Sales | Services | News | Support | RSS ]
    [ Enter
     
  5. theton

    theton Bitmuncher

    Dabei seit:
    27.05.2004
    Beiträge:
    4.820
    Zustimmungen:
    0
    Ort:
    Berlin, Germany
    Ich verstehe zwar auch nicht ganz, was du erreichen willst, aber da dir eine Bash zur Verfuegung steht, schau dir mal http://www.tldp.org/LDP/abs/html/ an. Da wird dir u.a. auch das Dateihandling mit der Bash erlaeutert.
     
  6. #5 Wolfgang, 28.06.2006
    Wolfgang

    Wolfgang Foren Gott

    Dabei seit:
    24.04.2005
    Beiträge:
    3.978
    Zustimmungen:
    0
    Ort:
    Erfurt
    Hallo
    Hat also definitiv nix mit UNIX zu tun.

    Du willst sicher nicht verlangen, dass ich mich mit der Syntax deiner Tools für Windows auseinandersetze. ;)
    Selbst wenn ich wöllte (und ich will nicht) könnte ich das nicht. Ich habe hier kein Windows.
    Wie weit die Syntax deiner MKS Tools portable zu einer echten Bash ist, musst du alleine rausfinden.
    Die Doku dazu liefert dir sicher Hinweise dazu.
    Sonst solltest du dich mal in einem einschlägigen Windowsforum erkundigen.
    Hier ist das nicht sehr sinnvoll zu fragen, da es hier um echte Shellinterpreter unter UNIX/LINUX geht.
    Deshalb auch mein Hinweis, wie ich Dateinamen mit der Bash und GNU find ermitteln und weiterverarbeiten würde.
    Die Syntax deines find kenn ich nicht.

    Gruß Wolfgang
     
  7. Xanti

    Xanti Mouse Organist

    Dabei seit:
    05.09.2004
    Beiträge:
    1.855
    Zustimmungen:
    0
    Gib doch einfach mal "man find.exe" in die Konsole ein :D
     
  8. rikola

    rikola Foren Gott

    Dabei seit:
    23.08.2005
    Beiträge:
    2.133
    Zustimmungen:
    0
    Mit einer Bash koenntest Du etwas in der Art von
    Code:
    for filename in ANA*lis; do echo ${filename} ; done
    
    machen, wobei Du 'echo ${filename}' mit dem ersetzen kannst, was Du mit der Datei machen moechtest. Statt 'filename' kannst Du Dir natuerlich auch einen anderen (nicht reservierten) Namen ausdenken.
     
  9. muemmi

    muemmi Eroberer

    Dabei seit:
    14.12.2005
    Beiträge:
    65
    Zustimmungen:
    0
    lieber wolfgang

    schau dir doch mal diese seite an

    http://www.mkssoftware.com/products/tk/commands.asp?product=tkdev

    das steht doch drüber das das teil unix simuliert

    und die befehle sehen doch auch nach unix aus

    hier mal ein script:

    ist das auch nicht unix ?

    ps:die "Sched" befehle gehören nich dazu !

    *****************************************************

    #!/bin/sh


    cd c:/qls/qls/kln
    . ./kshrc # hole QLS-Environment

    sched tgen,,,""Start_Autovalidierung""

    export qls_bg_device="" ""

    logfile=c:/qls/qls/kln/QSC/autoval.LOG


    echo 'Logfile= '"$logfile"
    if [ -e $logfile ]; then
    mv "$logfile" "$logfile"~
    touch "$logfile"
    fi
    echo 'Logfile= '"$logfile" >> $logfile

    sched tgen,,,""Start_Autovalidierung""

    # Variable für datum

    export datum=`date '+%y%m%d%H%M%S'`
    echo $datum


    SCHED DERF,SVALLAUTO,SVALLAUTO,,PROBEN,,61

    #sched tgen,,,""Start_Autovalidierung_Eintrag_DN ""


    #if [ -e qsp/svall.net ]; then

    # SCHED NETWRITE,qsp/SVALL.NET
    # mv qsp/svall.net qsp/svall_$datum.net

    #fi

    #SCHED LISTGEN,SVALLAUTO_DA,SVALLAUTO_DA,,PROBEN1

    #sched tgen,,,""Start_Autovalidierung_Eintrag_DA""


    #if [ -e qsp/svall.net ]; then

    # SCHED NETWRITE,qsp/SVALL.NET
    # mv qsp/svall.net qsp/svall_$datum.net

    #fi



    sched tgen,,,""Start_Autovalidierung_Ende""
     
  10. Anzeige

    Vielleicht findest du HIER Antworten.
    Registrieren bzw. einloggen, um diese und auch andere Anzeigen zu deaktivieren
  11. theton

    theton Bitmuncher

    Dabei seit:
    27.05.2004
    Beiträge:
    4.820
    Zustimmungen:
    0
    Ort:
    Berlin, Germany
    Du benutzt in deinem Skript die Korn-Shell, solltest dir also einfach mal ein Howto zu ksh-Scripting besorgen. *empfehl* Im uebrigen ist ein simuliertes Unix noch lange kein Unix und niemand kann dir garantieren, dass alles, was unter Unix mit den entsprechenden Programmen moeglich ist auch mit deinem Pseudo-Unix funktioniert. Das musst/solltest du aber selbst rausbekommen koennen. try&error :)
     
  12. #10 Wolfgang, 28.06.2006
    Wolfgang

    Wolfgang Foren Gott

    Dabei seit:
    24.04.2005
    Beiträge:
    3.978
    Zustimmungen:
    0
    Ort:
    Erfurt
    Lieber @muemmi

    Du scheinst da etwas zu verwechseln. ;)
    Nicht ich habe mit dieser Software ein Problem, sondern du.
    Ergo:
    Nicht ich muss mir die Syntax ansehen, sondern du.
    Dass es zwischen einer unter Windows simulierten Shell und einer echten Shell gravierende Unterschiede gibt, sollte dir schon allein am Quoting auffallen.
    Das aber ist noch das Geringste.

    Wenn du schonmal auf der Hilfeseite bist, dann schau dir doch einfach mal das an.
    Ohne dich da einzulesen, wirst du eh nicht weit kommen.

    Warum sollten sich hier Leute dort einlesen, die kein Windows und nicht diese Tools nutzen?

    Mein Hinweis, dass das nix mit Unix zu tun hat, ist ernst gemeint und war kein Bashing.

    Deshalb: Lies die Doku dazu, und wende dich bei Fragen dazu an ein Board oder eine Newsgroup, wo Windows-nutzer sitzen, die damit Erfahrung haben.

    Gruß Wolfgang
     
Thema:

Indentfizierung eines Dateinnames und Speicherung in einer Variablen

Die Seite wird geladen...

Indentfizierung eines Dateinnames und Speicherung in einer Variablen - Ähnliche Themen

  1. Alle Dateien eines Verzeichnisses mit einer anderen Datei vergleichen

    Alle Dateien eines Verzeichnisses mit einer anderen Datei vergleichen: Hallo, ich habe ein Verzeichnis, darin enthalten sind mehrere Dateien. Nun möchte ich alle Dateien (Parameter $1) gegen eine konstante Datei...
  2. Mit Live-CD Linux-Tauglichkeit eines Notebooks feststellen

    Mit Live-CD Linux-Tauglichkeit eines Notebooks feststellen: Hallo zusammen, eine Bekannte war mit dem Zwangsupdate auf Windows 10 bei Ihrem Notebook (Toshiba Satellite mit AMD-Prozessor und AMD Radeon...
  3. Artikel: Modifizieren eines Biblatex-Stils

    Artikel: Modifizieren eines Biblatex-Stils: Dieser Artikel richtet sich an Nutzer von LaTeX, die sich erstmals damit konfrontiert sehen, besondere Vorgaben bei der Bibliografie umsetzen zu...
  4. Linux-Varianten eines fortschrittlichen Trojaners für Windows entdeckt

    Linux-Varianten eines fortschrittlichen Trojaners für Windows entdeckt: Die Linux-Varianten basieren auf dem Trojaner Turla, den Forscher der Sicherheitsunternehmen Kaspersky Labs und Symantec im Jahresverlauf...
  5. Suche kleines Live OS

    Suche kleines Live OS: Hallo, Ich suche ein kleines Live OS um zu sehen ob der Prozessor hochtaktet. Wie ist das zu realisieren? Hintergrund: Bei einem Dell Vostro...