Search Results

Search: Posts Made By: imonkey
1,825
Posted By agama
Assuming you pipe the output of ls to this awk,...
Assuming you pipe the output of ls to this awk, it will generate the move commands to rename the files. It's bare bones and doesn't do any error checking, so validate the commands it generates...
3,524
Posted By agama
Try something like this: find "$1" -name...
Try something like this:


find "$1" -name "*$ext" | while read fname
do
path="${fname%/*}"
base="${fname##*/}"

echo "path: $path"
echo "base: $base"
echo "filename: $fname"...
2,099
Posted By itkamaraj
$ sed -e 's/.*ABC//' -e 's/XYZ.*//' test ...
$ sed -e 's/.*ABC//' -e 's/XYZ.*//' test
N204867362
C2039458
2049583

$ cat test
ABCN204867362XYZ.jpg
ABCC2039458XYZ.jpg
ABC2049583XYZ.jpg
5,544
Posted By guruprasadpr
Hi basename basefilename_lengthone.sh .sh...
Hi


basename basefilename_lengthone.sh .sh | sed 's/.*_//'

Guru.
Showing results 1 to 4 of 4

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