I was wondering if there is any software to logically reformat shell scripts- for example, like HTMLTIDY does with HTML? or PERLTIDY does with Perl?The reason I'm asking is I am going through a shell script with a 3 page IF-then block.. and what seems like a million smaller if-then blocks within this bigger block. And nothing is formatted, indented, commented to make it easier to figure out.
just wondering is there a simple script to convert datetime to UTC format. I have been searching different forums but most answers are for converting UTC to datetime. For example what is a simple command/script to convert todays datetime to UTC format i.e. '2009-10-09 11:47:59'.
I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3. I have tried the following commands and they all come back as "command not found"
MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 22.214.171.124-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?
my school we want to print a magazine but we have problem with the format of the files. We need to create a sheet in A3 format from two sheets in A4 format. I was reading about the pdftk library but it doesn't do what i need.
Here is my stupid question of the week. I downloaded an ISO image from SuseStudio and it came as a tar.gz and untarred it is a image.raw. How can I create an ISO image with from that format. SoRAW ----> ISO ---> to cdrom or DVD
I thought Linux couldn't do anything with Windows Media Audio files because the format is proprietary. So when a friend sent me a WMA file, I was surprised to find I could listen to it without needing to borrow a Windows-using computer. Is it only recording and saving in WMA format that we can't do? (And is it the same with the Windows movie format (.WMV)?
I have a Foxsat receiver/recorder. It allows me to take of programs to a pen drive up to 4GB. Well actually that is pretty useless when a film comes along. I was told to make my pen drive into an ext3 from a Linux OS. I have now OpenSuse 64bit. HOw can I format my pen drive and make it into an EXT3
I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.
Code: if [ $# -eq 0 ] ; then d=`pwd` for i in * ; do if test -d $d/$i ; then echo "$i:" code....
We are in the process of backing up our hard drives to Blu Rays. I am creating tar.gz files and burning them to Blu Ray.Is it possible to use a simple (preferably Python-based) solution for creating images of those tar.gz files, of a predetermined size (to fit in the Blu Ray), and simply burn this images to the disc?Do you have any other approach for creating physical back-up of your hard drives?
Opensuse 11.4 seems to be creating problems with booting from USB devices. (I have read in a couple places that people are having similar problems.)
Every time I try to boot from a different live USB image, I see a GRUB screen flash and the hard disk starts to boot up. The only live image I have had success with booting was another OpenSuse 11.4, then I got the options to install or run live. I was thinking of just wiping the hard disk and seeing if that made a difference. Can I get into the grub limited command line, can i format from here? Is some other way of installing over the WAN from inside the Suse OS?
I have a problem I hope you can help me with. I have an Ausus EEEpc 4G with a 4GB SSD I DO NOT have an external CD/DVD but I DO HAVE an external USB hard drive I also have the orignal restore DVD in ISO format
I have a USB thumb drive that I just partitioned using the 'fdisk' utility in Linux. Now I am trying to learn the command that will allow me to format the drive as 'fat32' while also setting the disk label on the device as "ocz_usb" when the drive gets mounted. Does anyone know the command I would use that will format the USB drive and properly set the disk label at the same time?
I was reading Linux Format a few minutes ago. They have an article in May 2011 (LXF144) issue called, 16 Thing We Would Change About Ubuntu. One suggestion mentioned is that Ubuntu change from debian to rpm package format. Could someone please tell me why rpm is better? I have only tried an rpm distro a couple of years ago with Mandriva and with a live-cd now-and-again. But, I never have used one long enough to experience why it might be better. Why is rpm better? Or, are those folks at LXF wrong?