04-19-2012
Hi, Thanks for that quick response, well the idea here is the application were using to read these files will only read them in uppercase thanks to the vendor. I tried your find command, but the problem there is that it would capitalize the entire path and not just the filename. I hope this makes sense!
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: Alex20
5 Replies
2. Shell Programming and Scripting
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)
Discussion started by: salman4u
6 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: wtolentino
1 Replies
4. Shell Programming and Scripting
Hi,
I have the following file:
/* ----------------- ADP2DAILY_Box ----------------- */
insert_job: ADP2DAILY_Box
job_type: b
owner: mbprwork
permission: gx,wx
date_conditions: 1
days_of_week: mo,tu,we,th,fr
exclude_calendar: mtg_holidays
start_times: "1:00"
description: "Process Daily... (4 Replies)
Discussion started by: ramky79
4 Replies
5. Shell Programming and Scripting
Hi,
how to convert user input (lowercase) to uppercase in the dos batch file ?
echo.
SET /p user1=Enter username:
SET user2=%user1%V
echo.
echo %user1%
echo.
echo %user2%
echo.
With Regards (7 Replies)
Discussion started by: milink
7 Replies
6. Shell Programming and Scripting
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)
Discussion started by: swikar
1 Replies
7. Shell Programming and Scripting
Hello Guys,
I am writing a script which check each line for how many Uppercase and Lowercase letter of a given file. Please check my script as follow:
l=0
while read line
do
echo Line `expr $l + 1` has ` tr -cd "" < $line | wc -c` uppercase letters and
`tr -cd "" < $line | wc -c`... (3 Replies)
Discussion started by: kasparov
3 Replies
8. Shell Programming and Scripting
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)
Discussion started by: nikki1200
2 Replies
9. Shell Programming and Scripting
i want to display all the files which has their names in the Uppercase in a particular directory...guide.. (6 Replies)
Discussion started by: sheelsadan
6 Replies
10. Shell Programming and Scripting
I have a file name :
var=UsrAccChgRpt
I want to make them upper case.
Tried:
$var | tr
Error:
tr: Invalid combination of options and Strings.
Usage: tr | -ds | -s | -ds | -s ] String1 String2
tr { -d | -s | -d | -s } String1
Could you please help. I am using AIX... (2 Replies)
Discussion started by: digioleg54
2 Replies
LEARN ABOUT POSIX
modules-load.d
MODULES-LOAD.D(5) modules-load.d MODULES-LOAD.D(5)
NAME
modules-load.d - Configure kernel modules to load at boot
SYNOPSIS
/etc/modules-load.d/*.conf
/run/modules-load.d/*.conf
/usr/lib/modules-load.d/*.conf
DESCRIPTION
systemd-modules-load.service(8) reads files from the above directories which contain kernel modules to load during boot in a static list.
Each configuration file is named in the style of /etc/modules-load.d/program.conf. Note that it is usually a better idea to rely on the
automatic module loading by PCI IDs, USB IDs, DMI IDs or similar triggers encoded in the kernel modules themselves instead of static
configuration like this. In fact, most modern kernel modules are prepared for automatic loading already.
CONFIGURATION FORMAT
The configuration files should simply contain a list of kernel module names to load, separated by newlines. Empty lines and lines whose
first non-whitespace character is # or ; are ignored.
CONFIGURATION DIRECTORIES AND PRECEDENCE
Configuration files are read from directories in /etc/, /run/, and /lib/, in order of precedence. Each configuration file in these
configuration directories shall be named in the style of filename.conf. Files in /etc/ override files with the same name in /run/ and
/lib/. Files in /run/ override files with the same name in /lib/.
Packages should install their configuration files in /lib/. Files in /etc/ are reserved for the local administrator, who may use this logic
to override the configuration files installed by vendor packages. All configuration files are sorted by their filename in lexicographic
order, regardless of which of the directories they reside in. If multiple files specify the same option, the entry in the file with the
lexicographically latest name will take precedence. It is recommended to prefix all filenames with a two-digit number and a dash, to
simplify the ordering of the files.
If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to /dev/null
in the configuration directory in /etc/, with the same filename as the vendor configuration file. If the vendor configuration file is
included in the initrd image, the image has to be regenerated.
EXAMPLE
Example 1. /etc/modules-load.d/virtio-net.conf example:
# Load virtio-net.ko at boot
virtio-net
SEE ALSO
systemd(1), systemd-modules-load.service(8), systemd-delta(1), modprobe(8)
systemd 237 MODULES-LOAD.D(5)