General :: Separate Lowercase And Uppercase In File?

Jun 14, 2010

I have a file partially like this

209 c 89
215 a 76
603 B 190
626 f 240

I want to separate this file into two sub-files based on the lowercase and uppercase of column 2 so that the sub-files are like

file1

209 c 89
215 a 76
626 f 240
file2
603 B 190

View 4 Replies


ADVERTISEMENT

General :: Translate Lowercase File Names To Uppercase?

Nov 26, 2010

Kernel 2.6.21.5, Slackware 12.0

As a result of having mixed files from different filesystems, I have, in directory foo/, files with filenames in uppercase and files with filenames in lowercase. If I want to convert them to all uppercase how do I do it? Consider this will be later recorded into optical discs.

View 7 Replies View Related

General :: Convert All File Extensions For Files In Many Sub-directories From Uppercase To Lowercase?

Sep 21, 2010

I'm trying to convert all file extensions for files in many sub-directories from uppercase to lowercase. I have two problems, how to list the absolute path to the files recursively over many sub-directories for which I so far have this:-

Code:
find ~/Photos -print which would be fine, except it gives the directories on their own when it finds them rather than just the files with absolute paths. I couldn't find a switch for the "ls" command to do this, so I had to improvise with "find". and once I get grab each absolute file name, to just change the file extension rather than the entire file, which is what I have at the moment.

[Code]..

View 7 Replies View Related

Programming :: Convert Files Names From Uppercase To Lowercase And Vice Versa?

Mar 26, 2011

shell script to convert file names from UPPERCASE to lowercase file names or vice versa in linux

View 6 Replies View Related

General :: Mounting CDROM With File And Directory Names In Uppercase?

Mar 25, 2011

We have an application that on a SCO box that we are converting to Linux.Basically it mount a CDROM drive and pulls data files off of it. We can mount the drive and it displays all the file/directory names in uppercase. Is there a way to do it in Linux?

View 2 Replies View Related

Software :: Force Thunar To Use Lowercase For Desktop / Music / File System

Jul 27, 2011

Is it possible to force Thunar (in xfce4) to use all lowercase for the special directories it manages: Desktop, Trash, and "File System"?

View 2 Replies View Related

General :: File Name In Separate Column?

Apr 26, 2010

I have some series of files, which actually named bellow

<day_month_yr>_<hh:mm:ss>.<host_name>.<IP.ip.ip.ip>.<log_name>.txt

I want to show this file name below the column may be

Date Time Host_Name IP_address Login_Name
----- ---- --------- ---------- ----------
<day_month_yr> <hh:mm:ss> host_name x.x.x.x log_name
...

View 5 Replies View Related

General :: Each Mail To Be In Separate File?

Mar 10, 2011

Is it possible to do in Linux each mail be in single file. For example: i am having all the mail in /var/mail/root.

Quote:

From root@localhost.localdomain Thu Mar 10 21:47:47 2011
Return-Path: <root@localhost.localdomain>
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p2AGHlx4004190

[code]....

is it possible to do every mail when i receive it not store in the /var/mail/root. and need to be store like /var/mail/root1(for firs mail) and for another mail would be store in diff file like /var/mail/root2(for second mail)

View 3 Replies View Related

General :: Keyboard Mapping - Lowercase 'v' Is Not Working

Oct 7, 2010

I have quite a strange issue with (supposedly) my keyboard mappings.

while using GNOME session:

lowercase 'v' is not working as it should - no keypress is reaching apps; while I'm holding V key depressed, gnome-terminal console shows a hollow cursor (just like when input focus is in some other window) and nothing is printed; uppercase 'V' is working just fine (that is Shift+V); if I press AltGr + V, a lowercase 'v' is printed; if I'm typing quickly, sometimes pressing V key to get a lowercase 'v' is not just being ignored, but also the next symbol typed is swallowed and not printed out; this issue is present for the USA keyboard layout, as well as for the Russian keyboard layout.

while using TTY console (Alt+Ctrl+F1, etc):

