CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [BillKSmith] Perl to create a Column: Edit Log



Pshields1984
New User

Jul 10, 2017, 3:21 PM


Views: 2392
Re: [BillKSmith] Perl to create a Column

Hi Bill,

You are right, reading back on my question and it makes little sense. I'll clarify.

What I am using
OS Windows 7
Perl Strawberry

I'm getting my data by the using following command.

cd my\directory\filenames\
dir /b > listoffilenames.txt

listfilenames.txt as an example would contain.

1234.pdf
1245.pdf
1678.pdf

I need Perl to create a tab delimited file with a list of the filenames from listfilenames.txt and in the column beside those filenames I want that column to say something like "Send This File".

So my desired output should look like this ((\t) is to show that I want it tab delimited)

1234.pdf (\t) Send This File
1245.pdf (\t) Send This File
1678.pdf (\t) Send This File

I have done it with Awk but I haven't got access to my Linux machine at the moment to get the exact code.

Any help is greatly appreciated.

Thanks.


(This post was edited by Pshields1984 on Jul 10, 2017, 3:22 PM)


Edit Log:
Post edited by Pshields1984 (New User) on Jul 10, 2017, 3:22 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives