10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Currently i am building one script to grep region records in the config file based on parameter and then i am creating a text file with that out put and i am reading the source file path in that out put file
now i need to pass one more parameter like module based upon that it has to create a... (1 Reply)
Discussion started by: saranath
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
i am getting below message while using grep command
"The parameter list is too long"
grep -i 919716499889 *
ksh: /usr/bin/grep: 0403-027 The parameter list is too long.
please let me know what changes i can do in this command (5 Replies)
Discussion started by: scriptor
5 Replies
3. Shell Programming and Scripting
Hello Everyone!
I have updated the first post so that my intentions are easier to understand, and also attached sample files (post #18).
I have over 500 text files in a directory. Over 1 GB of data. The data in those files is organised in lines:
My intention is to return one line per... (23 Replies)
Discussion started by: clippertm
23 Replies
4. Shell Programming and Scripting
Hi, I have A file like this:
>Contig1
AAAAAAATTTTTTCCCAATATATGAT
ATATATAEATATATAT
>Contig2
AAAAAAATTTTTTCCCAATATATGAT
ATATATAEAATTTTTAATTTTTTCCCA
ATCCCAAATATATAT
>Contig3
AAAAAAATTTTTTCCCAATATATGAT
ATATATAEAATTTTTAATTTTTTCCCA
ATCCCAAATAAATTTTTTCCCAATAT
ATGATATATATAEAATTTTTAATTTTT... (3 Replies)
Discussion started by: the_simpsons
3 Replies
5. Shell Programming and Scripting
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
Discussion started by: pankaj80
3 Replies
6. UNIX for Dummies Questions & Answers
Hello everyone,
My main objective is to search for text within a file, namely a block of text where each line ends with a backslash "\".
However, the block must begin with a keyword, like "loginstring".
Here is an example of a file that contains a block:
###############
loginstring \... (2 Replies)
Discussion started by: idlechatter
2 Replies
7. UNIX for Dummies Questions & Answers
Hi, I'm trying to output all text from the first paragraph in a file that contains a specific string through the last paragraph in that file that contains that string.
Previously, I was outputting just each paragraph with that search string with:
cat in_file | nawk '{RS=""; FS="\n";... (2 Replies)
Discussion started by: carpenn
2 Replies
8. Shell Programming and Scripting
Hello,
I want to know how i can sum two numbers in a grep command with the parameter -n.
this code return line number and the line who have the "pattern" :
*\).*/\1/p')
]
but now i want to suw *\).*/\1/p')] with 1 to have the next line:
*\).*/\1/p')] + 1 : it can't work.
Thanks you (4 Replies)
Discussion started by: samara80
4 Replies
9. Shell Programming and Scripting
Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
Discussion started by: Awanka
2 Replies
10. UNIX for Dummies Questions & Answers
Hi there
I get this error message when I try to do a basic grep. Does anyone have any ideas what is wrong. Thanks
0403-027 The parameter list is too long. (1 Reply)
Discussion started by: japada
1 Replies