|
A new Bie question on Types of shells on different flavours Iam new to shell scripts. Can anybody tell what are all the shell types(bash,Ksh,Csh...) does the following OS supports? Unix-? Linux-? Solaris-? And also when to use which shells? Advantage/Disadvantage of shells compared to other shell types? Thanks and Regards, Vasanth. ... 17 Nov 2005 17:28
Modifying a STRING in C-Shell Hello, first of all I'm a novice in shell programming ! Can someone tell me how to modify a local string variable ? example: set MYNEWVAR=$HOSTNAME echo $MYNEWVAR deliveres e.g. unx123456.de.hh.lincroft.de How can I get only the first part of the string (unx123456) written into MYNEWVAR ? Mike ... 28 Oct 2005 15:07
Extract a substring of n digits from a string I need to extract a substring of n adjacent digits from every single line of a file. The position of the n digits are different from line to line. For example: asdasd 123 asd 191991 1234 lijoioi 4567 asdi 67567 iojoii For n=4 the result for each line must be 1234 e 4567. Thanks in advance, Giacomo. ... 28 Oct 2005 20:39
how to get yesterdays file ? We usually log rotate our weblogs. I am trying to run a cron at 1:30 AM, what this cron does is call a script named "getfile.ksh". This getfile.ksh FTP to the /weblogs folder and get yesterday's file named accesssimple.log, now this accesssimple.log would be log rotated at 12:00AM and the name would be changed ... 25 Oct 2005 17:36
Calculate percentages I am a beginner in UNIX and I want to write a shell script calculating the proportion of one-line comments in any C++ program. Could anyone help me please? Thanks! ... 24 Oct 2005 14:00
wait for background process to stop.... hi! i have a shell script "A" which forks a background process "B" which again forks a background process "C". is there a way to pause my script "A" and continue ONLY after "C" is done? greetings, arash. or another approach: - i want to stop my tomcat using a script - catalina.sh seems to fork another pro... 21 Oct 2005 12:48
get the most recent file based on name and use it Running ksh on Tru64 5.1. In a directory I have a number of files: abc_20051001.zip abc_20051009.zip abc_20050911.zip Each file has the date of its creation as part of the name (yyyymmdd) I am trying to write a script to get only the latest named file (may not be the most recently modified), set as a varia... 12 Oct 2005 09:12
Increment integer using Shell I want to increment a variable without using expr, and using just shell builtins i.e:- VAR=1 VAR=`expr $VAR + 1` I've seen it done before, but can't remember how its done using sh or ksh - any pointers please? ... 10 Sep 2005 07:47
replace single quote by escaped single quote Hi i didn't succeded in replacing a single quote by an escaped one :-/ i do : $ a=`cat myfile` $ echo 'insert into mytable (myfield) values ('$a');" | mysql the probleme is that 'myfile' can contain single quote not escaped.. like myfile=rock'n' roll is very good music ! does anyone could he... 6 Sep 2005 13:36
sed search and replace Firstly - is there a sed newsgroup for me to be posting to? Quick question now :) I have a CSV file which I created by concatenation of multiple files. In some of the files the fields are also delimited with double quotes. 123,ouahfds,12341 "123,"fsdfsd,ewfdw",14324 I'd like to double quote all the fields. Not... 28 Jul 2005 20:34 |