Search Results

Search: Posts Made By: darklord173
263
Posted By darklord173
Bash Script
Code: File is read in from wrapper and declared file_name



IFS=","
sed 1d $file_name | while read Name Job Age Title


do
count=0
dirname=$Name
while [ -d "$dirname" ]
do
...
252
Posted By darklord173
sorted it thank you, was so simple lol
sorted it thank you, was so simple lol
252
Posted By darklord173
I think i get what you are saying but ...
I think i get what you are saying but

COMMAND_OUTPUT >
# Redirect stdout to a file.
# Creates the file if not present, otherwise overwrites it.

I thought this would actually...
252
Posted By darklord173
Bash beginner
Hello so I've stored some csv data to be read into variables like this

Name,Team,Shop,Shoe
etc,etc,etc,etc


Code:

sep=","
{
while IFS=$sep read Name Team Shop Shoe

do

count=1
...
368
Posted By darklord173
Appreciate it bro that's perfect, made the...
Appreciate it bro that's perfect, made the counter= 1 from the start so now James looks like James then James 2 rather than 1 just to make it look a little better
368
Posted By darklord173
Bash Shell Linux
I have a csv file that looks like this

Name,Food,Sport
James,Curry,Gym
Darren,Pizza,Football
Jim,Fish,Hockey
James,Sushi,Tennis

My code looks like this

IFS=","
sed 1d $file_name |...
Showing results 1 to 6 of 6

 

Featured Tech Videos

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