Skip to main content

How to insert a name of the file as a header of a file? [Resolved]

Example: File name: ENSG00000000003

ENSG00000000003 43120.829491094
ENSG00000000005 39604.4956791524
ENSG00000000419 7645.05624570546
ENSG00000000457 2157.49855156382
ENSG00000000460 3317.98417717746
ENSG00000000938 6327.40515535397

Expected output; ideally, the filename is preceded by a tab:

    ENSG00000000003
ENSG00000000003 43120.829491094
ENSG00000000005 39604.4956791524
ENSG00000000419 7645.05624570546
ENSG00000000457 2157.49855156382
ENSG00000000460 3317.98417717746
ENSG00000000938 6327.40515535397

I want to do this in loop for my 45000 files together


Question Credit: Priya
Question Reference
Asked May 13, 2019
Posted Under: Unix Linux
11 views
1 Answers

Your Answer
D:\Adnan\Candoerz\CandoProject\vQA