1,817 Topics

Member Avatar for
Member Avatar for mememariam
0
60
Member Avatar for vmohariya

Hi All, My Profile is of Solution integration,Moreover i work on Solaris OS System, But i like to learn Scripting Part to devlop my competence,Would you please suggest any Good Book or documents. So that I can start the learning of Scripting for Solaris. Also i like to ask what …

Member Avatar for JeoSaurus
0
83
Member Avatar for dancks

I was supposed to write a program that reads and writes phone numbers of people to a file called phones.txt. The reading part works. The write part doesn't. I tried to use the cat command because I thought doing cat >> file.txt would simply append to a file. What it …

Member Avatar for dancks
0
371
Member Avatar for BTW8892

This is what I currently have so far. The script needs to Add, Edit, Search, and View the address_file. Any help would be greatly appreciated. [code] trap "rm ./f 2> /dev/null; exit" 0 1 3 addressfile=~/address_file loop=x while test $loop = "x" do clear tput cup 3 12; echo "Address …

Member Avatar for L7Sqr
0
83
Member Avatar for iamthesgt

I was writing a makefile for a web interface program that installs the cgi scripts to a (Linux) OS. The makefile works fine, but it needs to be able to install to different directories for different distributions (Fedora, Ubuntu). On Fedora, the scripts need to go to /var/www/cgi-bin and on …

Member Avatar for iamthesgt
0
1K
Member Avatar for vignesh viki

i want to give a filename in commandline itself and want to check whether it is a directory are not.shall i use this command if [ -f $filename ]

Member Avatar for vignesh viki
0
58
Member Avatar for SakuraPink

Hi everyone, I am trying to write a shell script in which my variables take their values from a text file. The text file looks like the following: [CODE][0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] One can say it is a large file so what I need to do is to write: [CODE]variabledin = [0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] In …

Member Avatar for SakuraPink
0
236
Member Avatar for vignesh viki
Member Avatar for L7Sqr
0
60
Member Avatar for D19ERY

I need help writing a script called stats, which provides the user with useful information about the status of their system. The user should run this by typing stats at the command prompt. The output should be displayed immediately on stdout . Anyone able to help me?

Member Avatar for L7Sqr
0
246
Member Avatar for vignesh viki

. Write a shell script to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether …

Member Avatar for L7Sqr
0
248
Member Avatar for usustarr

I have a .ksh script does a system call as follows. [CODE] recoveryProgram auto > /dev/null MYRESULT=$? if [ $MYRESULT != "0" ] ; then # If 'recovery' failed releaseBrokenStation $SYSTEM emailFailure fi[/CODE] Sometimes, this system call (recoveryProgram auto) gets hung. I would like to be able to have a …

Member Avatar for Fest3er
0
766
Member Avatar for iamthesgt

This is homework. I have to write a bash shell script using awk to process three delimited text files and produce a formatted report. The three files are as follows: [CODE]GRADES file John Bunyan:90:100:75:60 Maria Montessori:80:90:60:82 Alice Cooper:75:80:54:47 Harvey Mudd:89:45:89:95 PROJECTS file test1:30 test2:30 paper2:20 exam:50 LEVELS file A:89.5 B:79.5 …

Member Avatar for Fest3er
0
299
Member Avatar for Dark2Bright

Hi everybody, I'm sorry If I ask a silly question. I have a simple code like this [CODE]#!/bin/bash verify() { // do something return $(grep -q 'VERIFICATION SUCCESSFUL' result.txt) } if [ verify 'a Condition' ]; then echo debug fi[/CODE] I have the following error: [QUOTE]line x: [: verify: unary …

Member Avatar for JeoSaurus
0
93
Member Avatar for bossman5000

I need help please.write a shell script that will take the information from two files and combine into another file I created both files in vi. file1 David 734.854.5643 Roberto 313.432.4532 Sally 267.423.5412 Mary 435.432.7654 Ted 324.642.6743 Alice 234.576.3245 Frank 342.465.6754 second file file2 Roberto Tuesday 2 Sally Monday 8 …

Member Avatar for tudloiako
0
428
Member Avatar for begyu

Hello, I need help in the following problem: I have this datarow 0 23 43 67 123 345 565 342 100 42 12 1 0 0 23 43 67 123 345 565 342 100 42 12 1 0 I want to filter out those columns, which are out of the …

0
88
Member Avatar for BTW8892

Hello, I've created a simple menu that will execute some commands, and display them on the screen. However, when I try to execute them in the menu, nothing appears. I was not sure if I went about this the right way. Any help is appreciated. [code] trap "rm ./f 2> …

Member Avatar for JeoSaurus
0
556
Member Avatar for Zwiebi

Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in. Here is an example: /home/UserA is …

Member Avatar for Zwiebi
0
230
Member Avatar for roshan_iiita

Please tell me how can I master Shell Scripting or check many amazing shell script applications as wherever i search i find the same things. Now i am getting bored and want to learn something new. Isn't there any book or link which has advanced applications of shell scripts ?

Member Avatar for dbashell
0
386
Member Avatar for hencre

hi, I need a script to discover proxy computers with access to Internet within my LAN ? Thanks in advance

0
55
Member Avatar for Variable86

Hi,I have a problem with this exercise compress all the directories that don't contain at least one file used in the last 15 days , with the same name of the directory thank you

0
59
Member Avatar for itengineer7

hi, how can i pervent from crontab concurrent run ??? thats mean when my crontab Take too long , with this crontab another crontab not runs... please help me ...

Member Avatar for L7Sqr
0
140
Member Avatar for pennywise134

Hey guys, I'm trying to create another shell script that does the following, but I am not sure where to start. Any help would be greatly appreciated! •Reads student name, address, city, and email and phone number from the keyboard with meaningful headings for each of them on separate lines. …

Member Avatar for JeoSaurus
0
94
Member Avatar for bossman5000

Write a shell script that will accept any number of command line interger parameters a d do the following....I have to use a if statment for the lowest and highest values??? Determind the lowest and highest values? Determind the sum of all parameters entered?

Member Avatar for bossman5000
0
199
Member Avatar for pfm200586

hello every one I have a problem that drove me crazy last couple days I know I have to use loop structures but I can't figure out how to put the right pieces together. I'm not asking for a complete answer because I want to learn so please help me …

Member Avatar for L7Sqr
0
914
Member Avatar for pennywise134

Hey guys, I am trying to write a shell script that does the following: •Display the user a prompt to enter his name •Read the name •Display the user a prompt to enter his age •Read the age •Display the message as “Hello, your name is …… and your age …

Member Avatar for nikita.
0
101
Member Avatar for Triarmsponors
Member Avatar for bossman5000

write a Unix shellscripthat will take the information from two files and combine into another file I created both files in vi and they are file1 David 734.854.5643 Roberto 313.432.4532 Sally 267.423.5412 Mary 435.432.7654 Ted 324.642.6743 Alice 234.576.3245 Frank 342.465.6754 and the second file is file2 Roberto Tuesday 2 Sally …

Member Avatar for L7Sqr
0
212
Member Avatar for Awais Ali

hy guyz, I want to create a windows 'shell'(CLI based) in C++ (like Windows cmd) which has ability to Create folder or file, copy and paste and delete folders or files... So plz help me and tell me the which libraries will use because i have no idea about this. …

Member Avatar for thines01
0
64
Member Avatar for pfm200586

Hello everyone, I have this little for loop that I want to convert to a while loop. It accepts unknown number from the command line parameters and then add them all up and display the sum, here is the for loop: [CODE]sum=0 for x in $* do sum=`expr $sum + …

Member Avatar for L7Sqr
0
93
Member Avatar for Knome

I'm trying to call a function from an if statement that is inside a for loop. I need to send the $i in "for i in *" to a function but i can find nothing that works. ex. [code] # Perform actual file grab for i in /Users/* ; do …

Member Avatar for L7Sqr
0
183

The End.