Search Results

Search: Posts Made By: netfreighter
29,256
Posted By Kelam_Magnus
How to grep in order based on the input file
Here is an answer rather than a question that I thought I would share.

In my first attempt, I was using grep to find a list from file.1 within another file, file.2 which I then needed to paste...
16,939
Posted By bartus11
This should work: awk...
This should work: awk '{f=$1;sub("-.*\\.","_"$2".",$1);system("mv "f" "$1)}' file-with-filenames
16,939
Posted By bartus11
Is it literal contents of the file containing...
Is it literal contents of the file containing filenames? file-abcd.pdf #to be renamed [tab] 123456789 #the new filename
file-abce.pdf #to be renamed [tab] 809809231 #the new filename
Or is it just:...
Showing results 1 to 3 of 3

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