Hi
I'm trying to write a shell script which finds all the .zip files in a given directory then lists them on the screen and prompts the user to select one by entering a number e.g.
The available files are:
1. HaveANiceDay.zip
2. LinuxHelp.zip
3.
I am new to Perl programming.... I wrote a simple script for sorting of numbers in an array but the script is not working as expected. Please help me with this.
#!/usr/bin/perl
print ("Enter the numbers......
I actually wanted to learn about the pipe() command and so I thought I'll fork() a child, take input of an integer array from user in parent process, send that array to child using pipe() and and print the array via child process.
While doing this, I am struck with taking input of the array in the parent process at the first place...Whenever I dynamically create an array, say of 5 elements, it ta
The title might not say much about the issue at hand so let me get straight to the point.
Let's assume I have a casual user who can log in to the system via SSH into a bash shell.
Hi All,
Currently our application is running on the server having AIX 5.3 OS.
What we intend to do is to run a shell script owned by another user and needs to be run as that particular user.
I was trying to create a shell script using the su command before running the actual script (which will be executed from the new script). The su command always prompt for a password.
Hi, I have following issue while using Array in Shell script
I have input file as below
Code:
FILE1=filename1,filelocation1
FILE2=filename2,filelocation2
FILE3=filename3,filelocation3
FILE4=filename4,filelocation4
FILE5=filename5,filelocation5
FILE6=filename6,filelocation6
I want traverse these file and get both filename and filelocation in different variables.
Can you please help me?
I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user.
What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this?
I set the a array as an environment variable in this manner
eg.
How do you store an array into another array?
can you store a multidimensional array into an array? if so how?