Topic profile page for Bash script.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Bash script.
Topic "Bash script" was discussed 0 times on 0 sites in last 3 months
Started 1 day, 14 hours ago (2009-12-23 17:52:00)
by tjones1105
Hello, Is there some way to validate a bash script before running it. I want to make sure all of the syntax and everything is good so that I dont get a false return code. Thanks, tom
Started 1 day, 22 hours ago (2009-12-23 10:06:00)
by dexitlv
Well, i red through out all the posts i possibly could finf, searched google etc, and I still can't find a solution to my painfull porblem Heres the noobish script : Code: #!/bin/bash clear; TITLE="----------- LinRar ------------" echo $TITLE echo "Enter full path to your .r00 file" read DIR echo "Checking..." echo rartest...
Started 2 days, 15 hours ago (2009-12-22 17:22:00)
by smeezekitty
disclamer: This bash script will try to mount evreything in the /dev directory as a filesystem. i am not responsable for damage or data loss from the use of this script. Ok, i know it is a unsecure and stupid idea, But... i want to make sure it mounts evreything that is mountable...trouble is...it does not work. Code: #/bin/bash _DIR=`pwd` cd /mnt if [ "$?" = "1" ]; then MOUNTDIR=/...
Started 4 days, 5 hours ago (2009-12-21 03:19:00)
by m4rtin
"snmpwalk -v 2c -c public 192.168.1.1 1.0.3.45.23.2.1" will print me a list(about 15 names, but may vary) of network interface names to stdout(most of those names ae multi word names). I would like to make a script, which puts a serial number(1,2,3,4,5,etc) before each interface name printed to stdout and then the script should wait for user input. The user input has to be one of those serial ...
Started 4 days, 15 hours ago (2009-12-20 16:54:00)
by rrrssssss
Hello programming forum, I hope I am not wasting your time with this playful bash script I saw here: http://www.linuxforums.org/forum/lin...ll-script.h tml The bash script really fascinates me when it is dropped into a terminal window. The Bible verse automatically types itself in the terminal window and then quits. I would like it to repeat itself endlessly, perhaps with a space in ...
Started 1 week ago (2009-12-17 16:29:00)
by Keesdejong
Hi, I want to become more familiar with Shell scripting. So I started to make a simple script to start with. But I can't get the comparison expression right. I want to create a basic script that will rename all *.jpg pictures to *.jpeg pictures. I read some basic tutorials, skimmed the 'man test' and tried allot of combinations with the comparisons. Without any success, below is my script so ...
Started 1 week, 2 days ago (2009-12-15 15:01:00)
by mandelbrot333
I've got something to this effect: Code: read -n1 -p "Continue? (y/n)" if [[ $REPLY == [yY] ]] then printf "" && cp -prv $WODI/* $OTHERDRIVE && chown -R mail:mail $MAIL/$userdir && echo -e "Files copied from '$WODI/' to '$OTHERDRIVE/' and chowned 'vmail:vmail':" else die "Exiting..." fi if [[ ! -L $WODI ]] then ...
Started 1 week, 3 days ago (2009-12-14 12:52:00)
by XDan
I have to make a script that will prompt the user for a source file then a destination file and then copy the source to the destination. This is what I have so far: Code: #!/bin/bash echo -n "Enter the name of the source file: " read source if [ -f $source ]; then echo "The source file does not exist. No action taken." else echo -n "Enter the name of the destination ...
Started 3 days, 22 hours ago (2009-12-21 10:41:00)
by catkin
The bash select command would allow the user to choose by typing in a number rather than a string and would thus be easier on the user and less error prone.
Started 1 day, 17 hours ago (2009-12-23 15:19:00)
by dexitlv
Quote: Originally Posted by rweaver The full code for a bash script that cat them into one file would be more or a less the for loop i posted plus "&& unrar e filename" Could you please post the link ?
Started 2 days, 7 hours ago (2009-12-23 01:07:00)
by gnashley
There can be thousands of devices under /dev, so it would be slow. Only a few types of devices will be for filesystems. I'd concentrate on those and skip the others: for device in sd* hd* ub* etc, etc
Started 1 week ago (2009-12-17 17:01:00)
by aspnair
You dont need to do that much of shell script to rename jpg to jpeg, just use the rename program just like any command on the shell Code: Select all rename 's/\.jpg/\.jpeg/' * rename is a perl script. If you want to use shell functionality instead of a program you could also do the following from the shell, line after line Code: Select all for file in *.jpg; do echo $file ${...
Started 4 days, 14 hours ago (2009-12-20 18:25:00)
by kdelover
Just added a small GUI window to sasha script. Code: #!/bin/bash here () { command="For God so loved the world that he gave us His only son and whosoever believes in Him should never perish but have everlasting life." cmdlen=${#command} echo -n ">> " position=0 while [[ $position -lt $cmdlen ]] do echo -n "${command:$position:1}" sleep 0.3 position...