Search Results

Search: Posts Made By: mingch
5,966
Posted By mingch
Hi nezabudka, Thanks for your help, but I found...
Hi nezabudka,
Thanks for your help, but I found 1.txt does not change to 2.txt, please help again. Many thanks.
OLD file is /tmp/path13/1.txt, NEW file is /tmp/path13/12.txt



BNFILE=$(echo...
5,966
Posted By mingch
I tried to create the following scripts but it...
I tried to create the following scripts but it can't increment the last number from 012 to 013, anyone help? Many thanks.


#!/bin/sh
cat file.txt | while read FN
do
FNPATH=${FN%/*}
...
5,966
Posted By mingch
I am a beginner in shell script, thank you very...
I am a beginner in shell script, thank you very much indeed.
5,966
Posted By mingch
Thanks for your reply ------ Post updated at...
Thanks for your reply

------ Post updated at 02:43 AM ------

And I want to increment a Variable but it doesnt work.
How can extract digits at the end of a string and increment variable value...
5,966
Posted By mingch
How can I extract digits at the end of a string in UNIX shell scripting?
How can I extract digits at the end of a string in UNIX shell scripting or perl?
cat file.txt
abc_d123_4567.txt
A246_B789.txt
B123cc099.txt
a123_B234-012.txt
a13.txt


What can I do here?...
Showing results 1 to 5 of 5

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