It will only accept one argument where it should be upper or lowercase. if user choose to convert filnames to upper case than it should convert to upper or vice versa. if no action taken by the user then should not do anything
any of the files in the current directory. (5 Replies)
Hello,
can sed be used to convert all letters of a file from uppercase to lowercase and vice versa?i know tr command can be used but with sed is it possible?
i came up with this :-
sed 'y///' file1
actually the above command is also not working! Please help me. Thanks in advance :) (6 Replies)
i have this piece of small code that checks for *.CSV files.
NUMFILES=`ls -1 *.CSV | wc -l`
for filename in $(ls -1 *.CSV)
do
...
done
it works only if the files has an uppercase of *.CSV extension. however, when there is a file of the same type but has lowercase *.csv... (1 Reply)
listprocs.sh contains ps -ef | grep "swikar"
1) Write a shell script to convert an input file to all upper case. Name your shell script toupper.sh.
Hint: tr ' ' ' ' will convert all lower case letters to upper case
To use your script, try the following command:
cat... (1 Reply)
Hi All,
I'm a newbie here, i'm just wondering is it possible to convert into uppercase the records in specific field?
ex.
table name = mytable
field1 field2 field3
abd erfdF fdsfdsfsd
how can i convert into uppercase the field2 using sybase?
Please advise,
... (2 Replies)
Hi,
I need to copy files from a source directory to a destination directory in unix.
I'm using the file::copy for the actual copy.
The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Hi All,
So I'm new to scripting and I've been put in a position to convert a bunch of files with specific extensions in a folder and all its subfolders to uppercase including their extension. I figure so far I could do something like this:
...
...
and then input $line into another bash... (12 Replies)
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
case
case(3) Library Functions Manual case(3)NAME
case - convert ASCII uppercase bytes to lowercase
SYNTAX
#include <case.h>
void case_lowers(s);
void case_lowerb(s,len);
int case_diffs(s,t);
int case_equals(s,t);
int case_starts(s,t);
int case_diffb(s,len,t);
int case_startb(s,len,t);
char *s;
char *t;
unsigned int len;
DESCRIPTION
case_lowers converts each uppercase byte in the string s to lowercase. s must be 0-terminated.
case_lowerb converts each uppercase byte in the buffer s, of length len, to lowercase.
case_diffs lexicographically compares lowercase versions of the strings s and t. It returns something positive, negative, or zero when the
first is larger than, smaller than, or equal to the second. s and t must be 0-terminated.
case_equals means !case_diffs.
case_starts returns 1 if a lowercase version of s starts with a lowercase version of t. s and t must be 0-terminated.
case_diffb lexicographically compares lowercase versions of the buffers s and t, each of length len. It returns something positive, nega-
tive, or zero when the first is larger than, smaller than, or equal to the second.
case_startb returns 1 if a lowercase version of the buffer s, of length len, starts with a lowercase version of the string t. t must be
0-terminated.
The case routines are ASCII-specific. They are suitable for programs that handle case-independent networking protocols.
All comparisons are performed on unsigned bytes.
SEE ALSO byte_diff(3), byte_equal(3), str_diff(3), str_equal(3), str_start(3)case(3)