Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kupham

  1. kupham

    Listing files using the ls command

    I think the best solution is to use the find command but unfortunately the -maxdepth option is not available on my system. Is there any other way to limit the find command to just the files in the current directory without using *.*?
  2. kupham

    Listing files using the ls command

    The command Greg listed works but it only lists the file name. How do you list the entire path and the file name using the command he gave me (see below)? ls -l $VAR_DIRECTORY|grep -v ^d|tr -s " "|cut -d" " -f9 Also, can someone explain the command above to me? Thanks!
  3. kupham

    Listing files using the ls command

    I still receive the error that the parameter list is too lonb because of the *.*
  4. kupham

    Listing files using the ls command

    If you are in the directory of a file, is there a way to list the entire path of that file with the ls command?
  5. kupham

    Listing files using the ls command

    It says -maxdepth is not a valid option.
  6. kupham

    Listing files using the ls command

    I am trying to list just the files in a directory (not the subdirectories or files under the subdirectories) into a temporary file. I have defined the variable VAR_DIRECTORY as the directory I would like the files listed from. When I use the following command: ls $VAR_DIRECTORY/*.* >>...

Part and Inventory Search

Back
Top