Search Results

Search: Posts Made By: snr_silencer
3,038
Posted By Don Cragun
If you're unwilling to use: ...
If you're unwilling to use:
fn="/oracle1/scr/tilki/willsendtilkiNew/VOICE-MO_$nfname.gz"
mv -v "$fn" "${fn%.dat.gz}.txt.gz"you could use something like:
mv -v...
3,038
Posted By RavinderSingh13
Hello, Welcome to the forum, please use...
Hello,

Welcome to the forum, please use code tags for commands and codes.
Following example may help you in same.

Let us say we have a file named filedat, then we have saved dat value in a...
3,038
Posted By protocomm
with keep the logic of snr_silencer, you forget...
with keep the logic of snr_silencer, you forget the double quote around command echo

"$(echo $nfname.gz | tr 'dat' 'txt')"
3,038
Posted By Don Cragun
If you are trying to change the string ".dat" to...
If you are trying to change the string ".dat" to ".txt" in a filename, tr is NOT the way to do it. The command:
tr 'dat' 'txt'
doesn't just change the string dat to the string txt, it changes...
Showing results 1 to 4 of 4

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