10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Assume i have typed 4 commands in the past like
vi `ls -t |head -n 1`
tail -2 test.txt
ls -lrt | grep "/etc/profile.d"
pwd
Now if i type r p it should execute the command "pwd" likewise r t should execute tail -2 test.txt.
Note: esc k and using up arrow and down arrow will get this work... (3 Replies)
Discussion started by: Ramanareddygv
3 Replies
2. Programming
I came across a site to learn java and they give you practice problems to do. I was wondering if anyone can help me with this since I am totally new to Java. Here is the first problem:
Write a program that will read in a name from the command line and write it out 100 times.
Thank you for any... (10 Replies)
Discussion started by: totoro125
10 Replies
3. Shell Programming and Scripting
How to repeat the execution of a simple command like the following for 1 sec ?
echo Hi
The completion time for the command is not known, but we need to calculate the number of times this commans executes successfully within 1 sec.
Thanks
Kumarjit (5 Replies)
Discussion started by: kumarjt
5 Replies
4. Shell Programming and Scripting
I am writing a script and my command is long so it goes down to the next line, but it does not run properly, the pipe is missing the wc -l. how do i fix this problem.
find ${ARCHIVE}/${dir} -type f -name "${TEMP2}*" | awk -F/ '{print $NF}' | wc -l (8 Replies)
Discussion started by: football12345
8 Replies
5. Shell Programming and Scripting
i am building a database to keep track of unix groups.
Using the command "ypcat group"
I get an output similar to the following
group1:GROUP:9999:user1,user2,user3
groupA:GROUP:1111:usera,userb,userc
I want to convert this output so it looks like this
group1:user1
group1:user2... (2 Replies)
Discussion started by: newreverie
2 Replies
6. UNIX for Dummies Questions & Answers
I want to search files (basically .cc files) in /xx folder and subfolders.
Those files (*.cc files) must contain #include "header.h" AND x() function.
I am writing it another way to make it clear,
I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings, header.h... (2 Replies)
Discussion started by: ritikaSharma
2 Replies
7. UNIX for Advanced & Expert Users
Is there a way to repeat the output of the last command for filtering without running the command again? All I could think of was to copy all the data to a text file and process it that way, is there another way? Like say I want to grep server.server.lan from a dtrace that was pages long after I... (5 Replies)
Discussion started by: glev2005
5 Replies
8. Shell Programming and Scripting
Hi All,
Please find my piece of code below. I am trying to grep the word SUCCESS from $LOGFILE and storing in the grepvar variable. And i am placing that variable in a file. Now if i open the file, i can see the four lines but not in seperate four line s but in a paragraph. If am mailing that log... (8 Replies)
Discussion started by: intiraju
8 Replies
9. Shell Programming and Scripting
Hi,
how to do that ? I mean only print it but not execute. I'm using putty to interact with ksh.
(in windows cmd up arrow does the job)
thanks
vilius (5 Replies)
Discussion started by: vilius
5 Replies
10. UNIX for Dummies Questions & Answers
Hi there,
i would like to repeat a command in a shell sript (bash)
the script starts with a menu to choose a menu point to do something ....
on the end of the script i would like to restart the programm to choose the menu points on the beginning.
I would also make a sript that send... (2 Replies)
Discussion started by: scotty
2 Replies