everything works as it should (i.e. lowercase ' is printed whenever I press it);
no problems with the physical keyboard.

I haven't done any editing of any gnome/X configs and/or keyboard mappings.

This is my Ubuntu 10.04 Linux version:

$ uname -a
Linux hostname 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux

Update - stty output:

$ stty -a
speed 38400 baud; rows 43; columns 151; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;

[Code]....

View 2 Replies View Related

General :: Search The Root With Everything Treated As Lowercase First?

Jan 6, 2011

I would love to see if there is a way in linux that if I have forgotten the command name and would like the search the entire root using "find" command but I am not sure of the case sensative of the command name (eg. VBoxManager or vboxmanager). So how can I search the root with everything treated as lowercase first? or is there a regular expression to search?

View 4 Replies View Related

General :: Logging SSH In A Separate File Other Than The Regular /var/log/messages?

Apr 13, 2011

Generally SSH related log messages are logged in /var/log/messages file. Is there a way to log them in another different file? I mean is there some configuration setting to enable this?

View 7 Replies View Related

General :: Logging Ssh Messages In A Separate File Using Syslog-ng?

Jul 2, 2011

I am facing a problem while trying to log SSH messages in a separate file, say, /var/log/ssh_logs. I have tried modifying the syslog-ng.conf file as follows:

filter f_ssh { facility(auth, authpriv) and match("sshd[[0-9]+]:"); };
destination d_ssh { file ("/var/logs/sshd_logs"); };
log {

[code]....

But still I am not able to get the ssh logs in the new file. They continue to go to /var/log/auth.

View 1 Replies View Related

General :: Parse A Line From A File And Place The Values Into Separate Variables?

Sep 28, 2011

I am trying to parse a line from a file and place the values into separate variables:

input.txt:

Code:

CreateVegaFeed-20110928-before-skip-start

this is the code i have done so far:

Code:

$input_file="input.txt"
INPUT_FILE=`cat $input_file`
for i in $INPUT_FILE

[Code].....

View 14 Replies View Related

General :: Explanation Of Command To Uppercase First Letter Of Filename

Jun 10, 2010

I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want to understand the meaning of each command. The command is:
for i in *; do new=`echo "$i" | sed -e 's/^./U&/'`; mv "$i" "$new";done
I understand the 'for' kinda... but not the 'echo' or '`' and especially the sed command.

View 4 Replies View Related

General :: Extracting A Bzip2 File Throws "Can't Guess Original Name" And Does Not Extract Separate Files

Dec 13, 2010

I made a bzip2 file by

bzip2 -c /home/os/picture1 > /home/os/Desktop/pic.image

bzip2 -c /home/os/picture2 >> /home/os/Desktop/pic.image

But now extracting pic.image by bzip2 -d /home/os/Desktop/pic.image returns

bzip2: Can't guess original name for pic.image -- using pic.image.out

And then it just creates one file pic.image.out.

How do I access picture1 and picture2 from pic.image?

View 2 Replies View Related

Fedora :: Hostnames - Upper Or Lowercase ?

Aug 26, 2011

What is the general feeling for the case of hostnames in Linux/UNIX, is it preferable to have them in lower-case or upper-case? I have always preferred them as lower-case but I am interested to see if there are any arguments for or against this practice.

View 1 Replies View Related

Ubuntu :: Separate Evolution User File?

May 4, 2011

I use U.10.4. I have to take over the work of another, but all I have is the Hard Drive from that machine. Because the two positions are separate, I do not want to Import his Evolution over my own - but, I do want to be able to access it from my machine. Can my Evolution refer to the old hard drive (now in a caddy and non-bootable) for the Evolution account data that is there, while still being able to switch back to my own Evolution data on demand. E.G. in Windows the equivalent would be the way that Outlook can refer to different .pst files at loading. Alternatively, can I make the external USB drive (previously a running main HDD) bootable without losing all of the data?

View 3 Replies View Related

Software :: Create A DVD With A Separate Chapter For Each .avi File?

Mar 2, 2010

I use DeVeDe a lot, and it works great for general conversion and DVD authoring. I don't know, however, how to create a DVD such that each of the original .avi files will be their own chapters. In other words, I have about six or seven .avi files (episodes of a season of a television show) and I want to create a DVD with those episodes that I can navigate separately. Do I first convert each .avi? How then do I create a single DVD with six or seven chapters/episodes?

View 2 Replies View Related

Ubuntu :: How To Put `hostname` In Uppercase

May 3, 2010

How i put `hostname` in uppercase in this case:date +"%Y%m%d%T" > date_`hostname`.txt Best wishes,Andr Barradas

View 3 Replies View Related

OpenSUSE :: Lowercase 'e' No Longer Works In Terminals

Feb 20, 2010

For some reason, just shortly ago, the terminals, konsole, etc. will not accept the lowercase letter 'e' as input for some reason, not even when pasting, e.g.

a paste of file:///usr/share/applications/kde4/konsole.desktop

becomes fil:///usr/shar/applications/kd4/konsol.dsktop

on the command line. Weird.

For everything else I have tried at this point on the computer, the lowercase letter 'e' is just fine (this message being an example);Has some configuration file for terminals (konsole, xterm, Yakuake) or whatever got messed up and I need to correct it?

View 9 Replies View Related

Ubuntu :: Cannot Type Lowercase 'L' In Gnome-terminal

Feb 4, 2011

A few minutes ago, without any apparent reason, my gnome-terminal started refusing acceptance of lowercase 'L'. When I hit the 'L' key, the menu toggles between visible and hidden. Note, this is lower case 'L', not uppercase.

View 1 Replies View Related

Server :: Redirect To Lowercase Directory Apache ?

May 4, 2011

just wondering, if i type in a url like this:

how can i get it to direct to:

View 1 Replies View Related

Ubuntu Multimedia :: Separate Vocals From Audio File?

Jun 10, 2010

I'm looking for a program that will allow me to remove the vocal from an audio file, and also provide the ability to remove background noise (as much as possible). I have an audio recording for a presentation we did at work recently, but the quality of the recording is not the best and there is quite a bit of background noise. I would like a way to clean up the file and amplify the vocals. I tried to use Audacity for this, but couldn't get it to work. Has anyone used a software program that provides this ability?

View 1 Replies View Related

Server :: Putting IP Blocking In A Separate Conf File?

Jan 1, 2010

Running Red Hat (not sure of the build atm) and I need to be able to put all of the IP blocking in a separate file. It will eventually be uploaded to a large number of hosting accounts, and modified from time to time...so it isn't feasible to modify that many httpd.conf files each time we need to add an IP to be blocked. In httpd.conf I can add the "Deny from" line to the following directive and blocks it just fine:

Code:

<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

[code]....

There is an include to pick up all *conf files in ../conf.d, and everything else in there is working just fine. I created a file called robots.conf; it currently has a set of mod_rewrite rules which work. So I added this to that file:

Code:

<Directory "/var/www/html">
Order allow,deny
Allow from all
Deny from 123.456.789.098
</Directory>

It is not blocking access from the IP with it in there.I've done all of the usual things; restarted Apache, cleared browser cache etc. I can also block it using that same directive in a local .htaccess.

View 2 Replies View Related

Programming :: Extract Extra Packages In A Separate File?

Mar 6, 2009

I have two files containing list of packages using

Code:

dpkg --get-selections > file-name
command.
package-a.txt

[code]......

Now I would like to create a third file which contains only those packages which are present in package-a.txt but NOT in package-b.txt. The file should look like this:

Code:

package2
package4

Note: The world "install" is also to be removed for all packages. Using diff command I could get something like this:

Code:

temp# diff -yb package-a.txt package-b.txt | grep "<"
package2 install <
package4 install <
<
temp#

But not sure how to remove instances of "install" and "<".

View 3 Replies View Related

Ubuntu :: File Wont Delete On Separate Hard Drive?

Feb 15, 2010

I have a file on a separate hard drive and it wont allow me to delete it.how I navigate to it in the terminal so I can remove directory there? I plug my usb lead in and go /hoome/boo/Iomega_HDD (name of the hard drive)but I cant get there,it doesnt show up as a directory.

View 3 Replies View Related

Server :: Using Separate File Systems For Swap And / While Installing Servers?

Dec 16, 2009

I am still puzzled by IT guru who still install a server version of Linux using the default partition system. I am curious about what the IT guys in this forum think about this, even when the server is part of a cluster.

View 1 Replies View Related

Software :: Calling DB User From Separate File In Shell Script?

May 23, 2011

I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want to call it in the test.sh in Path B.

Format of File A.txt
Username=test_db
Password=*****
Instance=ORACLEDB

View 3 Replies View Related

Fedora :: Change Certain Letters In Filenames To Uppercase?

May 22, 2010

I'm working on changing some badly named files, lots of them. I have a little script I use to change uppercase to lowercase:

[Code]....

Bear in mind all these files have appropriate numbers in the front of each filename. I need help to change ONLY the first letter after each underscore to an uppercase letter. I'm sure this can be done but I've done so much searching in forums and with Google/linux until I'm scrambled.

View 2 Replies View Related

Server :: How To Allow Uppercase Username For Auto Login?

Jun 3, 2009

I have users created in Linux box with lowercase name, from one of my DB team from AS400 server they are trying to run a script from which they could only pass usernames only in "uppercase".
my question is how to allow the username if it comes in uppercase in linux (note: lowercase user shhudnt be changed to uppercase as well we shudnt add new user in uppercase)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved