Search Results

Search: Posts Made By: Sheldon
33,401
Posted By Sheldon
I want that script to work file by file. Not...
I want that script to work file by file.

Not all files. At the moment it changes all png files for example.

I dont want simple solution. I want a bit advanced solution like that script, but...
33,401
Posted By Sheldon
#!/bin/sh fromext="$1" toext="$2" ...
#!/bin/sh

fromext="$1"
toext="$2"

usage () {
echo "Usage: $0 fromext toext"
echo "Example: $0 htm html"
}

if [ -z "$1" ] || [ -z "$2" ]
then
echo "Too few arguments."
usage
...
33,401
Posted By Sheldon
Thanks that is good but maybe someone has more...
Thanks that is good but maybe someone has more solutions ?
33,401
Posted By Sheldon
Shell script to rename or change file extension case.
I searched the forum, but there was different type of rename.

Hello.

I have files in folder.

Like:

xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz

and how to rename or change...
Showing results 1 to 4 of 4

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