10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2. Shell Programming and Scripting
i am trying to redirect a file wherein i need to change the extension of the file from .sh to .tmp, but getting an error
sh test.txt > path/$(basename "$a" .sh).tmp
---------- Post updated at 02:09 AM ---------- Previous update was at... (3 Replies)
Discussion started by: rohit_shinez
3. Shell Programming and Scripting
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
4. Shell Programming and Scripting
I have a directory that contains several files, out of which some files are have an extra extension for example
i want to write a shell script that rename all such file with only single extension like
file1.new... (7 Replies)
Discussion started by: mukulverma2408
5. Shell Programming and Scripting
Is there a command that can switch a character variable from UPPER case to lower case?
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
Thanks a lot! (3 Replies)
Discussion started by: rockytodd
6. Shell Programming and Scripting
i have a data array as followes.
i need all english letters to be change to lower case. So i am expecting to see
If i have to copy this data in... (8 Replies)
Discussion started by: usustarr
7. UNIX for Dummies Questions & Answers
I searched the forum, but there was different type of rename.
I have files in folder.
and how to rename or change file extension case to
or (5 Replies)
Discussion started by: Sheldon
8. Shell Programming and Scripting
I have a status.txt file which contains following three files.
Now i have written a shell script 1.sh which contains the following
cat status.txt | while read filename
case "$filename" in
echo "running 1.xml"
... (3 Replies)
Discussion started by: sunitachoudhury
9. Shell Programming and Scripting
Hello, my first post!
I'd appreciate help with this script, I'm new to this.
I have a media directory where I want to batch convert image file names from .img to .iso.
I've tried but get:
./img2iso2.sh: line 13: syntax error: unexpected end of file :(
This is my... (10 Replies)
Discussion started by: Astrid
10. UNIX for Dummies Questions & Answers
I hope someone can help me with this problem :
I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus :
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Discussion started by: steve7