Search Results

Search: Posts Made By: rohit_shinez
4,690
Posted By rohit_shinez
Hi Don, I agree with your point so is there...
Hi Don,

I agree with your point so is there a best way to tune the code, Like remove header from only the file which ends with _01.txt and copy to respective folders before i copy to destination...
4,690
Posted By rohit_shinez
Thanks But yours wont work because there is no...
Thanks
But yours wont work because there is no header like unique and in property file there is no header string like that i need to remove the header from source file before copying
4,690
Posted By rohit_shinez
Hi don, Once i have copied i wil remove the...
Hi don,

Once i have copied i wil remove the files or i will move the files from filepath to temp path and remove the header from that temp path
4,690
Posted By rohit_shinez
Hi don, Before I copy I need to change the...
Hi don,

Before I copy I need to change the source files which ends with _01.txt I.e. To remove the header
4,690
Posted By rohit_shinez
The thing is I wanted to modify in my existing...
The thing is I wanted to modify in my existing code itself where sed '1d' will remove the header file or similar to any other approach. Moreover I am not able to see copying commmand in your code
4,690
Posted By rohit_shinez
Hi Rudic, Thanks for your inputs, can this...
Hi Rudic,

Thanks for your inputs, can this be modified in my code which runs in bash


something like this

sed '1d' $file > $file
4,690
Posted By rohit_shinez
Hi Rudic, To answer your below question ...
Hi Rudic,

To answer your below question

You want to copy all files whose names contain a string from the property.txt file, and remove the header line(s) from those who end in _01.txt? - Yes...
4,690
Posted By rohit_shinez
To check the file and remove header before copying
Hi Guys,

I have below directory where there are certain files. Something like below

country_dir

aus_01.txt
nz_01.txt
aus_02.txt
bd.txt

property.txt
aus
nz
bd


I need to remove...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy