10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
2. Shell Programming and Scripting
Hello,
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;
do
COMMAND
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
5 Replies
3. Shell Programming and Scripting
Hello all,
I have filex
$cat filex
camp1 camp2 camp3
111 222 333
444 555 666
777 888 999
then i need output with and not line 1 or line 2 to end file
$cat filex
111 222 333
444 555 666
777 888 999
thank you, (3 Replies)
Discussion started by: aav1307
3 Replies
4. Shell Programming and Scripting
hello everyone,
im new here, and also programming with awk, sed and grep commands on linux.
In my text i have many lines with this config:
1 1 4 3 1 1 2 5
2 2 1 1 1 3 1 2
1 3 1 1 1 2 2 2
5 2 4 1
3 2 1 1 4 1 2 1
1 1 3 2 1 1 5 4
1 3 1 1... (3 Replies)
Discussion started by: satir
3 Replies
5. UNIX for Dummies Questions & Answers
I have a file in which each line is the name of another file. Is there a way to serve them to the command line? For example, if the file contains
file1.txt
file2.txt
file3.txt
...
file9.txt
is there a way to insert them in the command as a batch?
If I ran a command like
grep... (4 Replies)
Discussion started by: wbport
4 Replies
6. Shell Programming and Scripting
Hello Everyone,
I need a help from experts of this community regarding one of the issue that I am facing with shell scripting.
My requirement is to append char's at the end of each line of a file. The char that will be appended is variable and will be passed through command line.
The... (20 Replies)
Discussion started by: Sourav Das
20 Replies
7. Shell Programming and Scripting
Hi Folks,
I want to add one name at the end of one file.
Below line i have to add end of line some name...
Search_masterlogin=`grep -i $masterlogin passwd.master|awk -F: '{print $1}'`
$ grep -i susan passwd.master |awk -F: '{print $1}'
susan
$
I want to insert one name called... (10 Replies)
Discussion started by: susindram
10 Replies
8. Shell Programming and Scripting
Hello.
I have a file (old.txt) that I need to copy into another file (new.txt).
Each line on old.txt ends with CR/LF but the position of CR/LF varies from one record to another.
I need to copy each line of record to new.txt and move CR/LF in pos 165.
Can I use awk to achieve this? How?... (8 Replies)
Discussion started by: udelalv
8 Replies
9. UNIX for Dummies Questions & Answers
I need to move the 5th char of a word to its end and first four chars and rest should be retained as it is.
Can any one help me out... (1 Reply)
Discussion started by: Ramkum
1 Replies
10. Shell Programming and Scripting
Hi All,
I have two comma separated value(CSV) files, say FileA and FileB.
The contents looks like that shown below.
FileA
EmpNo,Name,Age,Sex,
1000,ABC,23,M,
1001,DES,24,F, ... (2 Replies)
Discussion started by: ultimate
2 Replies