Search Results

Search: Posts Made By: TinCanFury
10,786
Posted By TinCanFury
requesting help again, thanks!
requesting help again, thanks!
2,135
Posted By TinCanFury
regexp help
I'd like to know if there is a catchall line for renaming the following patterns:

s01e03 -> 01x03
s4e9 -> 04x09
s10e08 ->10x08

and possibly even:
318 -> 03x18
1002 ->10x02
if its the first...
10,786
Posted By TinCanFury
anyone know why this is failing?
anyone know why this is failing?
3,663
Posted By TinCanFury
well that was it, the original source of the...
well that was it, the original source of the information was from a dos file. I ran dos2unix on it and ran the script and it worked fine.




I'll have look into it, thanks for the help!
3,663
Posted By TinCanFury
I'm running linux, why would I have DOS carriage...
I'm running linux, why would I have DOS carriage returns?



yea, except I don't really know how to use sed outside of how I've used it.



repeated sed was indeed to do basically all that....
3,663
Posted By TinCanFury
yes, sorry, forgot to show what that output,...
yes, sorry, forgot to show what that output, which was basically the tracknumber and the tracktitle, ie:

(from memory, i believe there were some spaces before the 02, but nothing else if anything).
12,135
Posted By TinCanFury
there is a command called sleep do a man...
there is a command called
sleep

do a man sleep
3,663
Posted By TinCanFury
weird echo output?
#!/bin/bash

INPUT=$1
if [ "$INPUT" -lt "10" ]
then
INPUT=0$1
TRACKNUMBER=$INPUT
fi
TRACKNUMBER=$INPUT
echo "Track Number:" $TRACKNUMBER


if [ ! -e...
10,786
Posted By TinCanFury
because I get this as the output:
because I get this as the output:
29,734
Posted By TinCanFury
I tried that, didn't work, quoting as a whole...
I tried that, didn't work, quoting as a whole string did though. don't know why/what the difference is though.
10,786
Posted By TinCanFury
how to? launch command with string of command line options
my description from another thread...


here's my code:
#!/bin/bash
IFS=$'\n'

function OutputName() {
input=$1
echo $input
input=`echo "$input" | sed -e...
29,734
Posted By TinCanFury
ah, didn't realize I could quote...
ah, didn't realize I could quote ${TRACK}:$SRTFILE all in one. thanks!
29,734
Posted By TinCanFury
BASH: how to launch a program with parameters
Hi, I'm a pretty big fan of BASH scripting. I've got a bunch I use for random things and lately a couple issues have been plaguing me.

Both are somewhat related, in that they deal with filenames...
Showing results 1 to 13 of 13

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