11-02-2011
doesn't work.
with this, it prints blank lines as many as number of chars of string
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to write a shell script in order to retreive some data from a log file that i have written into.
The string that i want to get is the number 2849 (that is located between | | ).
To explain further, this is the result i get after running "grep LOGIN filename.log" but i need to get the... (25 Replies)
Discussion started by: danland
25 Replies
2. Shell Programming and Scripting
I have a string I keep appending too upto certain amount of chars.
Is there some sort of way for me to check the string to see if I hit my limit of repeatable characters?
For example, assume I allow for 2 repeatable chars, this will be a valid
string Xxh03dhJUX, so I can append the last... (3 Replies)
Discussion started by: BeefStu
3 Replies
3. Shell Programming and Scripting
input:
123456 1111
124567 2222
125678 3333
234567 aaaa
456789 abcd
awk logic:
- read lines for recurring 1st 2 chars of the 1st field
- if recurrence detected count up and print value
output:
1 123456 1111
2 124567 2222
3 125678 3333 (6 Replies)
Discussion started by: ux4me
6 Replies
4. UNIX for Advanced & Expert Users
Hello,
Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one.
Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one?
My AIX system is 5.3
Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies
5. Shell Programming and Scripting
how can i check if
read -n 1 LETTER;
LETTER is a capital letter and after translate in minuscule.
i have thought with:
tr
or no? (7 Replies)
Discussion started by: tafazzi87
7 Replies
6. Shell Programming and Scripting
Hi, I'm having trouble with awk print all characters between 2 patterns. I tried more then one solution found on this forum but with no success.
Probably my mistakes are due to the special characters "" and "]"in the search patterns.
Well, have a log file like this:
logfile.txt
... (3 Replies)
Discussion started by: ginolatino
3 Replies
7. Shell Programming and Scripting
Hi All,
This might be a basic question... I need to write a script to find all/any Speacial/Null/Control Chars and Print Line Numbers from an input file.
Output something like
Null Characters in File Name at : Line Numbers
Line = Print the line
Control Characters in File Name at : Line... (2 Replies)
Discussion started by: Kevin Tivoli
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a file fo around 15k bytes which i need to insert a string " + "at every 250 bytes.
I found some ideas here using perl to split into lines and tried to addapt it but the results where not satisfactory
for instance i tried to change
#!/usr/bin/perl
$teststring =... (9 Replies)
Discussion started by: kadu
9 Replies
9. UNIX for Beginners Questions & Answers
Hi Guys
Kindly help me on my predicament. I want to get the 7 chars of this filename
I need to get the ALL.cmd from this filehame filename_a_ALL.cmd
Thanks (10 Replies)
Discussion started by: cmarzan
10 Replies
10. Shell Programming and Scripting
For a given string that may contain any ASCII chars, i.e. that matches .*,
find and print only the chars that are in a given subset.
The string could also have numbers, uppercase, special chars such as ~!@#$%^&*(){}\", whatever a user could type in
without going esoteric
For simplicity take... (1 Reply)
Discussion started by: naderra
1 Replies