Hi, I'm just new here, looks like there is alot to read.
I need some help on a simple script that i would like to make, and I honestly have zero experience with shell scripts or anything, so i have no idea what I am doing.
I want to have a script that I can upload to to my webhosting account, and then login via shell and run the script.
I need the script to copy two files from different folders, to a folder that I input. Then I need it to rename the two files.
So basically, i need the script to ask me what folder i want it to copy the files to, then i type the folder i want, then it copys the files and renames them.
I tried making the script myself, but failed, no surprise there. Here is what i made, feel free to laugh
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hello,
Ubuntu server 11.10
can anybody help what is problem with my shell script?
#!/bin/bash
#script to find out currently logged on user is root or not.
if ]
then
echo "You are super"
else
echo "You are awesome!"
fi
When I run script, I get following output
./uid: line 3:
I... (4 Replies)
hi!i am musician and have very little knowledge about shell
here's my script
#!/bin/bash
for (( ; ; ))
do
wget some wikipedia article here --output-document=- > /dev/audio
done
so it downloads random wikipedia page (forum doesnt let me post link so i wrote some wikipedia article here... (6 Replies)
Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
1. Logon to Linux.
2. Create a directory "Unix" under your home directory.
Command(s): ………………………………………….
3. Create four... (1 Reply)
Hello All,
I have attempted to write my first complex (to me) backup script. I am offering it to any and all who may find it useful but would like to refine it as well. I'm using it to backup a Mac OSX Lion Server to a USB Raid5. The script is actually comprised of a daily and a weekly script... (3 Replies)
I am trying to find a way to display just sudoers, passwd and shadow files without the extensions..
Thank you for any suggestions
ls -lrt /etc | egrep 'sudoers|passwd|group|shadow'
-r-------- 1 root root 1338 Oct 31 2006 shadow.sav
-r-------- 1 root root 5191... (4 Replies)
Can someone help me write this shell script?
I am completely new to shell and as a fun task my uncle has challenged me a problem (out of all other people). Basically, all he wants me to do is to create backup file in a folder that is named “disables.”
This is what he said: create a shell script... (0 Replies)
script is:
dirname= "$(date +%b%d)_$(date +%H%M)"
mkdir $dirname
should create a directory named Nov4_
Instead I get the following returned:
root@dchs-pint-001:/=>./test1
./test1: Nov04_0736: not found.
Usage: mkdir Directory ...
root@dchs-pint-001:/=>
TOO easy, but what am I... (2 Replies)
Hi all,
I am a newbie to unix programming using C..
So i would like to have a few simple C programs to start off with..
I wanted programs on learning ,
abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg
It would be really great if i can have... (1 Reply)
How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty?
Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)