Search Results

Search: Posts Made By: steviefordi
2,311
Posted By steviefordi
Or... find <path> -name '*.zip' -type f ...
Or...

find <path> -name '*.zip' -type f -newer <temp> -exec basename '{}' \;
3,000
Posted By steviefordi
I believe you also have to give the file(s) to...
I believe you also have to give the file(s) to rename. You can use wildcards to have the shell expand for you...

rename .txt .doc *.txt
3,000
Posted By steviefordi
Whilst I'm sure the above answers work perfectly,...
Whilst I'm sure the above answers work perfectly, if you have it installed I like the rename command:

rename abc xyz *Will replace the first occurennce of abc with xyz in all filenames matching...
7,262
Posted By steviefordi
My apologies haaru, when I gave you the grep line...
My apologies haaru, when I gave you the grep line to quote I meant it to be on the code you posted originally.

I understand that other people helping you has probably led you down other routes now...
7,262
Posted By steviefordi
Ok another thing to try - What is the exit...
Ok another thing to try -

What is the exit status of the grep line when EachLine2 contains the empty string. I think that it is failing and causing your loop to exit.

Personally I would add...
7,262
Posted By steviefordi
Assuming you are using bash, find out the exit...
Assuming you are using bash, find out the exit status of this line:

echo "$EachLine2""\t"="\t"Unknown >> lcells_names_$1.txt

by echoing $? directly after it.

I think because EachLine2 is...
1,406
Posted By steviefordi
This hideous looking command should do it: ...
This hideous looking command should do it:

ls track_* | \
sed 's/\(track_\)\([a-z]\{3\}\)\([0-9]\{2\}\)\(_[0-9]\{3\}\).txt/\2\3\1\4.txt/g' | \
sort -M | \
sed...
Showing results 1 to 7 of 7

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