10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is my first post in this site
I have the next txt file "Employee.txt" with the next data
ID Name Department Salary
1 Alejandro IT 1000
2 Alan HR 3000
3 Lupe IT 2500
4 Lili Desing 1500
i... (3 Replies)
Discussion started by: macdroopy
2. Shell Programming and Scripting
I have a text file like below
in the above file i need to grep and print the lines if 14th to 18th... (4 Replies)
Discussion started by: aravindj80
how can I know that the word in test file end at this point .... I have an Idea to search on ' ' , '\n' or '\0' but don't know what function can store the string before those characters ..
help please ! (3 Replies)
Discussion started by: fwrlfo
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. UNIX for Advanced & Expert Users
Hi Canone please provide me solution how can achieve the result below:
This is a test1
This is a test 2
sweet apple red (there is no pound symbol here)
green (1 Reply)
Discussion started by: Aejaz
9. UNIX for Dummies Questions & Answers
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
10. 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
drwxrwx--- 4 ecfadmin staff 96 Oct 24 18:35 .
... (2 Replies)
Discussion started by: condor4-2