9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have a text file like below
abcd2223232321212121324343
asdsfffhfgfgfhgfhghghghghghgh
dfdfdfgfghfgfgfgfgfgghghghghgh
dfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdf
1234567890sasasasfdfbffghffhf
abcd222323232121212abcdsds
in the above file i need to grep and print the lines if 14th to 18th... (4 Replies)
Discussion started by: aravindj80
4 Replies
2. UNIX for Dummies Questions & Answers
Hello all,
I have following line and want to search the exact match in text file.
30 6 * * * /data/abc/abc.ksh -f xya.sql -xyz@email -x -c -g
I have tried it many ways like grep -W ,sed,etc.... but could not find the solution.
The above line i am storing it in one variable called... (4 Replies)
Discussion started by: anyera
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
Is there any way GREP command can return word and not complete line.
My file has following data:
Hello Everyone I am NitinrajSrivastava
Hi Friends Welcome VrajSrivastava
I am using grep 'raj' which is returning me complete line.However I want only the word having keyword 'raj'.
Required... (11 Replies)
Discussion started by: dashing201
11 Replies
4. Shell Programming and Scripting
Hi,
I am reading data from a variable which has spaces in it. I want to get the data after first space, i.e. if my data line is "My Name is Ashish...", I want the data returned as "Name is Ashish". I am using #!/bin/sh shell. Please help me with the code to read the complete data after first... (8 Replies)
Discussion started by: gupt_ash
8 Replies
5. Shell Programming and Scripting
Hi,
I want to split before reading the complete line as the line is very big and its throwing out of memory. can you suggest.
when i say
#cat $inputFile | while read eachLine
and use the eachLine to split its throwing out of memory as the line size is more than 10000000 characters.
Can you... (1 Reply)
Discussion started by: vijaykrc
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Does anyone know how to make BASH provide a list of possible completions on the first tab, and then start cycling through the possibilites on the next tab?
Right now this is what I have in my .bashrc:
bind "set show-all-if-ambiguous on"
bind \\C-o:menu-complete
This allows... (0 Replies)
Discussion started by: Mithu
0 Replies
7. UNIX for Advanced & Expert Users
Hi Canone please provide me solution how can achieve the result below:
File1.txt
$
sweet appleŁ1
scotish
green
$
This is a test1
$
sweet mangoŁ2
asia
yellow
$
This is a test 2
$
sweet apple red (there is no pound symbol here)
germany
green (1 Reply)
Discussion started by: Aejaz
1 Replies
8. UNIX for Dummies Questions & Answers
Dear Techs,
In the past on a different box (HP) I use to be able to complete something I was typing by entering a portion of the filename in the pwd and I would hit the Esc key and it would match the rest of the filename. I did this without understanding how it was setup.
Now I am on a new... (1 Reply)
Discussion started by: jxh461
1 Replies
9. UNIX for Advanced & Expert Users
Can anyone help me with the following:
I need to traverse subdirectories to create a list of files with the pathname. For example, here's what I get with a simple ls -alR command:
/MAIN/data/30007390 dte2>>ls -alR
.:
total 2
drwxrwx--- 4 ecfadmin staff 96 Oct 24 18:35 .
... (2 Replies)
Discussion started by: condor4-2
2 Replies