10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
i have a problem in the bash shell. i'd like insert in a variable a file for example :
i have a file datafine.log in this file there is :
i want to insert the value of datafine.log in a variable.
edit by bakunin: please use CODE-tags for your data... (2 Replies)
Discussion started by: Francesco_IT
2. UNIX for Beginners Questions & Answers
Source Code of the original script is down below please run the script and try to solve this problem
this is my data and I want it column wise
1 (5 Replies)
Discussion started by: Shubham1182
3. Shell Programming and Scripting
At the top of the XYZ file, I need to insert the ABC data value of column 2 only when ABC column 1 matches the prefix XYZ file name (not the ".txt"). Is there an awk solution for this?
XYZ File Name
... (7 Replies)
Discussion started by: ncwxpanther
4. Shell Programming and Scripting
I have the following variables set in my env
I want to insert them between the xml tags in my xml file
:::::::::::::::::::::::... (2 Replies)
Discussion started by: jakSun8
5. UNIX for Dummies Questions & Answers
Could u show me how to do following:
I have files (in total 22) .txt that contain one column of values (the total number of values varies from file to file from 40.0000 to 10.000). For example:
And I need... (2 Replies)
Discussion started by: kush
6. Shell Programming and Scripting
I am new to unix. I need to insert a variable which contains some lines of text into a text file after fixed number of lines..
Please help me on this..
Thanks in Advance,
Amrutha (3 Replies)
Discussion started by: amr89
7. Shell Programming and Scripting
Hi, I want to insert one file into another like this:
<!-- #include file="file2" -->
<!-- #include file="file3" -->
with the complete output going to another file. Have seen some solutions to similar problems using sed, but this problem is different because it is... (5 Replies)
Discussion started by: cvq
8. Shell Programming and Scripting
Hey guys ,
i have a variable with the contents ...
and a test file with the contents
I want to execute a script that will produce the following output ( based on NUMBER=4) to be ...
create 1248 (1 Reply)
Discussion started by: theshams
9. Shell Programming and Scripting
Hi all, I am trying to insert couple of lines before first occurance of line3 which occuring after line 5.
So I identified the line 5 line number in the file. Also redirected the all line3 line number to out.txt.
Now I have problem in inserting the line using the variable $rep. Please help me... (2 Replies)
Discussion started by: aimmanuel
10. Shell Programming and Scripting
I want to extraxt data from a html table
the html file is downloaded from
UG / PG Univ - Exam.Results April/May 2008
After processing the html file using sed i got the output like this
EC1351,20,53,P... (5 Replies)
Discussion started by: a_artha
COLUMN(1) BSD General Commands Manual COLUMN(1)
column -- columnate lists
column [-tx] [-c columns] [-s sep] [file ...]
The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by
default, from the standard input. Empty lines are ignored.
The options are as follows:
-c Output is formatted for a display columns wide.
-s Specify a set of characters to be used to delimit columns for the -t option.
-t Determine the number of columns the input contains and create a table. Columns are delimited with whitespace, by default, or with
the characters supplied using the -s option. Useful for pretty-printing displays.
-x Fill columns before filling rows.
The column utility exits 0 on success, and >0 if an error occurs.
COLUMNS The environment variable COLUMNS is used to determine the size of the screen if no other information is available.
(printf "PERM LINKS OWNER GROUP SIZE MONTH DAY " ;
printf "HH:MM/YEAR NAME
ls -l | sed 1d) | column -t
colrm(1), ls(1), paste(1), sort(1)
The column command appeared in 4.3BSD-Reno.
June 6, 1993 BSD