Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: a bash script request

  1. #11
    Join Date
    May 2009
    Location
    Mumbai, India
    Beans
    491
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: a bash script request

    umm. i reopen this thread with another question.
    i have got a file with a list of urls. each on a different line.
    so, it is possible to make a script that will make a file which has a list of all the basenames..

  2. #12
    Join Date
    Jul 2009
    Location
    London
    Beans
    1,480
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: a bash script request

    Hi, something like:
    Code:
    while read line
    do
    echo ${line##*/} 
    done < sourcefile > destinationfile

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •