10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
File name: File.txt
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
2. Shell Programming and Scripting
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
3. UNIX for Advanced & Expert Users
I'm new in unix. Need some help here.
I have a file called server.cfg which contains the servers name, if I don't want to run on that server, I'll put a "#" infront it.
#firstname.lastname@example.org... (17 Replies)
Discussion started by: beezy
4. Shell Programming and Scripting
I don't really know anything about scripting, but I have to manage to make this script, out of necessity.
while read -r line; do #I'm reading from a big wordlist
instructions using $line
Is there a way to automatically write the $line number the script... (4 Replies)
Discussion started by: bobylapointe
5. Shell Programming and Scripting
I have a file like this:
-130.9211,51.7772,0... (5 Replies)
Discussion started by: Gery
6. Shell Programming and Scripting
I have a .txt file with some contents as below:
Hi How are you?
# Fine and you?
I want a script file which reads the .txt file and output the lines which does not start with #.
Hi How are you?
Help is highly appreciated.
Please use code tags when posting data and... (5 Replies)
Discussion started by: bghosh
7. UNIX for Dummies Questions & Answers
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
... (5 Replies)
Discussion started by: grc
8. 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
9. Shell Programming and Scripting
I am new to unix.
Actually i want help in writing an single command where
i can actually read specific line number in file where the line number will be passed to command as parameter.
And to my command i pass as 2.
so i should get output as 2 b
... (15 Replies)
Discussion started by: kam786sim
10. Shell Programming and Scripting
I have a file TXTPROCESS.TXT.20071129 in which line 1 contains the file name and rest of the records are data.
The file data looks like this:
From line 2 onwards the first 4 characters defines individual process. What I... (2 Replies)
Discussion started by: skymirror