Search Results

Search: Posts Made By: bshell_1214
2,396
Posted By bshell_1214
thanks for reply itkamaraj so far i have...
thanks for reply itkamaraj

so far i have tried this, but i dont think it is right!!


#!/usr/bin/perl

REVERSE_LIST = reverse (@ARGV);

print "command line argument in reverse:...
2,396
Posted By bshell_1214
perl script - command line parameter
i am a beginner, i want to make a program that takes any command line arguments... and print it out in reverse.

ie. if the command line argument is "thanks for helping me"

i want it to output...
981
Posted By bshell_1214
perl script help
how do you call a perl script from a shell script?

#shell script

#!/bin/sh
echo "Enter command"
read input

if [ "$input" == "perl" ]
then
#run perl script
else
echo "command not...
2,132
Posted By bshell_1214
thanks itkamaraj for the reply, but it...
thanks itkamaraj for the reply,

but it doesn't list anything, even thought it exists,, like *.txt (i am a beginner :D)
2,132
Posted By bshell_1214
wildcard help!!
i have got heaps of files (.pdf, .txt and .doc) files in one folder, i am making a program in PERL that helps me find the files i want easier using shell wildcard,

something like this!!

print...
8,270
Posted By bshell_1214
thanks birei, instead of starting a new...
thanks birei,

instead of starting a new thread, do u happen to know, how to list files in a specific shell wildcard, so for example,

print "Enter a pattern (The pattern has to be in [])";...
8,270
Posted By bshell_1214
Exiting a program! - perl
how would you exit out of a programm correctly, without having for the program to crash?

for example

print "Enter quit";
$input = <STDIN>;

if ($input eq "quit")
{
{QUIT THE PROGRAM}
}...
1,348
Posted By bshell_1214
command line argument - perl
how do i check if a command line argument is -g?

for example,

if command line argument equals "-g"
{
print "Goodbye \n";
}
else
{
print "Welcome to the program! \n";
}
1,575
Posted By bshell_1214
hartz, thanks so much!!
hartz, thanks so much!!
1,575
Posted By bshell_1214
thanks for the reply... i am new to shell...
thanks for the reply... i am new to shell scripting, can you please explain wwhat you did?

thanks
1,575
Posted By bshell_1214
help with cut command
i am making this program that lists files in the current directory, it asks the user to input the file they want to list, eg "list " then they have to input the name of the file they want to list...
1,509
Posted By bshell_1214
thanks for replying, but i dont quite understand...
thanks for replying, but i dont quite understand what you did!! i tried running it too and it doesnt work!!
plzzz help!!


thanks
1,518
Posted By bshell_1214
thanks for replaying doctorfoo1, but i want the...
thanks for replaying doctorfoo1, but i want the user to enter the name! we dont know what the name is going to be, and they are meant to enter hello (name) or question (name) and the outputs are...
1,518
Posted By bshell_1214
Help with creating a simple program!!
i am new to shell scripting!! i am making this program in bourne shell, that asks the user to input "Hello (their name)" or "question (their name)", any other input, "ERROR" will be outputted.
if...
1,509
Posted By bshell_1214
code checking
i was just wondering how would you check , beside the lock method, if an instance of another code is already running and if it is then output a message to the user saying the program is already...
2,850
Posted By bshell_1214
displaying an image - BOURNE SHELL
i am new to bourne shell, and i am making this program that checks if any .bmp files exist in the current directory, then if it does, it displays the image...

please help!!

thanks in...
5,696
Posted By bshell_1214
thanks, but is it bourne shell? i am only new to...
thanks, but is it bourne shell? i am only new to shell scripting!!! please explain!!

thanks
5,696
Posted By bshell_1214
check if files exists
i writing a program that checks if any .txt files exist in the current directory if it does, then it lists the files...

i have got everything right, except the validation part doesnt work!

.......
2,859
Posted By bshell_1214
List files in the current directory - BOURNE SHELL
i am trying to write a program, that will list .txt files and .png files.
it will ask the user what type of files do they want to list! so if the user inputs txt files.. how would you list all the...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy