10 More Discussions You Might Find Interesting
is there any unix tools that can read the text files like through SQL queries? (ie in Hadoop, Impala DB support flat file query) (1 Reply)
Discussion started by: omykarshan
2. Shell Programming and Scripting
So I have a file1.txt that is tab delimited:
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5
9545641 123 "Neighbor and Labrador,Canada" 54895 'CANADA'
9456465 456 "Neighbor and Labrador,Canada" 54893 'CANADA'
8746512 789 "Neighbor and... (11 Replies)
Discussion started by: dan139
3. UNIX for Dummies Questions & Answers
hi i just cant figure out how can i do this ls -lt > log.txt using $PWD
what i mean is how can i get the ls command content into a file using $PWD variable? :confused: (4 Replies)
Discussion started by: chinababy
4. Shell Programming and Scripting
I have an inputfile with some table names in it.
I need a script which reads the line one by one and need to assign to some dynamic variable. If to explain the above example:
i need some
table_name1=t_arnge in first time and... (4 Replies)
Discussion started by: Ravindra Swan
5. Shell Programming and Scripting
I have 'n' number of files in a folder .each file in the folder "myfolder" is having the content like.
26 recrod(s) selected.
My request is by reading each file in "myfolder" and format each file such a way... (18 Replies)
Discussion started by: rocking77
6. Shell Programming and Scripting
cat can't show the last line of a file sftp transffered from Windows, because the last line is not ended with new line.
Vi can show all line with warning
I can append blank line in order for cat to show all lines, But is there a command to do this without modifying the file?
> cat -A... (3 Replies)
Discussion started by: honglus
7. Shell Programming and Scripting
I've written up a script, that populates a variable with a list of tapes returned from my library. For example:
So now, the variable "TAPELIST" contains those numbers, delimited by commas. I'd like to... (6 Replies)
Discussion started by: Stephan
8. Shell Programming and Scripting
I am reading a file line by line using read line function of while loop. Each line contains 4 fields. I want to take these 4 values in 4 variables in each iteration so that i can use them in my script. The issue here is that my awk command is returning awkward results -
Here is a sample line... (8 Replies)
Discussion started by: garman
9. Shell Programming and Scripting
Here is the output of lpstat. I would like to read value of Queue which is(abxxxxb1)and status that is DOWN in first line. i dont care what is in second line. any one can help me.thanks
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- ---------... (5 Replies)
Discussion started by: sagii
10. UNIX for Advanced & Expert Users
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to email@example.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Discussion started by: nimu1979