Search Results

Search: Posts Made By: injeti
1,762
Posted By injeti
Printing files from a directory
Hi,

I need help in printing files from a directory.

eg: a directory called /home/ABC and there are 3 files in it.

I need to give printout one bye one. One more thing is I need to print date...
5,204
Posted By injeti
someone gave me one option like echo -n...
someone gave me one option like

echo -n "ENTER"
read -n 50 name

but it didnt work

even i was thinking that there is nothing like that in unix
5,204
Posted By injeti
yes am looking for something where the user will...
yes am looking for something where the user will not be able to enter more than 50 chars at the prompt

like...

echo "Enter string"
name string

here I need some code where it will beep or...
5,204
Posted By injeti
some please help me on this
some please help me on this
5,204
Posted By injeti
Thank you but I couldnt succeed. First line of my...
Thank you but I couldnt succeed. First line of my script is #!/bin/sh

The error am getting is "A specified flag is not valid for this command"

Need some help, thanks, some please help me
5,204
Posted By injeti
read command
Hi,

am working on bash shell, could you help me on this, this is the code

echo "Enter the text"
read text

which should not allow the user to enter more than 50 chars

help me, thanks in...
5,204
Posted By injeti
am working on korn shell, could you help me on...
am working on korn shell, could you help me on this, this is the code

echo "Enter the text"
read text

which should not allow the user to enter more than 50 chars
1,732
Posted By injeti
restrict the user not to key in more than 50 chars
am looking like something...
eg: Input:testing

and the cursor should stop after a particular length and not allow user to enter any more chars in shell scripting not awk
5,204
Posted By injeti
thanks for the reply. Actually am looking like...
thanks for the reply. Actually am looking like something...
eg: Input:testing

and the cursor should stop after a particular length and not allow user to enter any more chars in shell scripting...
5,204
Posted By injeti
restrict the user not to key in more than 50 chars
When my script is run, it will ask the user to enter some text and the user should be restricted not to enter more than 50 chars. Is there any command which I can use with "read" command? Help me...
4,210
Posted By injeti
thanks a lot for the solution, its working...
thanks a lot for the solution, its working perfectly
4,210
Posted By injeti
reading two files
Hi, I have 2 files

file 1
----

10013 This is a text
10014 This is a test
10015 This is a temp

file 2
----

10013 010014737 ADSM 1300004 E
10014 ...
4,332
Posted By injeti
Hi, need a small change to the script, the output...
Hi, need a small change to the script, the output is perfect, change is

characters 1-4 should be a number - its perfect
characters 5-259 should be the remaining - its perfect
character 260...
4,332
Posted By injeti
Thank you again!!!
Thank you again!!!
4,332
Posted By injeti
Thanks a million, its working great!!!, could you...
Thanks a million, its working great!!!, could you please let me know why u used 2>/dev/null
4,332
Posted By injeti
i will try that, the output seems to be exactly...
i will try that, the output seems to be exactly what i wanted but i dont need space & doube quotes in between 1081 "WPCW

output should be like this:
1081WPCW 19 - CW/AM1, WPCB 40 - FAMN/CORNER,...
4,332
Posted By injeti
when the lines are joined, a comma can be...
when the lines are joined, a comma can be appended or space and there is no range of numbers but always 4 digit numbers, if double quotes are removed then its good, thank you
4,332
Posted By injeti
Hi, thanks for the reply, each line should start...
Hi, thanks for the reply, each line should start with a number like 1081 and all the lines of text should be joined till next number 1082.

so output should be like

1081WPCW 19 - CW/AM1, WPCB 40...
4,332
Posted By injeti
text manipulation
Hi, i have a file like this below, and it my have n no. of lines. Moderator gave me a solution with awk, but it was working only for the first 2 lines because awk has a limitation. can anyone give me...
8,062
Posted By injeti
oh is it, i have only awk, gawk is not working,...
oh is it, i have only awk, gawk is not working, and am on HP, please help
8,062
Posted By injeti
Hi, i have a file like this below, it worked on...
Hi, i have a file like this below, it worked on first 2 lines but not from the next, the error it was showing was "1086 "WPCW 19 - CW/A cannot be longer than 3000 bytes"

1081 "WPCW 19 -...
8,062
Posted By injeti
hi, the solution which you have provided below is...
hi, the solution which you have provided below is working fine for only 2 lines in a file just like the sample which i have given, i want that to work for n no. of lines, thank you

nawk -v RS=''...
8,062
Posted By injeti
yes INPUT is : 1086 "WPCW 19 - CW/AM1,...
yes

INPUT is :

1086 "WPCW 19 - CW/AM1, WFPT-DT3 28 - V-ME, WTRF-DT2 32 - F/MY
WATCH WPGH 53 F & WWCP 08 F

1087 "WPCW 19 - CW/AM1, WPCB 40 - FAMN/CORNER,
WATCH WPXI 11 N & WPIX 11 CW...
8,062
Posted By injeti
Hi, thanks a lot for your response, the solution...
Hi, thanks a lot for your response, the solution provided by the moderator is really excellent, so I want to continue that, thanks a lot for your help
8,062
Posted By injeti
I guess we got it wrong, I need comma only from...
I guess we got it wrong, I need comma only from the next line not like 1234,ABCD, when next line is joined then I need the comma and quotes removed, thanks
Showing results 1 to 25 of 32

 
All times are GMT -4. The time now is 05:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy