Programming :: Convert Files Names From Uppercase To Lowercase And Vice Versa?
Mar 26, 2011shell script to convert file names from UPPERCASE to lowercase file names or vice versa in linux
View 6 Repliesshell script to convert file names from UPPERCASE to lowercase file names or vice versa in linux
View 6 RepliesI'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]..
I'm developing a C++ application which is run on linux. I need to calculate epoch time for a given date and vice versa. (no of seconds elapsed since 1979-01-01) I used the following two methods.I need to convert the given date to epoch time and again convert that epoch time to the corresponding date.But the following methods doesn't give me the correct answer. Method to calculate the epoch time:
Code:
time_t HistoryCache::ConvertTimeToEpoc(const char* _zTime,const char* _zFormat)
{
struct tm tmTime;
strptime(_zTime,_zFormat, &tmTime);
[code]....
My problem is this. Lets think that the value I get as epoch time for the 2010-01-05:000000 is 1262649600. (lTime value) Then I use the same value (1262649600) as a input to the GetTimeStamp method, I didnt get the dateString as 2010-01-05:000000. The date is changed by one day.
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.
I have Windows and Linux machines on the same subnet. My router configuration correctly tells me both their machine names, and their IP addresses. However, when I try and ping a Linux machine from a Windows machine, or ping a Windows machine from a Linux machine, I need to use IP addresses rather than names. If I'm pinging a Windows machine from a Windows machine, or a Linux machine from a Linux machine, the machine name correctly resolves without any hosts file entries. Why is this?
I would have thought my router (D-Link DIR-655) would act as a DNS server itself. I see it has an option called "Enable DNS Relay", but from what I've read this won't help me. If it's relevant, the DIR-655 is used for internal traffic, with my ISP's Netgear DGN1000 used as a gateway to the Internet. It's on a different subnet though, and all my machines connect to my DIR-655, not the DGN1000. What do I need to do to have host names automatically resolved within my subnet regardless of the operating system that they're running?
I'm looking for a way to distribute files to customers and vice versa via web. What I'd like to find is a program that allows a user to upload a file to a web server and then email a link to the file to the recipient. It would have to be secure of course.
View 3 Replies View Relatedthe sign in java of how to write less than or equal to and vice versa
View 13 Replies View RelatedI have just recently setup our network with an Ubuntu server which is being accessed by one Ubuntu workstation with nfs, & one XP workstation with Samba. Following instructions from the web, I set permissions like this:
sudo chmod 777 /media/Data sudo chown -R curley:curley /media/Data The problem is that files created in Samba are locked from nfs & vice/versa. I am assuming I need to add the nfs network share to the Curley group or use something more global than curley to make this work?
Samba is working ok from Ubuntu when browsing through Nautilus, but there is no access to shares when doing things like uploading or downloading files to the web (the "save file" window only shows local folders). So I guess I wouldn't mind just using Samba if I could map a folder in Samba to solve that problem.
I have nokia 3110 i want send some files from desktop to mobile but i dont know how to enable blutooth and use it
View 3 Replies View RelatedI 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
How can I do some socket programming using which I can send some data from a linux system to a windows system and vice versa. Can we do that using the IO:Socket:INET perl module??
View 10 Replies View RelatedI noticed that there's small incoming and outgoing network activity every 10 or 20 seconds, example: Is this the OS telling the router that the connection is still alive and vice-versa?
View 3 Replies View RelatedSo I have a desktop and a laptop running ubuntu. I would like to be able to ssh from laptop to desktop or vice versa. How do I set this up?
View 1 Replies View RelatedI have an Nvidia GF 9600GT video card, and am running the proprietary drivers. The video card supports both 24-bit and 16-bit colour depth, and works with whichever I set up in xorg.conf as a DefaultDepth value.
However, I would like to switch the bit-depth "on the fly", i.e. without restarting X, just like I'm able to change the screen resolution (e.g. with xrandr). Is this possible? If so, how, and if not, why?
I am using mnemosyne [URL]... for my Spanish vocabulary and I would like to add some dictionaries so that I won't have to type it all in myself. There are several English-Spanish dictionaries, but the problem is I would like it German-Spanish or vice versa. Does anybody know where I can find some?
View 5 Replies View RelatedIs there an odt=>doc or doc=>odt converter out there that is free software? (preferrably in the repositories).
View 5 Replies View RelatedI set a domain name in the U 9.10 PC. It has Samba 4 installed because I needed to connect it to a W7. Do I need Samba to connect to another Ubuntu?
How do I set a domain in U 10.10?
When deleting a rule, when is better to use DROP instead of REJECT and vice versa? Also, please provide some basic info. for the use of MASQUERADE??
View 3 Replies View Relatedhow can I use text-voice and vice-versa using python , one that looked on Python's Burrow (python.org):[URL]
View 1 Replies View RelatedI have Ubuntu 10.04 Lucid Linux and i Love both KDE and Gnome but how can i stop there apps from conflicting?
View 1 Replies View RelatedI had a look through a tutorial video showing how to set up Samba, and the end result was the only shared file/folder showed up on Windows. I want a direct access to all the files and folders like you can do from Windows to Windows, by signing in the user account from another system. And likewise I want access to all Ubuntu files and folders of a user account through Windows.
how if it's possible with or without Samba.
Ok this is a really weird issue because of the way it played it out. I have been researching it off and on for weeks now trying to figure it out and have come up with nothing. Basically when I first installed Ubuntu 10.10 (64 bit) I was able to access the shared files on my Windows 7 (64 bit) computer perfectly once I changed the domain name in Samba. However I wasn't able to access my Ubuntu shares from Windows 7. After researching for a while to figure that out, I found this:[URL]... Boom! Instantly I could access my Ubuntu shares without a problem from Windows 7.
However after I did this something happened where I could no longer access Windows 7 files from Ubuntu. Unfortunately I am not sure if the change happened immediately or some time later. When I go Places > Network I see the name of my Ubuntu computer (Living-Room) and my Windows computer (Nick-PC) as well as a folder called "Windows Network." When I open Nick-PC it brings up a dialog box saying a password is required. There are three text entry fields and a couple option:
Username: Nick
Domain: NRAU
Password: [not filled in]
_ Forget password immediately
_ Remember password until you logout
_ Remember password forever
The password field has to be filled in and I have tried every option. Each time it thinks for a second and then just pops the same dialog box again.
The title says it all: I have two folders which I share in Ubuntu (10.10), one of them is "public", so I set it to allow guests to create/move/delete files in the folder. Then there is my mother's PC running Windows XP Professional (also one shared folder with write access). When I was using Windows 7, I could create/delete/edit files on my mother's shared folder but now, using Ubuntu, I can only read from it. Same with the shared folder in Ubuntu, I can only read it from XP but not write to it.
View 6 Replies View RelatedI have a machine running linux with 3 ethernet interfaces attached.
My Ifconfig:
My route output:
eth0 is attached to a laptop, eth1 is attached to a PC. eth2 is attached to a DSL modem, and the server is successfully acting as my internet gateway. The trouble is, my PC cannot see my laptop and vice versa. E.G. cannot ping, host seems down.
The task I am trying to complete is the virtualization of an IPv6 router created using two fedora machines. Here is the physical setup I have now...
PC1:eth0 <------> network
PC1:eth1 <------> PC2:eth0
PC1:eth2 <------> PC2:eth1
PC1 runs radvd to provide router advertisements to the network and a DHCPv6 server for stateful addresses.Each interface is configured on a separate subnet. PC2 runs a DNS server on eth0. PC2:eth1 is used as an IPv6 client for testing purposes. The connections from PC1 to PC2 are just crossover cables.I've created virtual machines of both PCs and have created 4 virtual adapters on the host machine for each of the local-only interfaces.Now I have this:
PC1:eth0 = HOST eth0
PC1:eth1 = HOST vboxnet0
PC1:eth2 = HOST vboxnet1
[code]....
I'm a Windows person and will soon be tasked with UNIX/LINUX projects. I'm trying to learn as much as possible in a very short period of time. I'm very familiar with VMPlayer and VirtualBox. Recently I installed OpenSUSE 11.3 as a guest OS on VMPlayer (bridged network). The host is WinXP. I have also enabled shared folder to the host @ CRepositoryInstalls. Question - How do I access the shared folder from OpenSUSE (the guest OS) and vice-versa?
View 2 Replies View Related1. I need a script(like a scheduled cron job) which should perform Automatic copy (backup) of a directory from ubuntu server to windows and vice versa....
i tried every thing like samba mounting,ftp,etc..with samba its possible to map the network drive of an ubuntu directory in windows..but if the ubuntu server is not available then i cant access the network share..
Exactly this situation is happening for me while backing up tmp directory of ubuntu server ...
so in this case i need a permanent backup of tmp directory of ubuntu server in windows rather than a network share.
2. Also any ideas or scripts regarding automatic ftp (while doing a backup) from ubuntu server to windows... which can easily solve the above issue...
I'd like for the server (10.04) to keep samba passwords and unix passwords "in sync"; i.e. when a user changes his unix password (via passwd), his Samba password is automatically changed to match the unix password. Similarly, when a user changes his samba password (via smbpasswd), then his unix password is changed to match. smb.conf seems to make provision for this; following are the applicable entries from my smb.conf:
Code:
obey pam restrictions = Yes
pam password change = Yes
[code]....
i have just installed fedora core 12. my pc has 2 lan adapter. 1. onboard rhine. 2. intel card. os has given eth0 to onboard card and eth1 to intel but i want eth0 to intel card and eth1 onboard card.
View 9 Replies View RelatedI am an heavy user of VNC, i use it to connect to my home computer from university and vice versa using a reverse ssh tunnel. Now, the screen at my university pc is using an higher resolution than the one of my laptop, so I can see only part of the screen. How can I address this? so that I can see full screen? Also, RDP works quicker than VNC, is there any setting I could use to speed up VNC?
View 5 Replies View Related