Search Results

Search: Posts Made By: mc2z674gj
2,786
Posted By mc2z674gj
i mean can i put a variable like t = text after "...
i mean can i put a variable like t = text after " -- "
and put the variable in the code
perl -lne '{$Tget=$_;s/$/ -- variable t/;rename "$Tget","$_";}'
2,786
Posted By mc2z674gj
ls * | perl -lne '{$Tget=$_;s/\./ -- ttgductoog...
ls * | perl -lne '{$Tget=$_;s/\./ -- ttgductoog ggdté gollogtd./;rename "$Tget","$_";}'this script works perfectly for files, how can i change the occurrence "ttgductoog ggdté gollogtd"
when this...
2,786
Posted By mc2z674gj
Renaming files & folder according to the similarities in filenames
hello

does someone want to help me for this one ?


i want to rename files & a folder according to the similarities in filenames


for example :

the file with the good name
cglogo...
4,169
Posted By mc2z674gj
thanks for your helpings to all, i really...
thanks for your helpings to all, i really appreciate it !
4,169
Posted By mc2z674gj
for inversing strings delimited by "--" in...
for inversing strings delimited by "--" in filenames, this script works perfectly !

that put the last string to the beginning & vice versa

---------- Post updated at 07:12 PM ----------...
4,169
Posted By mc2z674gj
that's what i want to ask you after the...
that's what i want to ask you after the precision, do you want to help to understand a little bit of your script

what are the meaning of

$p
$1
$F[0]
$F[1]
4,169
Posted By mc2z674gj
the directories looks like this : aabbccdde...
the directories looks like this :

aabbccdde -- ffgghh iijjkkll5566778
to
5566778 aabbccdde -- ffgghh iijjkkll

sometimes there's only one string
aab55ccddeeffgghh6677
to
6677...
4,169
Posted By mc2z674gj
ls *ext | perl -F"--" -alne '{if($#F==1){ ...
ls *ext | perl -F"--" -alne '{if($#F==1){
if($F[1]=~/(\d+).ext/){ $p=$1;$F[0]=~s/^/$p /g;$F[1]=~s/$p//;print "mv \"$_\" \"".join(" -- ",@F)."\"" ;}
else {...
4,169
Posted By mc2z674gj
for i in *[0-9].ext do file=$(echo "$i" |...
for i in *[0-9].ext
do
file=$(echo "$i" | awk -F "" '{for(i=1;i<=NF;i++){if($i ~ /[A-z]/){s=""}else{if($i == "."){print s}else{s=s?s""$i:$i}}}}')
file_name=$(echo "$i" | awk -v RPL="$file"...
4,169
Posted By mc2z674gj
Renaming by manipulating strings
hello

does someone want to help me for this one ?


i want to rename file by inversing parts of filenames separated by the delimiter "--"



sometimes filenames have three strings :...
2,491
Posted By mc2z674gj
this script works perfectly !
this script works perfectly !
2,491
Posted By mc2z674gj
thanks for your helpings to all, i really...
thanks for your helpings to all, i really appreciate it !
2,491
Posted By mc2z674gj
if i use find . -type f -exec grep -wil...
if i use find . -type f -exec grep -wil "\(translated from\)" {} \; -exec mv {} {}.translated\ from \;

i got the right thing regardind to the command and the filename become (les...
2,491
Posted By mc2z674gj
here is a example of text file, as you can see...
here is a example of text file, as you can see before the first 20 lines there is the occurence (translated from)
and after (Denis Roche)

so for that file the filename need to become :
les...
2,491
Posted By mc2z674gj
renaming according to text search
hello

does someone want to help me for this one ?


i want to rename text file with something written in that file
so far i've used grep in the first 20 lines of the text, to find these...
Showing results 1 to 15 of 15

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