10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Guys, I'm trying to work out how to add a command line argument inside single quotes. Would anyone be able to help please as I'm going mad :)
I want to be able to place the filename on command line and it then be used in a script but it needs to have quotes surrounding it.
Thanks in... (4 Replies)
Discussion started by: mutley2202
2. Shell Programming and Scripting
I would like to search and print a match of the user entered $ARGV.
Im terrible with hashes and really dont know where to go from here.
The example data file
name location phone
Bugs holeintheground 5551212
Woody holeinthetree 6661313
Jerry holeinthewall 7771414... (4 Replies)
Discussion started by: sumguy
3. Shell Programming and Scripting
I would like to use a string as a command line argument...is this possible using TCSH? For example say my script is called TEST and I would like to pass a string into my script stating why the test failed.
TEST "Failed due to missing statement" (4 Replies)
Discussion started by: thibodc
4. UNIX for Advanced & Expert Users
While typing the Unix command, entire command is not visible.When the input command is long, it is not visible. I want the entire command to be displayed when i type it. Please help to resolve this issue.
Sampath (7 Replies)
Discussion started by: sampath.giri
5. UNIX for Advanced & Expert Users
I am new to Unix. I got stuck up by small issue.
I have text file something like this
abc 'xyz' '5'
lmn 'pqr' '7'
i want to replace the abc 'xyz' '5' to abc 'xyz' '6'
but i have a key as 'xyz' based on this key i want to do that.
I am not aware of how to use sed... (7 Replies)
Discussion started by: Vijayaragavan
I have a very simple C program which will run in UNIX. When i am passing * as the command line argument, i am gettig the below output.
int main(int argc,char *argv)
printf("\nHello... (2 Replies)
Discussion started by: dsudipta
7. Shell Programming and Scripting
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
8. Shell Programming and Scripting
Say I want to get the value of last command line argument using the value in $# (or some other way if u can suggest) how do I do it??
These don't work :( (4 Replies)
Discussion started by: amit_oddey21
9. Shell Programming and Scripting
I need to determine what processes are running at certain times of the day. I have a script that issues the /usr/ucb/ps aux command and captures it to a file.
I want to see the cpu usage and memory usage.
This command lops off the end of the of the display line so I can't see the entire... (2 Replies)
Discussion started by: MizzGail
10. UNIX for Dummies Questions & Answers
can any help me how to can pass array as command line argument in korn shell.
also how to read a array from command line.
spandu (2 Replies)
Discussion started by: spandu