10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Below is my script. It is currently working but I want some advice on maybe improving it and need some help on the pattern matching
#Fatal NI connect error... (3 Replies)
Discussion started by: newbie_01
2. Shell Programming and Scripting
My Problem is like below.
I have a file which contains just one row and contains data like
i want to extract SK12345678
So basically SK and next 8... (4 Replies)
Discussion started by: Asfakul Islam
3. Shell Programming and Scripting
So I need to create an array that has " in the string of the text:
string = ( "value 1" "value2"
where the actual string is "value1" with the quotations included
would this work?
string = ( \"value1\" \"value\")
and if the strings contain spaces as well:
string = ("\"this... (4 Replies)
Discussion started by: os2mac
4. Shell Programming and Scripting
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
Discussion started by: irudayaraj
5. Shell Programming and Scripting
I have two files like this
gctggaI want to 1) match each element of file2 to each element of file1.
2) delete all the matched alphabets and subsequent... (3 Replies)
Discussion started by: polsum
6. Shell Programming and Scripting
I have this input:
and want this output:
I want to use a command to convert from hex to decimal i.e.:
$ echo $((0x15a))
$ printf '%d\n' 0x15a
I try to use something like this:
sed... (5 Replies)
Discussion started by: chitech
7. Shell Programming and Scripting
Hello everyone, this is my first post so please give me a hand.
I apologize for my English, I'll try to be clear with my request.
I need to write a script (Bash) which finds all the variables defined in the file .h of the folder and then writes the name of the files .c where these variables are... (1 Reply)
Discussion started by: paxilpaz
8. Shell Programming and Scripting
I would like to find a list of files in a directory less than 2 days old and put them into an array variable. And then search for each file in the array for a matching string say "Return-code= 0". If it matches, then display the array element with a message as "OK".
Your help will be greatly... (1 Reply)
Discussion started by: mkbaral
9. Shell Programming and Scripting
Hi guys, I hope you can help me with my problem.
I have a text file that contains lines like this:
78 ANGELO -809.05
79 ANGELO2 -5,000.06
I need to find all occurences of amounts that are negative and replace them with x's
78 ANGELO xxxxxxx
79... (4 Replies)
Discussion started by: amangeles
10. UNIX for Dummies Questions & Answers
I have a log file which shows the files which has been changed over the last week.
They follow this pattern:
Now I need to know how to delete from each line parts starting from @@.
I would be issuing the command inside vi(m).
So... (5 Replies)
Discussion started by: vino