Search Results

Search: Posts Made By: Joule
2,690
Posted By phoenix_nebula
bash-3.2$ cat test4 ABC_20101.2A.2010_01 ...
bash-3.2$ cat test4
ABC_20101.2A.2010_01
ABD_20103.2E.2010_04
ABE_20107.2R.2010_08
bash-3.2$ sed 'p;s/\..*$//g' test4 |xargs -n2 echo mv
mv ABC_20101.2A.2010_01 ABC_20101
mv...
2,690
Posted By zaxxon
As I noticed you seem not to process a text file...
As I noticed you seem not to process a text file with those names, I added a 2nd block below, working on directory entries ie. files. You could just convert the echo into a mv like:

$> for file in...
Showing results 1 to 2 of 2

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