10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to set 10 set of strings into a variable where:
removing all spaces within each string
change the delimiter from "|" to ","
Currently, I've the below script like this:Table=`ten character strings with spaces in-between and each string with delimiter "|" | tr -d ' ' |... (7 Replies)
Discussion started by: o1283c
2. Shell Programming and Scripting
$sed -n "58p" sample
Its has to display like:
1222017 (5 Replies)
Discussion started by: Anamica
3. UNIX for Dummies Questions & Answers
My requisite is to split a single column of phonemes seperated by spaces into multiple rows.
my input file is:
my o/p should be like:
adhu a dh u (3 Replies)
Discussion started by: girlofgenuine
4. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
5. UNIX for Dummies Questions & Answers
I have a file that contains whitespaces with spaces and spaces and tabs on each line and am wanting to remove the whitespaces. My version of sed is one that does not recognize \t etc.
The sed and awk one-liners below that I found via Google both does not work.
So my next best... (3 Replies)
Discussion started by: newbie_01
6. UNIX for Dummies Questions & Answers
Hi, i have this text:
X (m) 4917536.9627 4917536.9673 0.0090 -0.0046
Y (m) -815726.1383 -815726.1294 0.0061 -0.0089
Z (m) 3965857.4730 3965857.4840 0.0071 -0.0110
X (m) 4917536.9627 4917537.1411 -0.1784 0.1710
Y (m) -815726.1383 -815726.4859 0.3476 0.3489
Z (m) 3965857.4730... (2 Replies)
Discussion started by: limadario
7. Shell Programming and Scripting
How to check whether lines in a text file have trailing spaces or not and if a line have trailing spaces then how many trailing spaces line have?
ARvind kumar (5 Replies)
Discussion started by: arvindk.monu
8. Shell Programming and Scripting
i call my shell like:
my_shell "my project name"
sed s/'PROJECT_NAME ='/'PROJECT_NAME = '$projectname/ <test_config_doxy >temp
cp temp test_config_doxy
the following error occurres:
sed s/'PROJECT_NAME ... (2 Replies)
Discussion started by: vivelafete
9. Shell Programming and Scripting
I have an XML file with strings XABCD, XEFGHX and XIJKLX. I would like to replace XABCDX with "This is the first string", XEFGHX with "This is the second string" and XIJKLX with "This is the third string".
What is the best way to implement this? Should I have a file with the data that is... (4 Replies)
Discussion started by: zmfcat1
10. UNIX for Dummies Questions & Answers
In my script, i am reading the input from the user and want to find the length of the string.
The input may contain leading spaces. Right now, when leading spaces are there, they are not counted.
Kindly help me
My script is like below. I am using the ksh.
echo... (2 Replies)
Discussion started by: dayamatrix