10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi expert, Need help in shell script.
a.txt file output is below
i would like to grep 3 line and 1st column value which is admin\22226 only and not full line. i only know admin word as 22226 can come anything with admin\ in file.
also after fetching it i would like to use this... (1 Reply)
Discussion started by: kuljeetpal
1 Replies
2. 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
3. Shell Programming and Scripting
I am trying to find/grep the 5th and 6th position character (TX) of a word in a file. I tried to do
grep "....TX" file
The output gives me everything in the file with TX in it. I only need the output with the TX in the 5th and 6th position of the word. Any idea
Example:
test1 car... (5 Replies)
Discussion started by: e_mikey_2000
5 Replies
4. Shell Programming and Scripting
I want to grep some information out of the dmidecode but when I type
dmidecode | grep Memory
I get several instances of the word. Is there a way I can just choose which instance I want to display? (8 Replies)
Discussion started by: jcnewton13
8 Replies
5. Shell Programming and Scripting
I am looking at using grep to locate the line in the text file and them use awk to select a word or words out of it.
I know awk needs -v to allow a variable to be used, but also needs -F to allow the break up of the sentence and allow the location of separate variables.
$line = grep "1:" File |... (8 Replies)
Discussion started by: Ironguru
8 Replies
6. Shell Programming and Scripting
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Discussion started by: linuxadmin
2 Replies
7. Shell Programming and Scripting
Hi
i have a requirement that is
extract the max length word from a file ?
plz reply (2 Replies)
Discussion started by: vankireddy
2 Replies
8. UNIX for Dummies Questions & Answers
I need to grep the word "hello" in each and every file. This word will be placed either at the end of the file or before the end of the file.
Ex:
file1: file2:
afdsaf dsfalk
fdsa weruoi
sdaf erwqiuo
fsdaf ... (5 Replies)
Discussion started by: sivakumar.rj
5 Replies
9. Shell Programming and Scripting
How do I match second word and then print that line to output
For eg: My file has following text and I want to check if second word is n then I want to print entire line .
xytxti8naclip y
xytxt32bpsimple y
xytxt32bpna n
xytxti16nae y
xysmps32bpp031_bst n... (7 Replies)
Discussion started by: pitagi
7 Replies
10. Shell Programming and Scripting
Hi,
I have a file .. file.txt .. i need to get a total record count in the files into a $variable.. im using perl script
thanks (4 Replies)
Discussion started by: meghana
4 Replies