|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi i'm workong with c shell and i need to read some lines from a file and these lines start with (") and end also with (") so how i can do it please ????
|
|
#2
|
||||
|
||||
|
more detail on what you want to do with the data would be useful - are you modifying the file? Copying it? or just grabbing these lines and piping them into another file? You'll probably need a combination of cat, grep/sed and redirection operators like >>
give us some more clues about what you're doing christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
|
#3
|
|||
|
|||
|
Actually i have two scripts: the first one has many lines and each mass of these lines comprise one entry to the other script (shell script) so i just need to read masses (each one start with " and end with ") and put their values inside variables then use them later...
for example: the first script will contain something like : #------------------------------------ # path_directory "/home/jack/sss/ydfh /jvcncv/fgfhf/xhfg/temp_dex/" # #------------------------------------- and inside the main one i will use the value of path_directory variable like: #!/bin/csh echo "$path_directory" set path=path_directory . . |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > read from a file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|