hi
i have a requirement to input a string to a shell script and to split the string to multiple fields,
the string is copied from a row of three columns (name,age,address) in an excel sheet.
the three columns (from excel) are seperated with a tab when pasted in the command prompt, but when the
string is assigned to a variable, the tab disappears to a space.
code is given below
Code:
echo
i have been playing around with shell scripting, nothing too complex just learning the basics. if i try to run a script as root (by entering "sudo" then the "command") it says command not found. i can only do it ass root if i specify the full path (/home/username/bin/command) im pretty sure the directory that my scripts are in are part of the superusers path.
Hi Experts;
Im in the process of writing a shell script for enabling an IT operations to run archiving.We use netbackup. The script is complete, though there is one bit that i need help on. Im trying to have a progess bar for the procedure.I have gone through the man page of the command in question and there was no hint of it.
Im using the mail command to send emails from my shell. Everything is working fine but i cannot seem to change the sent from name.
Im using the command ...
Hi All,
Below is a sample command that I can run without any problem in the command line.
Command Line
HTML Code:
dtToday=`date +%Y%m%d`; ls -ltr ./filename_${dtToday}.txt
-rw-r--r-- 1 monuser oinstall 0 Jan 18 11:02 ./filename_20130118.txt
But once I put that command line in file (list.txt) and read from it, an error occurs. Pls.
hello,friends/sir this is ranvir,
i'm try to run simple shell script but it showing some error,
thanks
$ vi nestedif.sh
osch=0
echo "1. Unix (Sun Os)"
echo "2. Linux (Red Hat)"
echo -n "Select your os choice [1 or 2]? "
read osch
if [ $osch -eq 1 ] ; then
echo "You Pick up Unix (Sun Os)"
else #### nested if i.e.
Hi, I am new to unix shell script and I have some trouble on the awk sub
I would like to pick the Date "July 10 2012" into $corr_date by using sub() function, but it is not successful.
The inputted text file:
pic.*.txt
July 10 2012 20:30:50 , 1234567.jpg
July 10 2012 20:30:52 , 5648978.jpg
July 10 2012 20:30:53 , 6405789.jpg
Code:
#!/bin/ksh
curr_date=`date +"%B %d %Y"
Hi,
I have several files with name
Code:
b1.root, b2.root b3.root
I want to rename the "b" to "bkg", so finally is should be:
Code:
bkg1.root bkg2.root bkg3.root
I used command:
Code:
rename s/b/bsig/ b*root
Somehow it is working at some place and not working in other folder. I do not have any idea why this would be the case.
Hi
Need help...I have wrritten one code for html through shell scripting in that i am using java scripts to validate some condition and open the html page without clicking the button....
Code Details
Code:
echo "<script type="text/javascript">"
echo "function exec_refresh()"
echo "{"
echo " window.status = "Redi