Summary: I like to know how to remove '$' from a $ variable. I create a script, a.sh as below: #!/usr/bin/ksh a=`echo $1 | cut -d"\$" -f1` b=`echo $1 | cut -d"...
Summary: Dear Sir, I am also under a similar problem as you. I have loaded linux madrake which has become the boot loader. After loading from the Linix boot se...
Summary: I would like to know how to test from a windows2000 workstation whether a specific port on an AIX server is accepting connections or not. For example,...
Summary: I was wondering if/how you can parse a variable to a function within a unix script (BASH). What I'm trying to do is print lines from my script to a fi...
Summary: First - you probably realize that the 'i' variable in the scanf should have a '&' in front of it: scanf("%d",&i); To read from a file using scanf: i...
Summary: While playing around with other commands, I managed to create a file named -l. when I do rm -l, of course it thinks that -l is an argument. I can't f...
Summary: Hi There, Does anybody know how to remove commas from specific locations from within a data file? For example, in the data file below: - Emp_Num B...
Summary: This is shell script. This is the code to add a person. I need help to remove a record by id. The menu will ask for ID when the person enters the id i...
Summary: Hey Diego and everyone, we have an HP-UX box at work and i'm running into a challenge, i figure since it relates a bit to your problem i might just po...
Summary: is there a way to replace the nth field in a variable in awk? e.g. given a variable in awk: Var="1,23,3,4" i need to replace the 3rd field(assuming de...
Summary: Hi All, I have a data file that looks like this: Ebsc_cp10|13590|6268|AB1308|"3734"|2|1 Ebsc_cp10|13590|6269|AB1308|"3735"|2|1 Ebsc_cp10|13590|6270|AB...
Summary: Hi, I have file like this: ====================== 1232 asdasds: 121 wefefsedfsd asdsd !34234 sdfdf 43423 fdsfsd 423434 end =================== I w...
Summary: when I did "w", the username didn't show up then I tried "who", it showed up but the IP was hidden ?? Is anyone here know how to do that ? ...
Summary: How to determine whether a file that you want to use exist or not using 'test' which gives return value when '$?' is typed? eg: if the file exist, the...
Summary: What are the databases? Do you want to connect to them from a shell/perl script or C/Java program, or is this an Oracle/Sybase/Informix/MySQL question...
Summary: how to pass a variable from unix environment to oracle procedure ? ex: actual_file_name=`head -1 $IMINT_OWBHOME/temp|tail -1` $ORA_BIN_HOME/sqlplus $I...
Summary: Seems like these are two different issues here: 1. how to set variables in your shell; this may depend on the type of shell, my examples are for ksh, ...
Summary: How can we put this value to a shell variable (in C Shell)? {print "I'm OK"} I've tried: set mystr="{print \"I'm OK\"}" set mystr='{print "I\'m OK"}' ...
Summary: Even after removing if statement also my variable is not assigned inside the script Try to give solution: in order to assign the value of a variable ...
Summary: Taken directly from the man pages of rm > man rm Users often wonder how to deal with filenames that begin with ``-'', since arguments that begin with ...
Summary: Hi guys this my sample file sample.ksh DBUID=testdatabase DBLOC=wm4r2 i want replace DBUID=testdatabase by DBUID=$myvariable (i.e myvariable=arundata...
Summary: I need to calculate the Yesterday's date and received a good code from Unix forum. I need to assign the yesterdays Date (MONTH and DATE eg. 1229 for D...