10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi dears
i use bash shell
i have INPUT.txt
like this
number of columns different in one
some row have 12 , some 11 columns
see last column
INPUT.txt
CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic
63 M 27 BS/BA TEHRANI 3 4 298320 310050... (2 Replies)
Discussion started by: alii
2 Replies
2. UNIX for Dummies Questions & Answers
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
Discussion started by: jojojmac5
12 Replies
3. Shell Programming and Scripting
Howdy folks,
How do i make the input start with a letter and certain num of numbers and if anything else is entered it should display error
for ex; a123455 is good ( exactly 7 characters)
and
ex: sio234234 is not good
ex: b233 is not good..
ex: jlasjdlfks is not good
... (2 Replies)
Discussion started by: coolkid
2 Replies
4. Shell Programming and Scripting
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
Discussion started by: frad
7 Replies
5. Shell Programming and Scripting
Hi Guys,
I have file A.txt
PP97
PP66
PP87
PP66
PP47
PP57
PP44
PP20
PP66
PP16
PP13
PP51
PP68
PP70
PP75
PP30 (2 Replies)
Discussion started by: asavaliya
2 Replies
6. Shell Programming and Scripting
How to make sure the input string is one of many options e.g centos-5.5-i386 windows-2003r2-x64 ?
The options are dynamic, so "case" condition check doesn't work.
I use grep -o -w , it doesn't work every time because - is valid word boundry
#word windows-2003 failed the check as expected... (4 Replies)
Discussion started by: honglus
4 Replies
7. Shell Programming and Scripting
Hi,
In Perl, how can we define a variable make it read the value from the standard input? Meaning, how can have the user type in the value that will be assigned to the variable?
Thanks, (2 Replies)
Discussion started by: Pouchie1
2 Replies
8. UNIX for Dummies Questions & Answers
can you make me an awk script that will:
read the 1st record from each input file, file1 file2 file3 file4 and file5 and write them to file6.
then.....
read the 2nd record from each input file, file1 file2 file3 file4 and file5 and append them to file6.
then.....
read the 3rd record... (1 Reply)
Discussion started by: kenneth.mcbride
1 Replies
9. Shell Programming and Scripting
okay how do i make an alias that has a space in it?
for most of my other ones i've simply done within my ~/.bash_profile
alias `ls`='ls -laF'
but with
alias `sudo su`='sh hello.sh'
I'm unable to make it work
in addition i was wondering how i could allow the user to type in... (1 Reply)
Discussion started by: cleansing_flame
1 Replies
10. Shell Programming and Scripting
Hi All,
I want to make my script password protected.
i e: if somebody runs my script it should prompt for password.
Can somebody help me in to execute the same??
Thanks in Advance :b: (11 Replies)
Discussion started by: achararun
11 Replies