General :: Software To Format Shell Scripts?

Feb 28, 2011

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.

View 4 Replies


Ubuntu :: Timestamp Format - Shell Versus Cron Job

Jun 16, 2010

Setup: 10.04 server with "bash" as /bin/sh
When I run "ls -l" in a shell I get the following format:

-rw-r----- 1 syslog adm 0 2010-06-13 06:53 /var/log/user.log
Whereas if "ls -l" executes from a cron job the format is:

-rw-r----- 1 syslog adm 0 Jun 13 06:53 /var/log/user.log
Notice the different time format. Now I could fix this by changing the cron job to

ls -l --time-style=+%Y-%m-%d %H:%M ...
but I'm interested in knowing why this behavior occurs. What's different between the cron job and the shell?

View 1 Replies View Related

General :: Simple Script To Convert Datetime Format To UTC Format?

Oct 9, 2009

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'.

View 10 Replies View Related

General :: Format A USB Hard Drive To Vfat Format But Can't?

Sep 15, 2010

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"

mke2fs vfat /dev/sc1
fdisk vfat /dev/sdc1
mkfs.vfat /dev/sdc1

What am I doing incorrectly?? Can someone please point me in the right direction??

View 6 Replies View Related

General :: Change One Time Format To Other Format?

Jun 21, 2010

the time format i have used is %m:%d:%Y:%H:%M:%S eg- 06:21:10:13:29:18 and i want to convert it to 2010-06-21 13:29:18..

View 4 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver #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.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

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?

View 3 Replies View Related

Fedora :: Create A Pdf File In A3 Format From Two Sheets In A4 Format?

Apr 7, 2010

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.

View 4 Replies View Related

Ubuntu Multimedia :: Converting Any Video Format To 3gp Format?

Jul 21, 2011

converting videos to 3gp format.

i have installed transmaggedon software but it fails to convert because quicktime muxer plugin is not installed.

This plugin is not available in the repositories.

How can i get this video converter to work or what else can i do to be able to convert videos to 3gp format?

View 2 Replies View Related

General :: How To Format A Pen Drive

Aug 3, 2011

My pendrive has become read only. I want to format it using Linux - how do I do that?

If I run mkfs.vfat devsdc1, it doesn't work.

View 2 Replies View Related

General :: Burning Raw Format To ISO?

Mar 22, 2011

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

View 8 Replies View Related

General :: How To Format A 3 TB Harddisk

Jun 20, 2011

I just bought a western digital of 3 TB. Unfortunately Gparted gives error. Gparted can create a about 2TB+1TB, but when it is the whole disk, it does not work.
I tried JFS and EXT4.

My kernel is code...

View 3 Replies View Related

General :: Windows .wma Format ?

Apr 6, 2010

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)?

View 4 Replies View Related

General :: Format Pen Drive To Ext 3?

Jan 22, 2011

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

View 3 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

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?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

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.)

View 2 Replies View Related

Software :: Export A Variable To Parent Shell In Shell Scripting?

May 21, 2009

Is there a way to export a variable to parent shell in shell scripting ?

View 3 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

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.

if [ $# -eq 0 ] ; then
for i in * ; do
if test -d $d/$i ; then
echo "$i:"

View 10 Replies View Related

General :: Best Format For Backing Up Data In Blu Ray

Jan 25, 2010

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?

View 1 Replies View Related

General :: Format A Disk From GRUB?

Apr 11, 2011

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?

View 1 Replies View Related

General :: Want To Format Bash Errors

Jun 8, 2011

I am using Fedora 14 and when I am executing a file:

asd #assuming this command does not exist

I am getting following error:
/path/to/file: line 2: asd: command not found

I want to format it so it outputs error in same way as it would when it was executed from terminal:

$ asd
bash: asd: command not found

View 1 Replies View Related

General :: Orignal Restore DVD In ISO Format?

May 30, 2010

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

View 4 Replies View Related

General :: Tutorial To Format In Vi Editor?

Sep 20, 2010

I need a tutorial on how to do formatting in the vi editor. I looked in google, but couldn't find much. Formatting as in bold, font, font size, center text, etc.

View 8 Replies View Related

General :: Format The Output Of The Ps Command?

Aug 27, 2010

i am running ps xo "pid,command" but I can't find my process in the results. I know that the process is running because I run ps ax | grep command-name

View 4 Replies View Related

General :: GLABELS And Changing The Format To PDF?

Mar 12, 2010

I have downloaded GLABELS and noticed that when it was time to save, it will not allow you to save it as a pdf or anyone other format. Is there any tool or trick to do what I need to do?

View 1 Replies View Related

General :: How To Mount A Ntfs Format

Jul 1, 2010

how to mount an ntfs formate in linux??

View 6 Replies View Related

General :: Label And Format USB Drive?

Jun 16, 2010

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?

View 3 Replies View Related

General :: Why Is Rpm Better Than Debian Package Format?

Apr 6, 2011

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?

View 3 Replies View Related

Copyrights 2005-15, All rights reserved