10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
For instance, my file contains the following content...
set -A array
set -A test
${array}=1
${array}=2
${array}=3
${test}="Boy"
${test}="Girl"
${test}="Dog"
x=0
while ;do
print "${array}" " " "${test}"
x=$((x+1)
done... (1 Reply)
Discussion started by: TestKing
1 Replies
2. Shell Programming and Scripting
I have an initial record 0.018
I would like a script that would for i=0;i<200;i++ print
0.018*1
0.018*2
0.018*3
0.018*4
...
0.018*200
using newline. (7 Replies)
Discussion started by: chrisjorg
7 Replies
3. Shell Programming and Scripting
Hi
I have a file with the following structure
"VATTENFALL GLOBAL" "Vattenfall Tray"
"BARCLAYS BANK LONDON" "Capula"
"P1 AGEAS GLOBAL COMPANY" "AAC - Optiver"
The requirement is like this
1) Take 2 input... (16 Replies)
Discussion started by: sudeep.id
16 Replies
4. UNIX for Dummies Questions & Answers
while IFS="" read r; do
printf "XXX\t%s\n" "$r"
done < test1.txt > test.txt
The issue is, XXX wud be a dummy column/row added to the file..But i want this XXX column to be a separated as a TAB Delimiter
it should be something like
XXX 1
XXX 2 (3 Replies)
Discussion started by: saggiboy10
3 Replies
5. UNIX for Dummies Questions & Answers
I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:... (5 Replies)
Discussion started by: evelibertine
5 Replies
6. Ubuntu
Hi;
I've been searching posts to find a solution to what I'm trying to do, but I've have NOT found anything yet.
I have a file (file1) with 300K columns and 1411 rows, the columns don't have a column no. header (No header at all) and I'm trying to fetch the information from specific columns.... (3 Replies)
Discussion started by: sogi
3 Replies
7. Shell Programming and Scripting
Hi All,
I have multiple lines in a file like:-
"abc" def "ghi" jkl "mno" 1
I want to print in output:-
abc/ghi/mno 1
How can I do this in perl?
Regrds,
Nilabh
-----Post Update-----
Additional info:-
The last field of the file should be output as it is.In the above example 1 is... (6 Replies)
Discussion started by: nilabh_s
6 Replies
8. Shell Programming and Scripting
my script:
FILE="$1"
echo "You Entered $FILE"
if ; then
tmp=$(cat $FILE | sed '/./!d' | sed -n '/regex/,/regex/{/regex/d;p}'| sed -n '/---/,+2!p' | sed -n '/#/!p' | sed 's/^*//' | sed -e\
s/*:// | sed -n '/==> /!p' | sed -n '/--> /!p' | sed -n '/regex/,+1!p' | sed -n '/======/!p' | sed -n... (1 Reply)
Discussion started by: omgsomuchppl
1 Replies
9. Shell Programming and Scripting
Hi,
I have a perl script which generates an LDAP report in CSV Format.
Issue: Some of attribute values has double-quotes as fed by users. I dont want to print those double-quotes while printing the attribute values.
Please let us know how I can overcome this issue.
Thank You.
... (2 Replies)
Discussion started by: gazalinawaz
2 Replies
10. UNIX for Advanced & Expert Users
How can I rename a unix file that has a spacing in in the charactyers? For example, I want to rename or move a file called "My OldFile.txt" to "MyNewFile.txt" or "My_New_file.txt"
Please help (7 Replies)
Discussion started by: frankyranky
7 Replies