10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am new to shell scripting.
I have made a script that can convert an excel file from cvs file.
This excel file contains hundreds of records and i would like the reader to be able to filter.
Is it possible to create an excel file with filters? or that functionality has not been... (3 Replies)
Discussion started by: Marvin159875321
3 Replies
2. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
3. Shell Programming and Scripting
Korn Shell in AIX 6.1
I want to print the below shown pipe (|) separated list line by line.
line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883
for i in line
do
echo "Hello $line "
done
I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies
4. Shell Programming and Scripting
Hi,
Could anyone explain me why I am getting the 'broken pipe' error for the below?
exec 3>&1
echo cat | cat <&3
-su: echo: write error: Broken pipe (2 Replies)
Discussion started by: royalibrahim
2 Replies
5. UNIX for Dummies Questions & Answers
Hey, I'm trying to make a nice clear table of fixtures.
lynx --dump Fixtures & Reports | Fixtures | Arsenal.com | tail -n+360 | less
#tail to remove 1st 360 line
I'm trying to remove the 'Add to Calendar' bit next
I tried pipping through sed but not sure if I did it right
sed 's/\Add... (3 Replies)
Discussion started by: 64mb
3 Replies
6. Shell Programming and Scripting
Hi all,
Actually i need to know whether there is any way to redirect the output of shell operations into any file without pipe .
Actually my problem is , i run some command & its result is displayed on shell after some calculations on shell, so if i redirect its output to file, it is not... (5 Replies)
Discussion started by: sarbjit
5 Replies
7. Shell Programming and Scripting
Kindly help,
Suppose i am having a file that has got the following contents. Is there any way (eg. sed command) to remove the (*) (*any number) pattern.
se.bas
tulf.h
(1)
tuna.c
(1)
tunsim.c
(1)
tus.cpp
(1)
vp.c
(1)
vp.h
(1)
vpi.
(1) (1 Reply)
Discussion started by: frozensmilz
1 Replies
8. Shell Programming and Scripting
I have
for i in 1 2 3 4
do
echo $i >> test.txt
done
test.txt contains ... 1
2
3
4
But I want it to contain ... 1234
Any suggestions? (3 Replies)
Discussion started by: Bandit390
3 Replies
9. Shell Programming and Scripting
Hi All,
I have a file which contains data as below
When we see no pipe character in the line. append those lines to the previous line with pipe character till we get the next line with pipe character with ~(concat with ~)
Input file looks like:
1080530944|001|john.l.bonner|Acknowledge|CN... (11 Replies)
Discussion started by: ainuddin
11 Replies
10. UNIX for Advanced & Expert Users
hi,
i need to clear data off a DOA backup drive.
i try this, but just get a file {} in . and no change on the backup drive.
bash shell
find /mnt/usbbackup -xdev -type f -exec echo `date` > {} \;
any ideas? thanks. :) (1 Reply)
Discussion started by: drewnichols
1 Replies