6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am wanting to test that an argument passed is one of tstt11/2/3, tstq11/2/3 or tstp11/2/3 and I am currently doing it as below.
Just wanting to know if there is a more 'elegant' way of doing this :-)
arg_inst=`echo $1 | awk '{ print tolower($1) }'`
if ] then
echo "-... (2 Replies)
Discussion started by: newbie_01
2 Replies
2. Shell Programming and Scripting
Hello,
Please find an ugly code. bouuu.
It shall work onto RAM only to update from the last 10 strings from $URLTO. I shall read first : "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"
The code works but it is very ugly. How could it be made elegant please?
Thank you
... (2 Replies)
Discussion started by: french00b
2 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I have two questions. First, I was wondering how to use sed to remove two header lines or two tail lines. Here I just do the same operation twice...I'm sure there is a better way. Second, and more importantly, is there a better way to have these operations use files other than... (5 Replies)
Discussion started by: mikey11415
5 Replies
4. Solaris
We have a generic user account "user1" setup on Solaris 8 that is used by an application. I dont want users to telnet/ssh using this account. Instead if they want to gain access, they must su or sudo to this after logging in with their own ID.
My earlier attempts to accomplish this by disabling... (7 Replies)
Discussion started by: boshyd
7 Replies
5. Shell Programming and Scripting
I am faced with a situation where I have directories of gunzipped contents bundled into a tar file. It might look something like this.
x coop/batch/bin/ha90x20.gz, 632641 bytes, 1236 tape blocks
x coop/batch/icm/HA90X20.icm.gz, 1821 bytes, 4 tape blocks
x coop/batch/aeenv.gz, 4117 bytes, 9 tape... (2 Replies)
Discussion started by: scotbuff
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a script which gets its input from a text file (file.txt) and processes each line within a loop.
I have a counter which increases by one and I want something to happen every 7th, 14th, 21st, etc. line read.
Currently the code looks and works perfectly like this:
... (3 Replies)
Discussion started by: candyflip2000
3 Replies