Search Results

Search: Posts Made By: vbslim
6,271
Posted By vbslim
I'm the one who is sorry.. Sorry at coding :)...
I'm the one who is sorry.. Sorry at coding :) That line was a big help!



Just my misunderstanding of what you said earlier.
I thought you meant that any time that a .* was used,
it would be...
6,271
Posted By vbslim
Yep, I figured that out earlier, Its amazing what...
Yep, I figured that out earlier, Its amazing what a -v after bash will do :). Thanks!!!
Also Thank you for the alert link Pererabo.
6,271
Posted By vbslim
while this works: for file in *.flac ; do ...
while this works:

for file in *.flac ; do
metaflac $file --export-tags-to=tmp/tmp.txt
part1=$(awk '{FS="="} /ARTIST/{print $2}' tmp/tmp.txt |sed 's/ /_/g')
...
6,271
Posted By vbslim
Thank you! I belive I understand. The problem...
Thank you!
I belive I understand.
The problem using the find command is that the flac files are
named like this:
01_-_Track_1.flac
and the output file should be
Self_Esteem.flac

Actualy, The...
Forum: Linux 11-27-2007
7,857
Posted By vbslim
/sbin/rc3.d/s57cron stop and start
/sbin/rc3.d/s57cron stop and start
6,271
Posted By vbslim
bash n flac
Hi All
I'm trying to take a .flac file and use metaflac to write
the tag info into a file, Then read the title portion of the tag and rename the original .flac file with this info.

lets call...
2,412
Posted By vbslim
sorry.. my shell environment gets echoed back...
sorry..
my shell environment gets echoed back at me..

test> ./rootf off
+ alias 'rm=rm -i'
+ alias 'cp=cp -i'
+ alias 'mv=mv -i'
+ '[' -f /etc/bashrc ']'
+ . /etc/bashrc
+++ id -gn
+++ id...
2,412
Posted By vbslim
yes, But what I was wondering is, why the...
yes, But what I was wondering is,
why the debug out put was showing the env for root, But it doesnt when ran as any other user
Thanks for your reply
2,412
Posted By vbslim
when running my script below
as root on test files with

!#/bin/bash -x

I get my env echoed back to the screen, Have I wrote code that
is dangerous??
this dosen't show up if ran as non root user
heres what I get back:...
2,118
Posted By vbslim
yes.. thank you... good catch, I thought I read...
yes.. thank you... good catch, I thought I read that all quotes within a command must be escaped...

Thanks again

Here is a working model... any glaring errors?
#!/bin/bash

#work directory...
2,118
Posted By vbslim
I seem to be running in circles any help would be...
I seem to be running in circles any help would be nice


bash$rootftp on


#!/bin/bash -x

#work directory
wdir="/home/web_users/test"

#temp directory
tmpd="tmp"

#original file...
2,118
Posted By vbslim
Humm I found my answer in another post the...
Humm I found my answer in another post the varibles for the text in sed works if a take out the single quotes and replace them with double ones..
sed -e "s/$word/$word2/" $file > $tmpd/$tfile

I...
2,118
Posted By vbslim
question about sed and other stuff
I'm just getting into shell scripting and have run into a problem.

I sometimes need to ftp in as root while I'm SShed in,

rather than going to the ftp conf file all the time to allow root...
Showing results 1 to 13 of 13

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