10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm on Tiny Core Linux Pure64 10.1. My locale is en_US.UTF-8 and I generally have no trouble with Unicode characters with one exception: When I try to use Unicode characters in GTK applications' file selection box, I get "Invalid file name":
http://files.dantas.airpost.net/public/save_file.jpg
... (11 Replies)
Discussion started by: DevuanFan
11 Replies
2. Shell Programming and Scripting
In the awk below I am splitting $7 on the : (colon) then - (hyphen) as array a. The word chr is printed at the start of every $1 line.
Next, $4 is split on the > (greater then) as array b. I am not sure how to account for the two other possibilities in $4 so the correct output is printed. Every... (3 Replies)
Discussion started by: cmccabe
3 Replies
3. Shell Programming and Scripting
Dear All,
I was wondering in how split one file in multiple file in a conditional way.
Briefly, I have a file like this:
>Id1
textA
>Id2
textBand my outputs file (2 in this case) shoul be:
Id1
>Id1
textAId2
>Id2
textBhope you may help me.
Best
G (5 Replies)
Discussion started by: giuliangiuseppe
5 Replies
4. UNIX for Dummies Questions & Answers
Hello
Could you please help me to find a code that can randomly select 1224 lines from a file of 12240 and make tn output with 1224 line each.
my input is txt file with 12240 lines like :
13474 999003507 0 0 2 -9
13475 999003508 0 0 2 -9
13476 999003509 0 0 1 -9
13477 999003510 0 0 1 -9
... (7 Replies)
Discussion started by: biopsy
7 Replies
5. Programming
I need to read the contents of a file. Then I need to grep for a keyword and replace part of the grepped line based on the condition of previous and present line.
Example input file:
V {
port1 = P;
port2 = 0;
shift_port = P0; /* if next shift_port is P0 I need... (7 Replies)
Discussion started by: naveen@
7 Replies
6. Shell Programming and Scripting
Hello Guys,
I am new to Unix and i got one requirement where I need to split my file into maximum 5 files on below conditions, if they are splitted into less than 5 then also we are fine.
Columns D value should appear in a single file only and shouldn't continue in other files.
... (1 Reply)
Discussion started by: Rizzu155
1 Replies
7. Shell Programming and Scripting
Hi, Unix gurus,
I have a requirement as following:
checking existing file, if the file only contain one line. then append "No data" else keep existing file as is.
can i achieve this by in command line without write a script.
:wall:
Thanks in advance. (4 Replies)
Discussion started by: ken002
4 Replies
8. Shell Programming and Scripting
Hello all,
I am looking for a solution to the following problem. Perl or python solutions also welcome.
Given this input:
And this input:
I want to get this output.
The rule being that if the number in the first file is < 0.9, then the corresponding two columns on... (2 Replies)
Discussion started by: hydrabane
2 Replies
9. Shell Programming and Scripting
OK, I am stumpped. I have this shell Script that I want to randomly select a file with the extention of .sct. Then using a portion of its file name select the six related .mot files. Then move them all to another folder. I also need a user input form for the number of .SCT files to randomly select... (6 Replies)
Discussion started by: stak1993
6 Replies
10. Shell Programming and Scripting
>cat data.dat
0001 Robbert
0002 Nick
0003 Mark
.......
1000 Jarek (3 Replies)
Discussion started by: McLan
3 Replies