Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Combine files with same extension in new file

by AhmedABdo (Acolyte)
on Oct 01, 2015 at 10:38 UTC ( [id://1143513]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Combine files with same extension in new file
in thread Combine files with same extension in new file

Thanks for answering me. yes as you said, it takes the output.txt file and run it as input. I added unlink 'output.txt'; before the "for my $file (glob '*.tsv')" as you said, but this time nothing happened and even did not make output.txt file. Thanks
  • Comment on Re^4: Combine files with same extension in new file

Replies are listed 'Best First'.
Re^5: Combine files with same extension in new file
by choroba (Cardinal) on Oct 01, 2015 at 11:15 UTC
    Wait, wait, wait... output.txt doesn't match *.tsv. Moreover, if the input files aren't in the current working directory, you have to specify their path, too:
    glob '/path/to/files/*.tsv'
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Sorry it is txt, I just make a mistake by typing and all my files in the same directory. Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1143513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found