10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello nix Experts,
I am a *nix rookie and have run into this issue, can some one help me here and let me know what I am doing wrong.
/home/user1> while read n
> echo $n
> done < <(find . -type f -ctime -1 | grep abc)
I am getting the below error:
-sh: syntax error near... (5 Replies)
Discussion started by: babyPen1985
2. UNIX for Dummies Questions & Answers
I want to use the read command in order to input a keyword from the keyboard.
I then want to use this keyword in a grep command.
How to I input a phrase as a keyword? For example if I use
and then use grep, I get "No such file or directory" error. (6 Replies)
Discussion started by: FelipeAd
3. Shell Programming and Scripting
I have an issue where i run an command in a shell script.
If the command returns an error i'm redirecting it to /dev/null.
The prob is if an error comes it expects the user to press return to continue.
And hence the return is not echoed. and the end... (4 Replies)
Discussion started by: subhrap.das
4. Shell Programming and Scripting
I'm trying to create files in ccm thru a shell as the number of files that i need to create is in hundreds
The problem here is the command prompts for the file type to be entered by the user. I need all the files to be created with "ascii" as file type. So how can i input a... (1 Reply)
Discussion started by: dvah
5. Shell Programming and Scripting
i have a requirement to compare two time stamps in IF condition and return true whenever the second timestamp is greater than first, i will also be checking, if the timestamp in HHMMSS format( 6 digit time stamp ).Im able to achieve it using awk, however i dont want to give any input file to awk... (3 Replies)
Discussion started by: saikiran_1984
6. UNIX for Dummies Questions & Answers
I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script.
I am planning to do like this:
if ; then... (2 Replies)
Discussion started by: new_learner
7. Shell Programming and Scripting
Hi guys. Is it possible (I'm sure it is) to use the output of a simple 'ls' command as input of another command 'tail'.
It is not really the output of the 'ls'. I have to useeach line of the output.
This is the first command...
Which it outputs many filenames. For each... (3 Replies)
Discussion started by: rodrimuino
8. UNIX for Dummies Questions & Answers
I am trying to write a one line command for Oracle grid control. I am using a semi-colon to separate the commands. But, I am having a problem with a shell script accepting input. Wondering if you can help.
Here is what I am trying to do:
(PGPRD5432)@prd01:/> cd /export/home/postgres ##... (3 Replies)
Discussion started by: rexmabry
9. Shell Programming and Scripting
This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it.
I am trying to write a very small script to take away from the boredom of doing the same thing over and over.
Everynow and again I have to get the hex value of a file using a... (2 Replies)
Discussion started by: BkontheShell718
10. UNIX for Dummies Questions & Answers
I am running this command in linux from a shell script....gpg --output encrypted_file.gpg --encrypt --recipient email@example.com /home/test2/actectest/san.zip.....this is a command for encrypting a file using GnuPG tool.....and while the command is running it stops in between... (1 Reply)
Discussion started by: santy